Linked Questions

156 votes
6 answers
186k views

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 ...
uclajatt's user avatar
  • 4,323
165 votes
7 answers
56k views

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 ...
Stefano Borini's user avatar
39 votes
4 answers
18k views

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 ...
George's user avatar
  • 3,451
5 votes
3 answers
3k views

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 @...
Ori Marko's user avatar
  • 59.3k
1 vote
0 answers
2k views

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 ...
Sathish's user avatar
  • 131
0 votes
4 answers
576 views

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,...
Sam Web Studio's user avatar
2 votes
1 answer
731 views

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 ...
Schenz's user avatar
  • 1,113
0 votes
0 answers
367 views

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) ...
Rakesh's user avatar
  • 71
0 votes
1 answer
263 views

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" ...
Aron's user avatar
  • 422
0 votes
1 answer
31 views

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, ...
vadim.zhiltsov's user avatar