json_api 4.0.0-dev.4 copy "json_api: ^4.0.0-dev.4" to clipboard
json_api: ^4.0.0-dev.4 copied to clipboard

outdated

JSON:API Client for Flutter, Web and VM. Supports JSON:API v1.0 (http://jsonapi.org)

JSON:API for Dart/Flutter #

JSON:API is a specification for building APIs in JSON.

This package consists of several libraries:

Document model #

This part assumes that you have a basic understanding of the JSON:API standard. If not, please read the JSON:API spec. The main concept of JSON:API model is the Resource. Resources are passed between the client and the server in the form of a Document. A resource has its type, id, and a map of attributes. Resources refer to other resources with the Identifier objects which contain a type and id of the resource being referred. Relationship between resources may be either toOne (maps to a single identifier) or toMany (maps to a list of identifiers).

Client #

JsonApiClient is an implementation of the JSON:API client supporting all features of the JSON:API standard:

  • fetching resources and collections (both primary and related)
  • creating resources
  • deleting resources
  • updating resource attributes and relationships
  • direct modification of relationships (both to-one and to-many)
  • async processing
34
likes
0
pub points
81%
popularity

Publisher

verified publisherkarapetov.com

JSON:API Client for Flutter, Web and VM. Supports JSON:API v1.0 (http://jsonapi.org)

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on json_api