Linked Questions
10 questions linked to/from REST api: requesting multiple resources in a single get
156 votes
6 answers
186k views
How to construct a REST API that takes an array of id's for the resources
I am building a REST API for my project. The API for getting a given user's INFO is: api.com/users/[USER-ID] I would like to also allow the client to pass in a list of user IDs. How can I construct ...
165 votes
7 answers
56k views
Authoritative position of duplicate HTTP GET query keys
I am having trouble on finding authoritative information about the behavior with HTTP GET query string duplicate fields, like http://example.com/page?field=foo&field=bar and in particular if the ...
39 votes
4 answers
18k views
REST URL design - multiple resources in one HTTP call [duplicate]
Possible Duplicate: Rails 3 Custom Route that takes multiple ids as a parameter From what I understand, a good REST URL for getting a resource would look like this: /resource/{id} The problem I ...
5 votes
3 answers
3k views
Extend Single ID REST endpoint to support multiple IDs
I have a single ID REST API that I need to extend to support multiple (up to 10Ks) IDs. Basically to run update on all relevant IDs instead of sending 10Ks request in network. Current endpoint: @POST @...
1 vote
0 answers
2k views
REST API get multiple records using id
We have the records in the below format : [ { id: 1, name : 'Chris', class : 'x', year : 3, }, { id: 2, name : 'John', class : 'y', year : 4, } ] I want to fetch ...
0 votes
4 answers
576 views
Vue js function countSubcategories() returns [object Promise]
countSubcategories() function returns [object Promise] where it should return row counts of mapped subcategories. This code is in vue.js & Laravel, Any suggestions on this? <div v-for="(cat,...
2 votes
1 answer
731 views
How to support wrapping variable in braces with Spring GetMapping annotation
I need to support wrapping a list of ids in curly braces with Spring GetMapping annotation. When I use square brackets like this, it works: @GetMapping("/get/[{ids}]") but double the braces and ...
0 votes
0 answers
367 views
Should we create different endpoint in microservices to get single data and to get list or should I use call single data endpoint multiple time
Say we have a grpc microservice which have endpoint GetDataById(int id). If I came across a use case where I want data of multiple ids, should I create separate endpoint like GetDataByIds(int[] ids) ...
0 votes
1 answer
263 views
Rest API multiple parameters
I'm in the initial stages of planning a REST api. I'm only interested in the read aspects of it for now. I'm having trouble with filters. As a hypothetical, this api is designed to serve "foo" ...
0 votes
1 answer
31 views
Ember js, URL state for group edit
As says Ember's ideology: "Every application state should be shown in url". And I don't have an idea how to represent state in url for group actions on models? As example I have edit action for song, ...