From 9363daaa4a6970ede31983ee65d5193c7f84de46 Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Sun, 20 Jan 2013 01:30:45 +0100 Subject: [PATCH] Update lessons/httpmethods.html fixed a typo --- lessons/httpmethods.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lessons/httpmethods.html b/lessons/httpmethods.html index ed972db..bfb867e 100644 --- a/lessons/httpmethods.html +++ b/lessons/httpmethods.html @@ -125,7 +125,7 @@

The POST verb is most-often utilized for creation of new resources. In particular, it's used to create subordinate resources. That is, subordinate to some other (e.g. parent) resource. In other words, when creating a new resource, POST to the parent and the service takes care of associating the new resource with the parent, assigning an ID (new resource URI), etc.

On successful creation, return HTTP status 201, returning a Location header with a link to the newly-created resource with the 201 HTTP status.

-

POST is neither safe or idempotent. It is therefore recommended for non-idempotent resource requests. Making two identical POST requests will most-likely result in two resources containing the same information.

+

POST is neither safe nor idempotent. It is therefore recommended for non-idempotent resource requests. Making two identical POST requests will most-likely result in two resources containing the same information.

Examples: