Do I violate RESTfulness when using POST as UPDATE OR CREATE
问题 Given the requirement other departments have for our REST API they would like to use POST not just for CREATE but for UPDATE OR CREATE . I know in a RESTful API PUT could or should be used for that, but because clients have to update information that is used to build the URI, we cannot use that. It would change the URI and make PUT not idempotent anymore... (the old URI would not exist after the first PUT ). tl;dr we cannot use PUT In the HTTP/1.1 specs POST is defined as The POST method is