4 ms·
>And if you do that you're really writing POX, with any true-REST features being fifth, sixth, and seventh wheels. Not at all. In REST, the resource represent
by metageek 16y ago
>And if you do that you're really writing POX, with any true-REST features being fifth, sixth, and seventh wheels.
Not at all. In REST, the resource represents an object. When you GET the resource, you get a document encoding the state of the object. So, if you POST such a document to the creation resource, you're creating the object.
CREATE would be a better verb, but WebDAV defines CREATE as creating a resource at the specified URI; in an API, when you want to create a new object, you probably need the API to tell you the URI.