json_api 3.0.0 json_api: ^3.0.0 copied to clipboard
JSON:API Client for Flutter, Web and VM. Supports JSON:API v1.0 (http://jsonapi.org)
JSON:API examples #
Cars Server #
This is a simple JSON:API server which is used in the tests. It provides an API to a collection to car companies and models. You can run it locally to play around.
- In you console run
dart example/cars_server.dart
, this will start the server at port 8080. - Open http://localhost:8080/companies in the browser.
Fetch example #
With the server running, call
dart example/fetch_collection.dart
This will make a fetchCollection()
call and print the response.