Hypertext Application Language: Difference between revisions

Content deleted Content added
Fixed typo
m <pre> for no lang
Line 9:
 
==Example==
<sourcepre>
General Resource { "_links": { "self": { "href": "http://example.com/api/book/hal-cookbook" } }, "id": "hal-cookbook", "name": "HAL Cookbook" }
</sourcepre>
 
<sourcepre>
Embedded resource { "_links": {"self": {"href": "http://example.com/api/book/hal-cookbook"}}, "_embedded": { "author": { "_links": {"self": {"href": "http://author-example.com"}}, "id": "shahadat", "name": "Shahadat Hossain Khan" } } "id": "hal-cookbook", "name": "HAL Cookbook" }
</sourcepre>
 
<sourcepre>
Collections { "_links": { "self": {"href": "http://example.com/api/book/hal-cookbook"}, "next": {"href": "http://example.com/api/book/hal-case-study"}, "prev": {"href": "http://example.com/api/book/json-and-beyond"}, "first": {"href": "http://example.com/api/book/catalog"}, "last": {"href": "http://example.com/api/book/upcoming-books"} }, "_embedded": { "author": { "_links": {"self": {"href": "http://author-example.com"}}, "id": "shahadat", "name": "Shahadat Hossain Khan" } } "id": "hal-cookbook", "name": "HAL Cookbook" }
</sourcepre>
 
==See also==