Skip to content

Instantly share code, notes, and snippets.

@TianyiLi
Created July 4, 2019 09:19
Show Gist options
  • Save TianyiLi/172ad01c03ff15b4e3d1768595ffbd94 to your computer and use it in GitHub Desktop.
Save TianyiLi/172ad01c03ff15b4e3d1768595ffbd94 to your computer and use it in GitHub Desktop.
rest
{
"link": {
"self": {
"href": "/order"
},
"cancel": {
"method": "delete",
"href": "/order/cancel/{id}"
},
"change": {
"method": "put",
"href": "/order/change/{id}",
"body": {
"item": {}
}
},
"pay": {
"method": "post",
"href": "/order/pay",
"body": {
"id": "string",
"paymentMethod": {}
}
}
},
"status": {
"itemDetail": {}
}
}
{
"links": {
"self": {
"href": "/order/receipt/{id}"
},
"order": {
"href": "/order/{id}",
"methods": "put"
}
},
"status": {
"id": "",
"isChecked": "Boolean"
}
}
{
"links": {
"self": {
"href": "/order/{id}"
},
"refresh": {
"href": "/order/refresh/{id}"
}
},
"status": {
"id": "",
"paymentmethod": {}
}
}
{
"links": {
"self": {
"href": "/order/{id}"
},
"take": {
"method": "update",
"href": "/order/check",
"body": {
"id": ""
}
}
},
"status": {
"isComplete": "",
"id": ""
}
}
{
"links": {
"self": {
"href": "/order/{id}"
}
},
"status": {
"orderDetail": {}
}
}
{
"link": {
"self": {
"href": "/order/cancelled/{id}",
"method": "delete"
}
},
"status": {
"id": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment