Skip to content

Instantly share code, notes, and snippets.

@claym
Created July 31, 2015 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claym/e11696867abda5217a6b to your computer and use it in GitHub Desktop.
Save claym/e11696867abda5217a6b to your computer and use it in GitHub Desktop.
{
"_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