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.

4
  • 2
    The verb is king. A POST to /users is an "add" (new) operation. So far everything I've used and programmed myself works like that. Commented Mar 8, 2018 at 12:53
  • 6
    On Rails, /users/new is a GET which points to new user form page and that form is sent to POST /users Commented Mar 8, 2018 at 13:05
  • 2
    @MBraiN Yeah, in rails the /new URL is used purely to serve the page containing the HTML form that the user can fill in to create a new user. If you are creating a pure API then this is not used, it's only used when you also want a web interface. Commented Mar 8, 2018 at 16:43
  • RubyOnRais uses this convention so it can't be totally wrong. probably RoR devs doesn't care about REST conventions. Or they did their own interpretation. But it doesn't mean they are right just because they have a framework. Nobody code for the state of the art. Commented Mar 8, 2018 at 20:42