hal 0.0.1 copy "hal: ^0.0.1" to clipboard
hal: ^0.0.1 copied to clipboard

A Dart library to handle Hypertext Application Language (HAL) resources.

A Dart library to handle Hypertext Application Language (HAL) resources.

Features #

  • Easy handling of HAL Resources

Getting started #

Usage #


final Map<String, dynamic> jsonExample = {
  "_links": {
    "self": {"href": "/event/1", "title": "Evento"},
    "describedby": {"href": "/schemas/event"},
    "collection": {"href": "/event", "title": "Todos os Eventos"},
    "external": {
      "href":
          "https://delage.com.br/blog/calendario-eventos-de-logistica-2021/",
      "title": "Mais detalhes",
      "type": "text/html"
    },
    "plan": {"href": "/association/1/plan", "title": "Associe-se já!"}
  },
  "_embedded": {
    "plan": [
      {"title": "Premium", "id": 1, "preco": 37.50}
    ]
  },
  "id": 1,
  "title": "Masterclass Logística Internacional",
  "description": "Imperdível!",
  "url_for_details":
      "https://delage.com.br/blog/calendario-eventos-de-logistica-2021/"
};

final resource =
          HypertextApplicationLanguageResource.fromMap(jsonExample);
          

Additional information #

Hypertext Application Language (HAL) specification is described in detail at https://datatracker.ietf.org/doc/html/draft-kelly-json-hal

0
likes
100
pub points
0%
popularity

Publisher

verified publisherlapada.ifce.edu.br

A Dart library to handle Hypertext Application Language (HAL) resources.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on hal