Hypertext Application Language: Difference between revisions

Content deleted Content added
WP:CHECKWIKI error fix. Broken bracket problem. Do general fixes and cleanup if needed. - using AWB (12082)
Example: use source tags for programming text
Line 9:
 
==Example==
<source>
General Resource { "_links": { "self": { "href": "<nowiki>http://example.com/api/book/hal-cookbook</nowiki>" } }, "id": "hal-cookbook", "name": "HAL Cookbook" }
</source>
 
<source>
Embedded resource { "_links": {"self": {"href": "<nowiki>http://example.com/api/book/hal-cookbook"}}</nowiki>, "_embedded": { "author": { "_links": {"self": {"href": "<nowiki>http://author-example.com</nowiki>"}}, "id": "shahadat", "name": "Shahadat Hossain Khan" } } "id": "hal-cookbook", "name": "HAL Cookbook" }
</source>
 
<source>
Collections { "_links": { "self": {"href": "<nowiki>http://example.com/api/book/hal-cookbook</nowiki>"}, "next": {"href": "<nowiki>http://example.com/api/book/hal-case-study</nowiki>"}, "prev": {"href": "<nowiki>http://example.com/api/book/json-and-beyond</nowiki>"}, "first": {"href": "<nowiki>http://example.com/api/book/catalog</nowiki>"}, "last": {"href": "<nowiki>http://example.com/api/book/upcoming-books</nowiki>"} }, "_embedded": { "author": { "_links": {"self": {"href": "<nowiki>http://author-example.com</nowiki>"}}, "id": "shahadat", "name": "Shahadat Hossain Khan" } } "id": "hal-cookbook", "name": "HAL Cookbook" }
</source>
 
==See also==