Skip to main content

Questions tagged [rest]

Representational state transfer, or REST, is an architectural style for networking software to transfer information through the web.

206 votes
7 answers
130k views

When designing a RESTful interface, the semantics of the request types are deemed vital to the design. GET - List collection or retrieve element PUT - Replace collection or element POST - Create ...
Rob Baillie's user avatar
  • 2,476
196 votes
6 answers
271k views

I learned REST and it feels a lot like CRUD (from what I have read about CRUD). I know they are different, and I wonder if thinking they are similar means I don't understand them. Is it that REST is ...
Jesse Black's user avatar
  • 2,475
164 votes
9 answers
104k views

I am implementing a RESTful web service and one of the available actions will be reload. It will be used to reload configurations, cache, etc. We started with a simple GET to an URI like this: ${path}...
Renato Dinhani's user avatar
128 votes
4 answers
70k views

I am still trying to find the best security solution for protecting REST API, because the amount of mobile applications and API is increasing every day. I have tried different ways of authentication,...
CROSP's user avatar
  • 1,578
127 votes
8 answers
234k views

I'm designing a RESTful web service using WebApi and was wondering what HTTP responses and response bodies to return when updating / creating objects. For example I can use the POST method to send ...
iswinky's user avatar
  • 1,373
117 votes
4 answers
145k views

I'm specifically interested in how users perform authorized / authenticated operations on a web API. Are authentication cookies compatible with the REST philosophy, and why?
Brandon Linton's user avatar
115 votes
9 answers
84k views

How do I make sure my REST API only responds to requests generated by trusted clients, in my case my own mobile applications? I want to prevent unwanted requests coming from other sources. I don't ...
supercell's user avatar
  • 1,517
99 votes
8 answers
81k views

I am planning to build a RESTfull API but there are some architectural questions that are creating some problems in my head. Adding backend business logic to clients is an option that I would like to ...
Miro Svrtan's user avatar
  • 1,149
93 votes
6 answers
89k views

I'm building a RESTful API that supports queuing long-running tasks for eventual handling. The typical workflow for this API would be: User fills in form Client posts data to API API returns 202 ...
Matthew Haugen's user avatar
87 votes
7 answers
210k views

Let's say I have three resources that are related like so: Grandparent (collection) -> Parent (collection) -> and Child (collection) The above depicts the relationship among these resources ...
HiChews123's user avatar
  • 1,123
84 votes
3 answers
33k views

Lately I have become interested in familiarizing myself with REST. I tried reading wiki entry on REST, but it was of no help. I would really appreciate it if someone can explain in simple English (...
Gaurav's user avatar
  • 3,739
82 votes
3 answers
59k views

I have been having a debate about what to do with a trailing slash in a RESTful API. Lets say I have a resource called dogs and subordinate resources for individual dogs. We can therefore do the ...
GWed's user avatar
  • 3,273
76 votes
6 answers
92k views

I'm currently working on a project with an organization as follows: Client - Gets data from the main server via REST api. Server - Requests data from various other servers via third-party APIs Third-...
williamg's user avatar
  • 861
75 votes
4 answers
31k views

I was wondering about this. Suppose I have a user resource with id and name fields. If I want to update a field I could just do a PATCH request to the resource like this PATCH /users/42 {"name&...
mattecapu's user avatar
  • 1,012
74 votes
2 answers
62k views

Suppose a REST API, in response to a HTTP GET request, returns some additional data in a sub-object owner: { id: 'xyz', ... some other data ... owner: { name: 'Jo Bloggs', role: '...
Robin Green's user avatar
  • 1,293

15 30 50 per page
1
2 3 4 5
107