# flutter_data_json_api_adapter **Repository Path**: mirrors_KieranLafferty/flutter_data_json_api_adapter ## Basic Information - **Project Name**: flutter_data_json_api_adapter - **Description**: JSON:API adapter for Flutter Data - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-21 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # flutter_data_json_api_adapter [JSON:API](https://jsonapi.org/) adapter for [Flutter Data](https://flutterdata.dev). ## 👩🏾‍💻 Usage Add `flutter_data_json_api_adapter` to your `pubspec.yaml` and then import the adapter into your models. Example: ```dart @JsonSerializable() @DataRepository([JSONAPIAdapter, MyJSONAPIAdapter]) class User with DataModel { @override final int id; final String name; User({this.id, this.name}); } mixin MyJSONAPIAdapter on RemoteAdapter { @override String get baseUrl => "https://my.jsonapi.server/api"; // other customizations } ``` This adapter provides default `application/vnd.api+json` headers. Tests can be run with: `pub run test` ## 📝 License See [LICENSE](https://github.com/flutterdata/flutter_data/blob/master/LICENSE).