restalk / restalk-patterns

RESTalk Patterns - A Pattern Collection for RESTful Conversations
http://restalk-patterns.org
19 stars 1 forks source link

POST-PUT Creation > Incorrect use of HTTP verbs #1

Closed odrotbohm closed 8 years ago

odrotbohm commented 8 years ago

Context: If a client wants to create a resource whose URI it does not know, it has to use a PUT request.

Shouldn't that be POST?

Problem: … This is not a problem if the request was using an idempotent HTTP verb like PUT, PUT or, PUT. However, if a client uses a PUT request because it wants to create a resource whose URI will be determined by the server, how can the creation be repeated without resulting in multiple resources being created?

I guess the first enumeration is supposed to state GET, PUT, DELETE, and the final mention is again referring to the non-idempotency of a POST request.

saivlis commented 8 years ago

Thanks a lot, I fixed it.

odrotbohm commented 8 years ago

Line 86 still erroneously mentions PUT as the method to create a resource with the server in charge of defining the URI of the resource to be created.

saivlis commented 8 years ago

I already fixed some more copy & paste errors in that pattern description.

odrotbohm commented 8 years ago

👍🙃