Update examples/restbucksCRUD/readme.md
This commit is contained in:
@@ -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
|
400 BAD REQUEST, the client send a bad request or
|
||||||
500 INTERNAL_SERVER_ERROR, when the server can deliver the request.
|
500 INTERNAL_SERVER_ERROR, when the server can deliver the request.
|
||||||
|
|
||||||
POST /order HTTP/1.1
|
POST /order HTTP/1.1
|
||||||
Host: 127.0.0.1:8080
|
Host: 127.0.0.1:8080
|
||||||
Connection: keep-alive
|
Connection: keep-alive
|
||||||
Content-Length: 196
|
Content-Length: 196
|
||||||
Origin: chrome-extension://fhjcajmcbmldlhcimfajhfbgofnpcjmb
|
Origin: chrome-extension://fhjcajmcbmldlhcimfajhfbgofnpcjmb
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
Accept: */*
|
Accept: */*
|
||||||
Accept-Encoding: gzip,deflate,sdch
|
Accept-Encoding: gzip,deflate,sdch
|
||||||
Accept-Language: es-419,es;q=0.8,en;q=0.6
|
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
|
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
|
||||||
|
|
||||||
{
|
{
|
||||||
"location":"takeAway",
|
"location":"takeAway",
|
||||||
"items":[
|
"items":[
|
||||||
{
|
{
|
||||||
"name":"Late",
|
"name":"Late",
|
||||||
"option":"skim",
|
"option":"skim",
|
||||||
"size":"Small",
|
"size":"Small",
|
||||||
"quantity":1
|
"quantity":1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
Response success
|
Response success
|
||||||
|
|
||||||
HTTP/1.1 201 Created
|
HTTP/1.1 201 Created
|
||||||
Status 201 Created
|
Status 201 Created
|
||||||
Content-Type application/json
|
Content-Type application/json
|
||||||
Content-Length 123
|
Content-Length 123
|
||||||
Location http://localhost:8080/order/1
|
Location http://localhost:8080/order/1
|
||||||
Date FRI,09 DEC 2011 20:34:20.00 GMT
|
Date FRI,09 DEC 2011 20:34:20.00 GMT
|
||||||
|
|
||||||
{
|
{
|
||||||
"id" : "1",
|
"id" : "1",
|
||||||
"location" : "takeAway",
|
"location" : "takeAway",
|
||||||
"status" : "submitted",
|
"status" : "submitted",
|
||||||
"items" : [ {
|
"items" : [ {
|
||||||
"name" : "late",
|
"name" : "late",
|
||||||
"size" : "small",
|
"size" : "small",
|
||||||
"quantity" : 1,
|
"quantity" : 1,
|
||||||
"option" : "skim"
|
"option" : "skim"
|
||||||
} ]
|
} ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
How to Read an order
|
How to Read an order
|
||||||
|
|||||||
Reference in New Issue
Block a user