Last active
August 29, 2015 14:14
-
-
Save JogoShugh/3004bf6e09edd82c11a6 to your computer and use it in GitHub Desktop.
inboxes list HAL
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:6565/api/digests/f4b72f3b-aab6-4481-b3b2-ef57ea81f080/inboxes", | |
}, | |
"digest": { | |
"href": "http://localhost:6565/api/digests/f4b72f3b-aab6-4481-b3b2-ef57ea81f080" | |
}, | |
"inbox-create": { | |
"href": "http://localhost:6565/api/inboxes", | |
"method": "POST", | |
"title": "Endpoint for creating an inbox for a repository on digest f4b72f3b-aab6-4481-b3b2-ef57ea81f080." | |
} | |
}, | |
"count": 2 | |
"_embedded": { | |
"inboxes": [ | |
{ | |
"_links": { | |
"self": { | |
"href": "http://localhost:6565/api/inboxes/cc8c8e10-d682-4e4e-a9a2-92e0edf85418" | |
}, | |
"inbox-commits": { | |
"href": "http://localhost:6565/api/inboxes/cc8c8e10-d682-4e4e-a9a2-92e0edf85418/commits", | |
"method": "POST" | |
} | |
}, | |
"inboxId": "cc8c8e10-d682-4e4e-a9a2-92e0edf85418", | |
"family": "GitHub", | |
"name": "Inbox 1" | |
}, | |
{ | |
"_links": { | |
"self": { | |
"href": "http://localhost:6565/api/inboxes/d7b7f3fe-dfa9-458f-8e51-fc28dcc37a8e" | |
}, | |
"inbox-commits": { | |
"href": "http://localhost:6565/api/inboxes/cc8c8e10-d682-4e4e-a9a2-92e0edf85418/commits", | |
"method": "POST" | |
} | |
}, | |
"inboxId": "d7b7f3fe-dfa9-458f-8e51-fc28dcc37a8e", | |
"family": "GitHub", | |
"name": "Inbox 2" | |
}, | |
] | |
} | |
} |
Could we also add the digest name in the response? What about an inbox endpoint?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe also include the digestId as a part of the response, side by side with the count property