Created
July 31, 2015 18:05
-
-
Save claym/e11696867abda5217a6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_links": { | |
"self": { | |
"href": "http://localhost:8080/widget{?page,size,sort}", | |
"templated": true | |
}, | |
"search": { | |
"href": "http://localhost:8080/widget/search" | |
} | |
}, | |
"_embedded": { | |
"widgets": [ | |
{ | |
"name": "Foo", | |
"description": "A widget named Foo", | |
"_links": { | |
"self": { | |
"href": "http://localhost:8080/widget/1" | |
}, | |
"category": { | |
"href": "http://localhost:8080/widget/1/category" | |
} | |
} | |
}, | |
{ | |
"name": "Bar", | |
"description": "A widget named Bar", | |
"_links": { | |
"self": { | |
"href": "http://localhost:8080/widget/2" | |
}, | |
"category": { | |
"href": "http://localhost:8080/widget/2/category" | |
} | |
} | |
} | |
] | |
}, | |
"page": { | |
"size": 20, | |
"totalElements": 2, | |
"totalPages": 1, | |
"number": 0 | |
} | |
} | |
{ | |
"_links": { | |
"self": { | |
"href": "http://localhost:8080/category{?page,size,sort}", | |
"templated": true | |
}, | |
"search": { | |
"href": "http://localhost:8080/category/search" | |
} | |
}, | |
"_embedded": { | |
"category": [ | |
{ | |
"name": "Default", | |
"description": "A default category", | |
"_links": { | |
"self": { | |
"href": "http://localhost:8080/category/1" | |
}, | |
"widgets": { | |
"href": "http://localhost:8080/category/1/widgets" | |
} | |
} | |
} | |
] | |
}, | |
"page": { | |
"size": 20, | |
"totalElements": 1, | |
"totalPages": 1, | |
"number": 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment