Created
May 6, 2016 09:50
-
-
Save dschulten/52bb9f838bc8ff04023a24fa13355c40 to your computer and use it in GitHub Desktop.
Sample uber response with nested model data
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
{ | |
"uber": { | |
"data": [ | |
{ | |
"rel": [ | |
"self" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/events", | |
"action": "APPEND", | |
"model": "performer={performer}&workPerformed.name={workPerformed.name}&location={location}&eventStatus={eventStatus}" | |
}, | |
{ | |
"rel": [ | |
"http://example.com/rels/filter" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/events{?name}", | |
"templated": true | |
}, | |
{ | |
"data": [ | |
{ | |
"rel": [ | |
"self" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/events/1" | |
}, | |
{ | |
"rel": [ | |
"self" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/events/1", | |
"action": "REPLACE", | |
"model": "performer={performer}&workPerformed.name={workPerformed.name}&location={location}&eventStatus={eventStatus}" | |
}, | |
{ | |
"rel": [ | |
"self" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/events/1", | |
"action": "REMOVE" | |
}, | |
{ | |
"name": "eventStatus", | |
"value": "EVENT_SCHEDULED" | |
}, | |
{ | |
"name": "performer", | |
"value": "Walk off the Earth" | |
}, | |
{ | |
"name": "location", | |
"value": "Wiesbaden" | |
}, | |
{ | |
"name": "workPerformed", | |
"data": [ | |
{ | |
"rel": [ | |
"review" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/reviews/events/1", | |
"action": "APPEND", | |
"model": "reviewBody={reviewBody}&reviewRating.ratingValue={reviewRating.ratingValue}" | |
}, | |
{ | |
"name": "name", | |
"value": "Gang of Rhythm Tour" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"data": [ | |
{ | |
"rel": [ | |
"self" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/events/2" | |
}, | |
{ | |
"rel": [ | |
"self" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/events/2", | |
"action": "REPLACE", | |
"model": "performer={performer}&workPerformed.name={workPerformed.name}&location={location}&eventStatus={eventStatus}" | |
}, | |
{ | |
"rel": [ | |
"self" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/events/2", | |
"action": "REMOVE" | |
}, | |
{ | |
"name": "eventStatus", | |
"value": "EVENT_SCHEDULED" | |
}, | |
{ | |
"name": "performer", | |
"value": "Cornelia Bielefeldt" | |
}, | |
{ | |
"name": "location", | |
"value": "Heilbronn" | |
}, | |
{ | |
"name": "workPerformed", | |
"data": [ | |
{ | |
"rel": [ | |
"review" | |
], | |
"url": "http://localhost:8080/webapp/hypermedia-api/reviews/events/2", | |
"action": "APPEND", | |
"model": "reviewBody={reviewBody}&reviewRating.ratingValue={reviewRating.ratingValue}" | |
}, | |
{ | |
"name": "name", | |
"value": "Mein letzter Film" | |
} | |
] | |
} | |
] | |
} | |
], | |
"version": "1.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment