Created
March 8, 2016 15:03
-
-
Save dwelch2344/6a5d416d811f552c68bd to your computer and use it in GitHub Desktop.
Why does _links contain both a *self* and *product* link? Is this part of the HAL spec?
This file contains hidden or 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
{ | |
_embedded:{ | |
products:[ | |
{ | |
id:1, | |
name:"Starter Kit", | |
description:"Starter Kit", | |
msrp:5000, | |
taxable:true, | |
commissionable:true, | |
status:"AVAILABLE", | |
_links:{ | |
self:{ | |
href:"http://localhost:8080/api/products/1" | |
}, | |
product:{ | |
href:"http://localhost:8080/api/products/1" | |
} | |
} | |
}, | |
{ | |
id:3, | |
name:"Starter Kit2", | |
description:"Starter Kit", | |
msrp:5000, | |
taxable:true, | |
commissionable:true, | |
status:"UNAVAILABLE", | |
_links:{ | |
self:{ | |
href:"http://localhost:8080/api/products/3" | |
}, | |
product:{ | |
href:"http://localhost:8080/api/products/3" | |
} | |
} | |
}, | |
{ | |
id:4, | |
name:"Starter Kit234", | |
description:"Starter Kit", | |
msrp:5000, | |
taxable:true, | |
commissionable:true, | |
status:"UNAVAILABLE", | |
_links:{ | |
self:{ | |
href:"http://localhost:8080/api/products/4" | |
}, | |
product:{ | |
href:"http://localhost:8080/api/products/4" | |
} | |
} | |
} | |
] | |
}, | |
_links:{ | |
self:{ | |
href:"http://localhost:8080/api/products" | |
}, | |
profile:{ | |
href:"http://localhost:8080/api/profile/products" | |
} | |
}, | |
page:{ | |
size:20, | |
totalElements:3, | |
totalPages:1, | |
number:0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment