hateoas_models 0.2.0

  • README.md
  • Installing
  • Versions
  • 34

REST Handler for Dart Shelf

Build Status Pub Version


Provides Shelf models to help with HATEOAS

This is totally experimental and usage is currently discouraged ;-)

This package is being developed in conjunction with HATEOAS support in shelf_rest. When that is complete then this package is likely to be fleshed out, documented and ready for use


  • Strong mode changes. Changes to some generics


  • Update dependency versions on uri package


  • Many changes


  • removed unused dependency


  • experimental HATEOAS support

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  hateoas_models: "^0.2.0"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:hateoas_models/hateoas_models.dart';
Version Uploaded Documentation Archive
0.2.0 Apr 10, 2016 Go to the documentation of hateoas_models 0.2.0 Download hateoas_models 0.2.0 archive
0.1.7 Jan 6, 2016 Go to the documentation of hateoas_models 0.1.7 Download hateoas_models 0.1.7 archive
0.1.6 Aug 12, 2015 Go to the documentation of hateoas_models 0.1.6 Download hateoas_models 0.1.6 archive
0.1.5 Jul 14, 2015 Go to the documentation of hateoas_models 0.1.5 Download hateoas_models 0.1.5 archive
0.1.4 Jun 25, 2015 Go to the documentation of hateoas_models 0.1.4 Download hateoas_models 0.1.4 archive
0.1.3 Jun 25, 2015 Go to the documentation of hateoas_models 0.1.3 Download hateoas_models 0.1.3 archive
0.1.2 Jun 25, 2015 Go to the documentation of hateoas_models 0.1.2 Download hateoas_models 0.1.2 archive
0.1.1 Jun 23, 2015 Go to the documentation of hateoas_models 0.1.1 Download hateoas_models 0.1.1 archive
0.1.0 Jun 9, 2015 Go to the documentation of hateoas_models 0.1.0 Download hateoas_models 0.1.0 archive
0.0.1+1 Oct 16, 2014 Go to the documentation of hateoas_models 0.0.1+1 Download hateoas_models 0.0.1+1 archive

All 12 versions...


We analyzed this package on Jul 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
21 / 100
Code health derived from static analysis. [more]
79 / 100
Reflects how tidy and up-to-date the package is. [more]
0 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:hateoas_models/hateoas_models.dart.


  • Package is too old.

    The package was released more than two years ago.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 error 8 hints.

    Strong-mode analysis of lib/hateoas_models.dart failed with the following error:

    line: 134 col: 22
    The argument type '(Map<dynamic, dynamic>) → R' can't be assigned to the parameter type '(dynamic) → dynamic'.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use hateoas_models.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.9.0 <2.0.0
option ^1.1.0 1.2.0
uri >=0.9.3 <0.12.0 0.11.2
Transitive dependencies
concepts 0.2.0
either 0.1.8
matcher 0.12.3
meta 1.1.5
path 1.6.1
quiver 0.29.0+1
stack_trace 1.9.2
utf 0.9.0+4
Dev dependencies
test ^0.12.6+2