Skip to main content

All Questions

Tagged with
1 vote
1 answer
175 views

Many to many REST design for users and teams

I am designing REST API for users and teams of users. One user can belong to multiple teams . One of the requirements is to be able to sort the users belonging to team in alphabetical order. Teams can ...
Marcin Majewski's user avatar
1 vote
0 answers
63 views

Endpoint design for single and bulk requests

I'm working on a project in Python and want to get it hosted for others to use, the internal recommendation has been to host it on AzureML (it is a non-machine learning model, but follows the same ...
evaless's user avatar
  • 11
0 votes
1 answer
136 views

REST - Adding a new field

I have an object with fields like ID, CODE, NAME, etc., and it has its own database table with each field. And I am working on implementing the REST API for this object. I want to expose all these ...
Arpit Jain's user avatar
1 vote
2 answers
359 views

Handling simultaneous duplicate expensive read-only HTTP requests

(updated) We have a read-only REST endpoint that performs a somewhat “expensive“ but transient request. Without client needing to poll, we need a mechanism for the server to avoid unnecessary ...
eliangius's user avatar
  • 111
2 votes
3 answers
353 views

Rest API: paths versus queryparams for user accounts

I'm looking for some guidance around REST design for user account endpoints. I generally understand REST and some of the principles involved, with paths being used to fetch items from a resource: /...
aroooo's user avatar
  • 255
0 votes
2 answers
2k views

Is it okay for a POST response to return resources other than those in the request?

Working on the API, I understood that the behavior for one of the endpoints might be a bit counter-intuitive, but I am not sure whether this violates any RESTful rules. Based on what I have read, it ...
Don Draper's user avatar
-1 votes
1 answer
619 views

REST API designing resources for complex entities

I have an ASP.Net Core Web API where I am having difficulties designing the REST resources based on the EF Entities I have. There are three entities that describe a Reservation. First, there is the ...
J.Paravicini's user avatar
1 vote
3 answers
1k views

REST API design: how to represent users joining and leaving groups?

I'm designing a REST API in which users create groups that other users join and leave. A user creates a group by making a request like this: POST /groups Request body: { "name": "...
Matt's user avatar
  • 23
-1 votes
2 answers
355 views

How to deal with upsert PUT requests in a Spring Boot web application without crossing service and controller layers?

I've got a pretty simple web service that I need to add a PUT endpoint for that can handle upserts. This application is primarily a middleware layer to handle logging, caching and instrumentation in ...
SO AI Can Scrape Deez Nuts's user avatar
-1 votes
1 answer
654 views

Is it okay to return an object in a list endpoint according to REST API specification?

I need to add extra data to a list endpoint. Basically it is the list I want to return and an extra data. Like below { "results": [...], "extra_data": { "field": &...
Alihaydar Gubatov's user avatar
0 votes
0 answers
63 views

Best way to align multiple RESTful API's through an API gateway

We currently have a monolith public api which serves most of our api endpoints. This has introduced a bottleneck as the owning team needs to make changes to publicise anything new and other teams don'...
Steve's user avatar
  • 1
0 votes
1 answer
259 views

Ideal REST API for long stateless computation?

We have to compute a schedule for a set of students and teachers in a school. The program takes a large amount of data. The time it takes to compute a schedule for a given input cannot be determined. ...
sg7610's user avatar
  • 103
3 votes
2 answers
1k views

parameter longer than the length limit of GET into a RESTful interface

In a Restful API, it is better to use GET to list a collection. However, in our scenario, we allow people query with a list of parameters (say CodeList) and then return details. As we allow upto 500 ...
daxu's user avatar
  • 141
1 vote
2 answers
116 views

How to properly implement Rest Controllers to handle overlapping entities?

I have: A User entity. A Poll entity. Relationship: User creates polls. Use-case: When an arbitrarily user is clicked his/her profile is loaded and shown. The profile includes a list of polls ...
Julian Broudy's user avatar
2 votes
1 answer
160 views

REST API noun vs verb and client vs server responsibility

I'm trying to delineate the responsibilities between client & server. I have the server parse a file, and then send back the uncategorized accounting transactions. The URL looks something like: ...
keelerjr12's user avatar
  • 1,229

15 30 50 per page
1
2 3 4 5
10