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.
564 questions
5 votes
3 answers
600 views
News API in Python - Take II
From my previous post, I tried to take into account all of the nice answers made by Kate, Chris, J_H, Booboo and mudskipper Changes made In short, I attempted to apply all of the following: API key ...
8 votes
5 answers
1k views
News API in Python
Why I made it I’m building a voice assistant and thought it would be great if it could deliver news updates. What it does It cleans up the user’s query, determines whether it refers to a news category ...
1 vote
0 answers
33 views
SvelteKit authentication hook with token refresh and request deduplication
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 ...
0 votes
0 answers
8 views
SafeDelete for Mongodb plugin
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 ...
3 votes
2 answers
168 views
Laravel Wallet Service Backend
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 ...
4 votes
4 answers
169 views
Alerts by phone calls for location-relevant Israel Home Front Command alerts
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 ...
1 vote
0 answers
60 views
Typescript robust Fetch wrapper with Retry and Error handling
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 ...
3 votes
1 answer
67 views
DioClient using Clean Architecture following SOLID Principle
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. ...
5 votes
0 answers
109 views
Correct abstractions/organisation of a NodeJS GraphQL API
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 ...
4 votes
1 answer
113 views
Abstraction Layers and Best Practices in Authentication with EF Core
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 ...
3 votes
0 answers
104 views
.NET API entity framework core clean with clean architecture
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 ...
9 votes
3 answers
2k views
A remote trading bot that runs on the CLI - first C++ project
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 ...
3 votes
0 answers
57 views
Mongo C++ Driver: Insert
This update is based on a previous review where I tried creating a WriteConfig and a WriteConfigBuilder. I have updated this so ...
2 votes
0 answers
316 views
Simulating Objects with Collections in VBA
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 ...
3 votes
1 answer
98 views
Creating an API secured only by the request signature
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 ...