From de157be6f1886a22eac3121f2a09885a294bf78f Mon Sep 17 00:00:00 2001 From: jvelilla Date: Fri, 9 Dec 2011 11:57:04 -0200 Subject: [PATCH] Update examples/restbucksCRUD/readme.md --- examples/restbucksCRUD/readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/restbucksCRUD/readme.md b/examples/restbucksCRUD/readme.md index 8f5a759a..300c2c1c 100644 --- a/examples/restbucksCRUD/readme.md +++ b/examples/restbucksCRUD/readme.md @@ -104,6 +104,14 @@ of to handle different type of request to the ORDER resource. How to Create an order ---------------------- +Here is the convention that we are using +POST is used for creation and the server determines the URI of the created resource. +If the request post is SUCCESS, the server will create the order and will response with +HTTP_RESPONSE 201 CREATED, the Location header will contains the newly created order's URI +if the request post is not SUCCESS, the server will response with +HTTP_RESPONSE 400 BAD REQUEST, the client send a bad request or +HTTP_RESPONSE 500 INTERNAL_SERVER_ERROR, when the server can deliver the request. + * Uri: http://localhost:8080/order * Method: POST * Note: you will get in the response the "location" of the new your order.