server library
JSON:API server on top of dart:io.
Classes
- Controller
- JSON:API controller
- ControllerRouter
- ErrorConverter
-
The error converter maps server exceptions to JSON:API responses.
It is designed to be used with the TryCatchHandler from the
json_api:http
package and provides some meaningful defaults out of the box. -
Response<
D extends OutboundDocument> - JSON:API response
- TryCatchHandler
-
An
Handler
wrapper which calls the wrapped handler and does the following:
Exceptions / Errors
- CollectionNotFound
- A collection is not found on the server.
- MethodNotAllowed
- RelationshipNotFound
- A relationship is not found on the server.
- ResourceNotFound
- A resource is not found on the server.
- UnmatchedTarget