„Hypertext Application Language“ – Versionsunterschied
Erscheinungsbild
[gesichtete Version] | [gesichtete Version] |
Inhalt gelöscht Inhalt hinzugefügt
korr. Markierungen: Mobile Bearbeitung Mobile Web-Bearbeitung |
|||
Zeile 4: | Zeile 4: | ||
== Beispiele == |
== Beispiele == |
||
Ressource |
|||
Resource |
|||
<syntaxhighlight lang="json"> |
<syntaxhighlight lang="json"> |
||
{ |
{ |
||
Zeile 16: | Zeile 16: | ||
} |
} |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
Eingebettete |
Eingebettete Ressource |
||
<syntaxhighlight lang="json"> |
<syntaxhighlight lang="json"> |
||
{ |
{ |
Version vom 17. Mai 2023, 08:50 Uhr
Hypertext Application Language (HAL) war ein Request for Comments für Hypermedia wie JavaScript Object Notation und Extensible Markup Language.[1][2] Dieser Standard wurde im Juni 2012 vorgeschlagen. Die dazugehörigen Typen von Multipurpose Internet Mail Extensions waren application/hal+xml und application/hal+json.
Die letzte Version der Hypertext Application Language ist am 12. November 2016 verfallen.
Beispiele
Ressource
{
"_links": {
"self": {
"href": "http://example.com/api/book/hal-cookbook"
}
},
"id": "hal-cookbook",
"name": "HAL Cookbook"
}
Eingebettete Ressource
{
"_links": {
"self": {
"href": "http://example.com/api/book/hal-cookbook"
}
},
"_embedded": {
"author": {
"_links": {
"self": {
"href": "http://example.com/api/author/shahadat"
}
},
"id": "shahadat",
"name": "Shahadat Hossain Khan",
"homepage": "http://author-example.com"
}
},
"id": "hal-cookbook",
"name": "HAL Cookbook"
}
Liste
{
"_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://example.com/api/author/shahadat"
}
},
"id": "shahadat",
"name": "Shahadat Hossain Khan",
"homepage": "http://author-example.com"
}
},
"id": "hal-cookbook",
"name": "HAL Cookbook"
}
Siehe auch
Weblinks
- draft-kelly-json-hal-08 In: datatracker.ietf.org
Einzelnachweise
- ↑ Apigility In: apigility.org
- ↑ Pragmatische Küchentricks für RESTful HAL APIs | heise online In: heise.de