All Questions
23
questions
0
votes
1
answer
475
views
Is it okay to combine bff and rest api?
I'm building an application related to donation on streams.
And I have such models as "alert" and "alert-template".
"alert" is a set of different parameters to understand ...
4
votes
1
answer
3k
views
What are the best practices in public API vs internal only API being on the same service
I wanted to understand what are the best industry practices and the pros-cons in the following 2 choices:
A single service that serves internal only API and public API, vs
2 separate services - one ...
0
votes
2
answers
211
views
Who to manage AAA , gateway or business service
In a debate with our solution architect, there were 2 proposed solutions to handle (illustrated below on the figure)
In the first, the API Gateway manages Authentication, Authorization and Accounting ...
0
votes
1
answer
608
views
Expose or consume API REST?
I am preparing the software architecture for my client project based on APIs REST
The idea is that any data exchange between my client and his partner will be via API REST call
The specification is ...
0
votes
0
answers
75
views
Is it a good idea to have separate instances for the public API Server and API Server used by the Web App?
I've built a React Web application with an Express REST API server and Firebase Auth. Also, Nginx is set up as a reverse proxy, so API calls from React to https://mydomain.com/api are routed to ...
0
votes
2
answers
234
views
Structuring optional REST resource hierarchy
I am designing a REST service with multiple end points which will be servicing the following hierarchy:
Department has many Category Groups
Category Group has many Category(-ies)
Category has many Sub-...
1
vote
2
answers
131
views
Photo Library Service: What should be right way of photo library using AWS S3 and Java
I want to make a service that is supposed to upload Photos in S3 and make them available using a link.
I have few design plans for my service.
PLAN 1:
Upload photo to my REST API which will update ...
0
votes
2
answers
236
views
API versioning at BackEnd - Declare the versioning(v1) at global level or at each controller/method level?
If I keep versioning at the global level then it would save the clutter at each controller level,
// main.js
main() {
registerGlobalRoutesPrefix("/api/v1");
}
// controller1.js
@Route("controller1-...
0
votes
0
answers
155
views
Creating a webhook server / sender
I'm now working with an API project, where I'm developing new API endpoints and the final result at the end of the life cycle is as follows: a client should receive updated data out of what it sent to ...
-2
votes
1
answer
48
views
Endpoint returning only new and updated records
let me state some items.
I have this endpoint that returns a list of objects, and I would like to return only the changed ones.
I have an App calling this endpoint that caches this list, and today it ...
-1
votes
1
answer
80
views
APIs: Many minimal ones or a few bigger
I'm currently working on a project/product which consists of ~60 REST APIs and one client (Web app)
I find many downsides on this design, and not so many benefits, and I'd like to know if this is ...
-1
votes
1
answer
292
views
Should I use a strongly typed programming language for an integration with a JSON RPC 2.0 API?
I have to integrate with another company's API, which they unfortunately decided to write in JSON RPC 2.0.
If you're not familiar with JSON RPC, it's a lightweight RPC protocol that defines a ...
2
votes
2
answers
217
views
Should a POST endpoint in a REST API allow the inclusion of related resources?
Given the following REST endpoints:
(GET, POST) /api/v2/employer
(GET) /api/v2/employer/{id}
(GET, POST) /api/v2/employer/{id}/employees
Should a consumer of this API have the ability to ...
10
votes
2
answers
4k
views
Alert System Architecture
I would like to create a system which handles alert messages from various programs and can process those alerts to down-wind consumers via email. This would all be contained over one internal network. ...
0
votes
1
answer
110
views
Where should I generate response for api?
I have multiple Models(Models in MVC), These models are injected into repositories and repositories are injected into Controllers. I need to create an api for several endpoints. The responses for ...