Zum Inhalt springen

„Hypertext Application Language“ – Versionsunterschied

aus Wikipedia, der freien Enzyklopädie
[gesichtete Version][gesichtete Version]
Inhalt gelöscht Inhalt hinzugefügt
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)''' ist ein RFC zur Definition von Hypermedia wie beispielsweise Links zu externen Ressourcen innerhalb von JSON oder XML-Code. Der Standard wurde ursprünglich im Juni 2012 speziell für die Verwendung mit JSON vorgeschlagen und ist seitdem in zwei Varianten verfügbar: JSON und XML. Die beiden zugehörigen MIME-Typen sind ''application/hal+xml'' und ''application/hal+json''.
'''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
<source lang="json">
<syntaxhighlight lang="json">
{
{
"_links": {
"_links": {
Zeile 13: Zeile 15:
"name": "HAL Cookbook"
"name": "HAL Cookbook"
}
}
</syntaxhighlight>
</source>
Eingebettete Resource
Eingebettete Ressource
<source lang="json">
<syntaxhighlight lang="json">
{
{
"_links": {
"_links": {
Zeile 37: Zeile 39:
"name": "HAL Cookbook"
"name": "HAL Cookbook"
}
}
</syntaxhighlight>
</source>
Liste
Liste
<source lang="json">
<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://tools.ietf.org/html/draft-kelly-json-hal-08 JSON Hypertext Application Language latest draft]
* [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.

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"
}

Einzelnachweise

[Bearbeiten | Quelltext bearbeiten]
  1. Apigility In: apigility.org
  2. Pragmatische Küchentricks für RESTful HAL APIs | heise online In: heise.de