A Swift package for encoding to- and decoding from JSON API compliant requests and responses.
See the JSON API Spec here: https://jsonapi.org/format/
- Basic Example
- Compound Example
- Metadata Example
- Custom Errors Example
- PATCH Example
- Resource Storage Example (using JSONAPI-ResourceStorage)
This library works well when used by both the server responsible for serialization and the client responsible for deserialization. Check out the example.
The primary goals of this framework are:
- Allow creation of Swift types that are easy to use in code but also can be encoded to- or decoded from JSON API v1.0 Spec compliant payloads without lots of boilerplate code.
- Leverage