Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    Yes, if you are integrating your REST API with HTML based app (via Javascript and AJAX), you will tremendous benefits as JSON is parsed natively by Javascript. In Android/Java, JSON is easier and more straightforward to parse as well compared to XML. Commented Aug 31, 2011 at 7:44
  • 23
    GET /logout is dangerous. GET should be idempotent. Also browsers like to prefetch <a> hrefs, which will log you out! Commented Apr 19, 2013 at 4:21
  • you have said nothing about nouns vs verbs being used in your endpoint names, POST register is a verb, is that acceptable? Commented Jan 6, 2022 at 13:10
  • 1
    @PirateApp I was just over the same situation and in my opinion the registration as POST request should not be on /register but on /users. Just use CRUD (Create Read Update Delete) on your resources as intended Commented Aug 19, 2022 at 12:07