„Hypertext Application Language“ – Versionsunterschied
Erscheinungsbild
[gesichtete Version] | [gesichtete Version] |
Inhalt gelöscht Inhalt hinzugefügt
Cvk (Diskussion | Beiträge) AZ: Die Seite wurde neu angelegt: '''Hypertext Application Language (HAL)''' ist ein RFC zur Definition von Hypermedia wie beispielsweis… |
Änderungsdatum für letzte HAL-Spezifikation aus: https://datatracker.ietf.org/doc/html/draft-kelly-json-hal bzw. https://datatracker.ietf.org/doc/html/draft-kelly-json-hal-11 |
||
(18 dazwischenliegende Versionen von 9 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
'''Hypertext Application Language (HAL)''' |
'''Hypertext Application Language (HAL)''' war ein [[Request for Comments]] für [[Hypermedia]] wie [[JavaScript Object Notation]] und [[Extensible Markup Language]].<ref>[https://apigility.org/documentation/api-primer/halprimer Apigility] In: apigility.org</ref><ref>[https://www.heise.de/hintergrund/Pragmatische-Kuechentricks-fuer-RESTful-HAL-APIs-4963049.html Pragmatische Küchentricks für RESTful HAL APIs | heise online] In: heise.de</ref> 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 21. April 2024 verfallen. |
|||
== Beispiele == |
== Beispiele == |
||
Ressource |
|||
Resource |
|||
< |
<syntaxhighlight lang="json"> |
||
{ |
{ |
||
"_links": { |
"_links": { |
||
Zeile 13: | Zeile 15: | ||
"name": "HAL Cookbook" |
"name": "HAL Cookbook" |
||
} |
} |
||
</syntaxhighlight> |
|||
</source> |
|||
Eingebettete |
Eingebettete Ressource |
||
< |
<syntaxhighlight lang="json"> |
||
{ |
{ |
||
"_links": { |
"_links": { |
||
Zeile 37: | Zeile 39: | ||
"name": "HAL Cookbook" |
"name": "HAL Cookbook" |
||
} |
} |
||
</syntaxhighlight> |
|||
</source> |
|||
Liste |
Liste |
||
< |
<syntaxhighlight lang="json"> |
||
{ |
{ |
||
"_links": { |
"_links": { |
||
Zeile 73: | Zeile 75: | ||
"name": "HAL Cookbook" |
"name": "HAL Cookbook" |
||
} |
} |
||
</syntaxhighlight> |
|||
</source> |
|||
==Siehe auch== |
== Siehe auch == |
||
* [[HATEOAS]] |
* [[HATEOAS]] |
||
* [[CURIE]] |
* [[CURIE]] |
||
==Weblinks== |
== Weblinks == |
||
* [https:// |
* [https://datatracker.ietf.org/doc/html/draft-kelly-json-hal-11 draft-kelly-json-hal-11] In: datatracker.ietf.org |
||
== Einzelnachweise == |
|||
<references /> |
|||
[[Kategorie:Web-Entwicklung]] |
|||
[[Kategorie:Beschreibungssprache]] |
|||
[[Kategorie:JSON]] |
Aktuelle Version vom 10. Mai 2024, 12:56 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 21. April 2024 verfallen.
Beispiele
[Bearbeiten | Quelltext bearbeiten]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
[Bearbeiten | Quelltext bearbeiten]Weblinks
[Bearbeiten | Quelltext bearbeiten]- draft-kelly-json-hal-11 In: datatracker.ietf.org
Einzelnachweise
[Bearbeiten | Quelltext bearbeiten]- ↑ Apigility In: apigility.org
- ↑ Pragmatische Küchentricks für RESTful HAL APIs | heise online In: heise.de