As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [api]

API, for code implementing (NOT using) an Application Programming Interface. A program's API defines the proper way for a developer to request services from that program, site and/or service.

Filter by
Sorted by
Tagged with
0 votes
0 answers
55 views
+100

Spring Boot Account API with React Frontend and Identicon Integration

I have recently been exploring React and Spring Boot, and I would greatly appreciate your feedback on a practice application that I have developed. The application consists of a Spring Boot backend ...
thebluepandabear's user avatar
0 votes
1 answer
73 views

Python REST API Calls Structuring

I am writing a python REST API library for Starburst and am trying to figure the best way to structure the code so it's dry but also easy to understand. Below is an example of code that is not dry. ...
Ann Nguyen's user avatar
6 votes
1 answer
198 views

Event manager for games written in C++17

This is a single header event manager that I'm using in my game. Disclaimer I ripped everything from these lovely people: https://austinmorlan.com/posts/entity_component_system/ C++ Event System - ...
Burning Flemingo's user avatar
3 votes
0 answers
63 views

Building an API for an e-commerce system to allow third party software to import products

I am working on an e-commerce website called Shopless, which is similar to E-bay/Gumtree. Our website integrates with other DMS systems, in order to allow organisations to import products into our ...
Hooman Bahreini's user avatar
2 votes
1 answer
34 views

Python Module for representation, calculus and rich comparisons between temperature scale instances

ToTemp is a temperature conversion package with Celsius, Delisle, Fahrenheit, Kelvin, Rankine, Réaumur, Newton and Rømer scales. With a documentation and already in PyPI. The source code for the main ...
eddyxide's user avatar
  • 141
2 votes
1 answer
49 views

API design for Implementing NaN/Unknown values for custom numeric type

I'm gradually writing an arbitrary-precision arithmetic library for C++. I've decided it could be useful to have the default constructor produce an object of indeterminate value, rather than relying ...
saxbophone's user avatar
6 votes
2 answers
905 views

Python script to get and save data from a web API

I'm working as a system administrator (sort of), but learning Python on the side. Life gave me a chance to apply that knowledge, since our organization is being provided cloud email service, and it ...
Gavin Greenhorn's user avatar
1 vote
1 answer
60 views

How can I create a stronger ETL Pipeline library?

I've written a module for running ETL pipelines. The goal was to standardize API use in pipelines while making the pipeline easy to create and maintain. I'm not a Python guru by any means, and I'm ...
Guy's user avatar
  • 53
1 vote
2 answers
90 views

Idiomatic Rust API to X11 displays

I am currently implementing a native Rust API to X11, especially around the XDisplay for a related project. I chose an object-oriented approach: ...
Richard Neumann's user avatar
0 votes
0 answers
95 views

Laravel 9 API authentication

Laravel v9.28.0 (PHP v8.1.6) I need to make a simple authorization for API requests using a token in middleware and without laravel/passport or sanctum. The idea is banal: every API request (except ...
Ostet's user avatar
  • 1
1 vote
0 answers
203 views

Calling PagerDuty REST API to recursively fetch oncall info for a team

I am a beginnner and have put up a code that talks to pagerduty API and then it fethces oncall info for a team (get team id, get escalation policy id, then finally get on call info). response is ...
AhmFM's user avatar
  • 121
3 votes
1 answer
230 views

Movie app using fetch API

The code will create a new Movie class and then with the response of the API call, will render html using the data. Although the code works, I imagine it will get quite convoluted, now that everything ...
DonnyRodriguez's user avatar
2 votes
2 answers
255 views

Apply a schema validation against an HTTP request with JSON body

...
Cengiz Ergün's user avatar
0 votes
0 answers
39 views

Facebook API class for making access token requests

I am writing a bunch on integrations with some social media platforms and have been hacking around with the Facebook API. I would like a review on the code below as i'll most likely rinse and repeat ...
Bob's user avatar
  • 65
5 votes
1 answer
105 views

Traverse/transform (xml) tree

I am trying to write a utility for transforming xml trees using single pass and specifying node handlers. I used pugixml prior to this, and the library provides a ...
Sergey Kolesnik's user avatar
0 votes
0 answers
22 views

Solidworks API to select Design Binder and empty the edited Design Binder

I am working on the Design Bilner macro and facing some issues with the code. Could you take a look and help me? Solidworks has a feature called “Design Binder”. The function of this is to store the ...
Deshpande5507's user avatar
1 vote
0 answers
76 views

Skyrim API, no previous experience

I recently created my first API, I intend it to be open source so anyone can contribute, what are the best practises I missed? What should I include in the API? For now it only does contain single ...
FColor04's user avatar
4 votes
1 answer
104 views

Recipe website with API and JSON using vanilla JS

I'm training JavaScript and using APIs. So I'm building a recipe website that lets you search ingredients and finds you recipes with it. Here is the link: https://www.themealdb.com/ I found some code ...
emma673r's user avatar
0 votes
1 answer
38 views

rust: Set configs from env and reuse it during app's lifetime [closed]

After writing a basic API with rocket, I'm trying to improve it, but I'm not sure how to follow up. Each time a new request comes in, the code keeps looking for the variable from the environment. <...
Patrick Marangone's user avatar
2 votes
2 answers
413 views

C# Binary Search Tree implementation

I have implemented a Binary Search Tree and would really appreciate it if someone could take time to check it and give me feedback. I try to keep my code clear and simple. Is it readable? Is the API ...
Kirill Dolghi's user avatar
0 votes
1 answer
54 views

Better localStorage API

I wasn't quite happy with the way localStorage handles non-string values, for example ...
hanshenrik's user avatar
3 votes
1 answer
233 views

API client that builds a response over multiple lines

I am performing a REST API call and I have copied their example code where they show how to perform such an api call. Their example is written in Javascript not Typescript though. To adapt the code I ...
sev's user avatar
  • 183
3 votes
1 answer
120 views

Angular - Contact manager component with API

I am starting with the Angular and I need some support. I have watched some of the tutorials and lot of them are using things differently. I upgraded some tutorial with my own idea, but I am not sure ...
ggoran's user avatar
  • 131
1 vote
0 answers
33 views

Managing TimeMachinesCorp POE clock via UDP

I've got a working implementation of a go program to talk UDP to TimeMachinesCorp POE clocks. This code is also in a github repo which notes things I know aren't implemented yet. I feel like there's ...
chicks's user avatar
  • 2,847
3 votes
0 answers
434 views

A simple Python script that crawls information about Youtube playlists and your watch history

You will need to follow this guide. This is a Youtube crawler that crawls information about Youtube playlists, it uses Youtube Data API v3 and it crawls the title, url, description, count and videos ...
Ξένη Γήινος's user avatar
5 votes
1 answer
137 views

Looking for feedback on OOP for a trading bot on Kraken

I'm trying to build a Kraken portfolio bot and started out with a simple layout for loading the balances. If possible, I would like to get some feedback on this initial design. The API key provided is ...
kicken's user avatar
  • 59
3 votes
0 answers
184 views

Random Astronomy Photo: React app using NASA's Astronomy Pic of the Day API

Random Astronomy Photo About the project This is a React app that generates a random photo from NASA's Astronomy Picture of the Day (APOD) API along with some interesting facts about it. This is my ...
jennsparkles's user avatar
4 votes
1 answer
59 views

Logistics project that implements several shipping APIs

I have a Python logistic project that implements several shipping APIs using class inheritance. Each of those classes must do three things: Fire requests to each endpoint with the proper parameters ...
João Santos's user avatar
1 vote
2 answers
173 views

Update person name in database

Can someone review this implemented solution and provide commentary the code is working well but will need refactor and improve this code. ...
CodeRealm's user avatar
0 votes
1 answer
107 views

Python API testing

I have written a rudimentary code in Python: That reads the API collection from Swagger/Postman and extracts the payload, link, and method It creates the response with the token(Generated from the ...
Durga's user avatar
  • 41
0 votes
1 answer
56 views

Collect values from an api more quickly

To collect the values of an api, I use three loopings, I would like to know if it is possible to improve this method that I use. a = 9625897 ...
Digital Farmer's user avatar
0 votes
1 answer
210 views

Updating active cards dynamically added by API

I am making a website where you can search through all the countries in the world. Once you have found a country you want more detail about you should be able to click and view a detailed page with ...
Bram Mortier's user avatar
6 votes
1 answer
769 views

A Python-program that makes successive API-calls

I wrote some code to make calls to a public API. The code is correct as required as usual. My goal is to make the code as self-explanatory, maintainable and robust as possible. I also tried to make ...
Moritz Loritz's user avatar
-1 votes
1 answer
85 views

Basic ASP.NET Core RESTful API with Entity Framework Core

This is my first WIP backend asp.net application, which I will pair with react to create a full stack app. The thing I'm mostly worried about is model conversion to DTO and custom policy authorization,...
Damian Nizio's user avatar
1 vote
2 answers
529 views

Vue 3 audio player

I have been working on an audio player with Vue 3 and the Napster API. ...
Razvan Zamfir's user avatar
3 votes
1 answer
81 views

A controller for a Game Service

I have a Spring MVC controller but I'm not sure that it is a good or bad design. As far as I know, api versioning is missing but apart from that I implemented Swagger for documentation and added ...
Burak's user avatar
  • 31
1 vote
2 answers
159 views

Requiring query field to not be empty on search api

we have a RESTful API that includes an endpoint for search apiserver/v5/search?q=[search text] for any query, it passes it off to solr and returns the result like ...
AwokeKnowing's user avatar
0 votes
2 answers
422 views

Python RESTClient Class with asyncio and aiohttp

I've seen Using asyncio and aiohttp in classes but could not really figure out how to apply this to my own code. The main idea of this code is to inherit from this RESTClient class whenever I build a ...
Niels Perfors's user avatar
1 vote
0 answers
573 views

Restaurant Open Hours - Converting Json to human readable format

I am seeking a general code review. Task: Write a program that takes JSON-formatted opening hours of a restaurant as an input and outputs hours in more human readable format. Input: Input JSON ...
Omer Alkin's user avatar
1 vote
1 answer
60 views

Check Google Sheet for emails, verify delivery by api and Subscribe via api Benchmark

The main objective of this bot to make fast and reliable automatic subscriptions to email newsletter for people, who filled the website form(submissions go to google sheet) I had too many requests to ...
Bogdan Mind's user avatar
8 votes
2 answers
1k views

Efficiently parsing JSON response data in python

I'm using this API to get information on sports-betting odds. I am then processing it in Python to discard the irrelevant information. Here's what the response looks like: ...
jtb's user avatar
  • 185
1 vote
2 answers
178 views

Refactoring Ruby recharge REST API wrapper by using class variables

I am trying to create an API wrapper for recharge (A Shopify subscription service), I am using the HTTParty gem ...
Artyrcheek's user avatar
5 votes
1 answer
425 views

FastAPI project - CRUD operations on database

recently I have been trying to educate myself on REST APIs. As a part of that, I have created a small project using FastAPI in python and I would love to hear some feedback about it. When I wrote this,...
Eliran Turgeman's user avatar
3 votes
0 answers
90 views

Generative Python transformer hitting Github API

I'm working on a GPyT (generative python transformer) project and I have written the below script to download lots of Python files from github.com to train my model. It works fine, but there is a ...
Xus's user avatar
  • 183
3 votes
1 answer
945 views

Data API with Influx-DB and FastAPI

I'm fairly new to time series databases in general and Influx in particular. My objective is to build a simple and general-use API that will allow me to write and read data from an Influx Database. I ...
Armen Firman's user avatar
0 votes
1 answer
69 views

API for general boolean flag set

Very simple question. Imagine are designing library API, where you want to provide way to switch boolean flag. Typically to disable or enable a functionality. For argument's sake, let's say it's ...
K.H.'s user avatar
  • 2,538
2 votes
0 answers
51 views

Copy images using curl to make API calls

I am a junior web developer currently doing my first internship and I had a lot of freedom to solve small problems the way I thought was best. (There aren't really any developers here so I am ...
YFDev's user avatar
  • 21
1 vote
1 answer
85 views

Python script that get a web API

I've written a program that gets the web API endpoint for some functions on a website. I'm just wondering if you guys see anything I could do to improve the code at all. ...
JGProgrammer's user avatar
1 vote
1 answer
57 views

Automatic notification system about changes to court cases

I have written an application for lawyers' offices. There is an API to fetch info about court cases. I have implemented API calls for front end when user enters particular case; one tab is filled with ...
ikiK's user avatar
  • 111
1 vote
1 answer
39 views

React component with axios calls

...
Sayaman's user avatar
  • 299

1
2 3 4 5
12