From 9ef10c749a28a7d09a8e2d9eb039ef5c064f98db Mon Sep 17 00:00:00 2001 From: jvelilla Date: Fri, 9 Dec 2011 18:45:50 -0200 Subject: [PATCH] Update examples/restbucksCRUD/readme.md --- examples/restbucksCRUD/readme.md | 80 ++++++++++++++++---------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/examples/restbucksCRUD/readme.md b/examples/restbucksCRUD/readme.md index 5719870d..4b012c4d 100644 --- a/examples/restbucksCRUD/readme.md +++ b/examples/restbucksCRUD/readme.md @@ -112,49 +112,49 @@ if the request POST is not SUCCESS, the server will response with 400 BAD REQUEST, the client send a bad request or 500 INTERNAL_SERVER_ERROR, when the server can deliver the request. -POST /order HTTP/1.1 -Host: 127.0.0.1:8080 -Connection: keep-alive -Content-Length: 196 -Origin: chrome-extension://fhjcajmcbmldlhcimfajhfbgofnpcjmb -Content-Type: application/json -Accept: */* -Accept-Encoding: gzip,deflate,sdch -Accept-Language: es-419,es;q=0.8,en;q=0.6 -Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 - -{ - "location":"takeAway", - "items":[ - { - "name":"Late", - "option":"skim", - "size":"Small", - "quantity":1 - } - ] -} + POST /order HTTP/1.1 + Host: 127.0.0.1:8080 + Connection: keep-alive + Content-Length: 196 + Origin: chrome-extension://fhjcajmcbmldlhcimfajhfbgofnpcjmb + Content-Type: application/json + Accept: */* + Accept-Encoding: gzip,deflate,sdch + Accept-Language: es-419,es;q=0.8,en;q=0.6 + Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 + + { + "location":"takeAway", + "items":[ + { + "name":"Late", + "option":"skim", + "size":"Small", + "quantity":1 + } + ] + } Response success -HTTP/1.1 201 Created -Status 201 Created -Content-Type application/json -Content-Length 123 -Location http://localhost:8080/order/1 -Date FRI,09 DEC 2011 20:34:20.00 GMT - -{ - "id" : "1", - "location" : "takeAway", - "status" : "submitted", - "items" : [ { - "name" : "late", - "size" : "small", - "quantity" : 1, - "option" : "skim" - } ] -} + HTTP/1.1 201 Created + Status 201 Created + Content-Type application/json + Content-Length 123 + Location http://localhost:8080/order/1 + Date FRI,09 DEC 2011 20:34:20.00 GMT + + { + "id" : "1", + "location" : "takeAway", + "status" : "submitted", + "items" : [ { + "name" : "late", + "size" : "small", + "quantity" : 1, + "option" : "skim" + } ] + } How to Read an order