Content deleted Content added
Format code samples Tags: nowiki added Visual edit |
m v2.05b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation) |
||
(33 intermediate revisions by 29 users not shown) | |||
Line 1:
{{Short description|Proposed computer definition standard}}
'''Hypertext Application Language''' ('''HAL''') is
HAL was created to be simple to use and easily applicable across different [[___domain (software engineering)|domains]] by avoiding the need to impose any requirements on how the project be structured.
APIs that adopt HAL
== Convention ==
HAL is structured in such a way as to represent elements based on two concepts:
==Example==
General Resource
<syntaxhighlight lang="json">
{
"_links": {
Line 19 ⟶ 21:
"name": "HAL Cookbook"
}
</syntaxhighlight>
<syntaxhighlight lang="json">
{
"_links": {
Line 30 ⟶ 34:
"_links": {
"self": {
"href": "http://
}
},
"id": "shahadat",
"name": "Shahadat Hossain Khan",
"homepage": "http://author-example.com"
}
},
Line 40 ⟶ 45:
"name": "HAL Cookbook"
}
</syntaxhighlight>
{▼
<syntaxhighlight lang="json">
"_links": {▼
"href": "<nowiki>http://example.com/api/book/hal-cookbook</nowiki>"▼
"self":
},▼
"href": "<nowiki>http://example.com/api/book/hal-case-study</nowiki>"▼
"next":
"href": "<nowiki>http://example.com/api/book/json-and-beyond</nowiki>"▼
"prev":
},
"href": "<nowiki>http://example.com/api/book/catalog</nowiki>"▼
"first":
},
"href": "<nowiki>http://example.com/api/book/upcoming-books</nowiki>"▼
"last":
▲ },
}
}, "_embedded": { "homepage": "http://author-example.com"
▲ }
}
},
"id": "hal-cookbook", </syntaxhighlight>
==See also==
* [[HATEOAS]]
* [[CURIE]], (or Compact [[URI]])
== References ==
Line 81 ⟶ 91:
==External links==
* [https://tools.ietf.org/html/draft-kelly-json-hal-
[[Category:JSON]]
Line 89 ⟶ 99:
[[Category:XML-based standards]]
[[Category:World Wide Web Consortium standards]]
|