From b96029a7500d075b87063c0741a63d221a616cce Mon Sep 17 00:00:00 2001 From: jvelilla Date: Fri, 9 Dec 2011 18:56:49 -0200 Subject: [PATCH] Update examples/restbucksCRUD/readme.md --- examples/restbucksCRUD/readme.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/examples/restbucksCRUD/readme.md b/examples/restbucksCRUD/readme.md index 4b012c4d..1c292b84 100644 --- a/examples/restbucksCRUD/readme.md +++ b/examples/restbucksCRUD/readme.md @@ -159,9 +159,30 @@ Response success How to Read an order -------------------- - * Uri: http://localhost:8080/order/{order_id} - * Method: GET +Using GET to retrieve resource information. +If the GET request is SUCCESS, we response with 200 OK, and a representation of the order +If the GET request is not SUCCESS, we response with 404 Resource not found +If is a Conditional GET and the resource does not change we send a 304, Resource not modifed + HTTP/1.1 200 OK + + Status 200 OK + Content-Type application/json + Content-Length 123 + Date FRI,09 DEC 2011 20:53:46.00 GMT + etag 2ED3A40954A95D766FC155682DC8BB52 + + { + "id" : "1", + "location" : "takeAway", + "status" : "submitted", + "items" : [ { + "name" : "late", + "size" : "small", + "quantity" : 1, + "option" : "skim" + } ] + }