Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

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
1 vote
0 answers
25 views

I've implemented a SvelteKit handleFetch hook that manages authentication for API requests with automatic token refresh. The API provides a 15-second grace period where a refresh token remains valid ...
tony's user avatar
  • 433
0 votes
0 answers
8 views

Title: Code Review Request: Mongoose Soft Delete Plugin with Query & Aggregate Middleware Body: I’ve implemented a soft delete plugin for Mongoose to handle REST API data safely in a MENN stack ...
Owais Qureshi's user avatar
3 votes
2 answers
162 views

I’ve built a backend-only wallet service using Laravel 8, and it’s fully containerized with Docker. The project handles two user roles (Players and Backoffice Agents) and provides JWT-based ...
Şirin Berhuş's user avatar
4 votes
4 answers
165 views

This code checks the Israeli Home Front Command API, and when there is a new alert for specific areas it sends a request to a Django app which I am hosting in the cloud. The Django app then sends a ...
Kovy Jacob's user avatar
1 vote
0 answers
54 views

I am building a TS wrapper around the fetch that adds automatic retries for certain errors. The error handling using a custom ApiError class and maps various error ...
KristalkillPlay's user avatar
3 votes
1 answer
61 views

I am trying to write an API Client in flutter that follows Clean Architecture, SOLID principle and best programming practices After completing this, I am going to use it in Repository or DataSource. ...
C Sharp Guy's user avatar
5 votes
0 answers
104 views

I recently did a quick take-home test for a potential job opportunity. It included building a GraphQL API with nodeJS. I am not an expert in node (mostly use Python at work) but I have used it for ...
Sajomancer's user avatar
4 votes
1 answer
113 views

Do you recommend adding a layer of abstraction on top of EF Core for example we have an API controller responsible for authentication do I just call EF Core methods directly in the controller or do I ...
Lemon juice's user avatar
3 votes
0 answers
102 views

I’m new to Clean Architecture and EF Core, and I’m trying to learn by practicing and watching tutorials. I’ve been implementing a basic authentication flow and would appreciate some feedback on ...
Lemon juice's user avatar
9 votes
3 answers
2k views

I am looking for feedback about a working trading bot (which connects to the API of the deribit website and trades on that platform) I made. I am a beginner in C++ and would like to learn some good ...
insipidintegrator's user avatar
3 votes
0 answers
53 views

This update is based on a previous review where I tried creating a WriteConfig and a WriteConfigBuilder. I have updated this so ...
Loki Astari's user avatar
  • 97.7k
2 votes
0 answers
310 views

Update I have released a prototype (v0.1.0) of my SOb project, which is a generalized framework for easily simulating objects. Background I am writing a VBA module ...
Greg's user avatar
  • 569
3 votes
1 answer
95 views

I'm trying to create an API that will receive requests from users without having to do a login request. They will just have a user id and a key. My intention is that they will use the key to create a ...
user avatar
5 votes
2 answers
982 views

I would like to know the possible improvements in design and concurrency of the following load balancer: ability to add/register new instance keep max of 10 instances for load balancer forbid ...
tinyzero4's user avatar
4 votes
1 answer
368 views

I'm currently working on my thesis to obtain a bachelor in software engineering, and i want to get some feedback from real developers of how useful this project can be in the real life. the project is ...
Hernandez Sinsel Jesus Emmanue's user avatar
2 votes
1 answer
79 views

So I am getting tired from adding the same [ProducesResponseType] attribute on my WebAPI controller methods over and over, and I thought there must be an easier, ...
Marc Wittke's user avatar
4 votes
1 answer
164 views

Below is a C version of a lexer for the Monkey programming language, originally written in Go, as presented in the book Writing An Interpreter In Go. LOC: 371. (Excluding the tests.) Language: Copy ...
Madagascar's user avatar
  • 10.1k
6 votes
3 answers
1k views

I was recently working through the PintOS projects and became curious if there was a better way to do some string processing in C. Specifically, instead of strtok_r,...
Alex Lopez's user avatar
5 votes
3 answers
1k views

...
user avatar
2 votes
1 answer
90 views

Use case The user is interested in supplying a timestamp of a particular moment in time. This python application will perform two astronomy calculations for a set list of planetary bodies: Calculate ...
Hunter's user avatar
  • 259
3 votes
1 answer
86 views

I am building users API with CRUD operation in fastapi and i'd love to hear feedback about it. I have been exploring fastapi in the past weeks and im trying to create API with best practice (scalable -...
Paul's user avatar
  • 33
3 votes
1 answer
222 views

I am creating an API for a version control system. This is my first time creating an API (and a web project in general) and I wanted to get some feedback. I plan to connect this API to a frontend to ...
Doruk's user avatar
  • 423
1 vote
1 answer
78 views

I needed to update a class in Node.js that parses the response from a new weather API endpoint but still preserves the same object structure and key values from having been using the old weather API ...
Aaron Goldsmith's user avatar
1 vote
1 answer
95 views

Whilst developing a bigger project, I was in need of having basic error handling inside the context of a C interface. I came up with the following solution. ...
Sam Coutteau's user avatar
2 votes
1 answer
95 views

This is a small python API to be able to display a busy spinner using emojis for a textual bot that run lengthy async jobs without access to a percentage of completion and need to provide feedback so ...
Pierre.Sassoulas's user avatar
0 votes
0 answers
68 views

I have a PR swapping from Command::output() to a custom implementation using threads to handle the subprocess' stdout/stderr while the program is running, instead ...
dimo414's user avatar
  • 415
4 votes
0 answers
66 views

Note: The important chunks of code are pasted in the question but the larger representation of the app is available on GitHub. Some time ago I was tasked to create a simple FastAPI app. I did manage ...
nitwit's user avatar
  • 501
3 votes
1 answer
168 views

I've got a controller with two actions that need to support two units: hours & times. The url should read like this: ...
t3chb0t's user avatar
  • 44.7k
0 votes
1 answer
250 views

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
2 votes
1 answer
223 views

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
730 views

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
110 views

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
58 views

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
114 views

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
1k views

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
115 views

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
2 votes
2 answers
167 views

I am currently implementing a native Rust API to X11, especially around the XDisplay for a related project. I chose an object-oriented approach: ...
user avatar
1 vote
0 answers
502 views

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
  • 131
3 votes
1 answer
617 views

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
5 votes
1 answer
251 views

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
4 votes
1 answer
335 views

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
74 views

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
1k views

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
93 views

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

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
4 votes
1 answer
170 views

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
  • 141
3 votes
0 answers
832 views

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
180 views

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
282 views

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

1
2 3 4 5
12