Linked Questions
48 questions linked to/from Understanding REST: Verbs, error codes, and authentication
0 votes
1 answer
105 views
REST endpoints using verbs or nouns [duplicate]
so i need to create a rest endpoint that basically creates an entry in the database, a address token when the customer is initialised. I have two possible endpoints: POST - customer/address-token -...
1 vote
0 answers
60 views
Importance of HTTP Methods in a REST Api [duplicate]
I am learning RESTful webservices using JAX-RS Jersey. Although we have different HTTP Methods for different purposes like: GET for Reading a resource DELETE fro deleting a resource PUT and POST for ...
432 votes
9 answers
233k views
When should I use a trailing slash in my URL?
When should a trailing slash be used in a URL? For example - should my URL look like /about-us/ or like /about-us? I am fully aware of the SEO-related issues - duplicate content and the canonical ...
149 votes
11 answers
340k views
REST API using POST instead of GET
Let's assume a service offers some funcionality that I can use like this: GET /service/function?param1=value1¶m2=value2 Is it right to say that I can use it with a POST query? POST /service/...
43 votes
3 answers
29k views
Which HTTP method should Login and Logout Actions use in a "RESTful" setup
Curious how others here would represent these in a REST architecture. /users/login/ /users/logout/ These endpoints set up the session to login in the user, or clear it, respectively. My gut says POST,...
21 votes
7 answers
5k views
REST verbs - which convention is "correct"
I'm well into implementing a REST service (on a Windows CE platform if that matters) and I started out using IBM's general definitions of using POST for creating (INSERTs) and PUT for updating. Now ...
33 votes
4 answers
9k views
What to do when you need more verbs in REST
There is another similar question to mine, but the discussion veered away from the problem I'm encounting. Say I have a system that deals with expense reports (ER). You can create and edit them, add ...
20 votes
2 answers
11k views
REST url for create and edit forms
there been quite good thread on rest urls in SO. Is this a bad REST URL? Understanding REST: Verbs, error codes, and authentication I see a good resource here as well. The question is how to ...
10 votes
2 answers
15k views
Why does including an action verb in the URI in a REST implementation violate the protocol?
I'm finding it necessary to understand why including action verbs in the URI violates the REST protocol for URI syntax? When I read the following article, I sense that too many people are making too ...
4 votes
5 answers
3k views
Is this a bad REST URL?
I've just been reading about REST URLs and seen the following example: /API/User/GetUser Now if this is accessed over HTTP with a verb GET isn't this a bad URL becuase it describes the action (GET) ...
7 votes
5 answers
5k views
Error code pattern for API
What are the good choice for API error code response pattern? Instead of using different codes indicating different type of error 100001 // username not provided 100002 // password not provided ...
12 votes
1 answer
6k views
CRUD URL Design for Browsers (not REST)
Many questions has been asked on Stack Overflow for RESTful URL design To name a few... Hierarchical URL Design: Hierarchical RESTful URL design Understanding REST: Verbs, error codes, and ...
2 votes
4 answers
8k views
Alternatives of using verbs and adjectives in RESTful URL
I want to add actions to my REST API that would move 'resources' between different 'stores'. For instance, suppose my resources are normally accessed by the following URL: /resources /resources/{...
4 votes
1 answer
17k views
Adding parameters to rest GET request
I have an application running with AS2/PHP. The AS2 communicate with PHP scripts via $_POST array of data, this array contains data like sessionkey, userID, and some database filtering (sql limit, ...
1 vote
1 answer
18k views
Converting asmx SOAP webservice to REST on ASP.NET: is WCF really useful for just that ?
Why not just add http get support in config and that's done with the advantage that the service will be dual both SOAP AND REST? What's all the buzz around rest ? What WCF will bring to this ? I ...