{
"_links": {
"self": {
"href": "http://localhost:8080/orders?page=&size=&sort=&projection="
},
"search": {
"href": "http://localhost:8080/orders/search"
}
},
"_embedded": {
"orders": [
{
"location": "TAKE_AWAY",
"status": "PAYMENT_EXPECTED",
"orderedDate": "2014-05-20T20:17:00.830Z",
"items": [
{
"name": "Java Chip",
"quantity": 1,
"milk": "SEMI",
"size": "LARGE",
"price": {
"currency": "EUR",
"value": 4.2
}
}
],
"_links": {
"self": {
"href": "http://localhost:8080/orders/1{?projection}",
"templated": true
},
"restbucks:payment": {
"href": "http://localhost:8080/orders/1/payment"
},
"restbucks:cancel": {
"href": "http://localhost:8080/orders/1"
},
"restbucks:update": {
"href": "http://localhost:8080/orders/1"
},
"curies": [
{
"href": "http://localhost:8080/rels/{rel}",
"name": "restbucks",
"templated": true
}
]
}
},
{
"location": "TAKE_AWAY",
"status": "PAYMENT_EXPECTED",
"orderedDate": "2014-05-20T20:17:00.830Z",
"items": [
{
"name": "Cappuchino",
"quantity": 1,
"milk": "SEMI",
"size": "LARGE",
"price": {
"currency": "EUR",
"value": 3.2
}
}
],
"_links": {
"self": {
"href": "http://localhost:8080/orders/2{?projection}",
"templated": true
},
"restbucks:payment": {
"href": "http://localhost:8080/orders/2/payment"
},
"restbucks:cancel": {
"href": "http://localhost:8080/orders/2"
},
"restbucks:update": {
"href": "http://localhost:8080/orders/2"
},
"curies": [
{
"href": "http://localhost:8080/rels/{rel}",
"name": "restbucks",
"templated": true
}
]
}
}
]
},
"page": {
"size": 20,
"totalElements": 2,
"totalPages": 1,
"number": 0
}
}