annotated_shelf library

Helps to create the REST API

This library uses annotation to create a service.

Classes

DELETE
Represents the delete http verb.
File
Represents a File usually created by a multiform request
Form
Represents a Form request usually created by a multiform request
GET
Represents the get http verb.
PATCH
Represents the patch http verb.
Payload
Represents a body of the request.
POST
Represents the post http verb.
PUT
Represents the put http verb.
RestAPI
Represents a root handler
RestResponse
Represents the response of a handler

Functions

mount(dynamic adapter, Cascade router) Future<Cascade>
Mounts the router adapter inside the shelf Cascade router

Exceptions / Errors

BadRequestError
Represents an http Bad Request Error 404
BaseError
ForbiddenError
Represents an http Forbidden Error 403
InternalServerError
Represents Interna server error 500
MethodNotAllowedError
Represents an http Bad Request Error 405
NotAcceptableError
Represents an http Not acceptable Error 406
NotFoundError
Represents an http Not found Error 404
ParameterError
Represents an error when parsing the parameters of an annotation
PathError
Represents an error when parsing the parameters of an annotation
ServiceUnavailableError
Represents an http Service Unavailable Error 503
UnauthorizedError
Represents an http Unauthorized Error 401