dox_annotation
library
Classes
ApiDeprecated
Marks the route as deprecated in the docs.
The Dart @Deprecated and @deprecated work too.
ApiIgnore
Leaves this method (or all methods of this class) out of the docs.
Body
Like Request , but always the request body.
Description
Longer text of the route in the docs.
The default is the rest of the /// doc comment.
DoxController
Marks a class as a controller for the OpenAPI docs.
DoxEnv
Marks a typed env class. dox_builder writes _$<Class> for it.
DoxModel
EnvKey
Reads a getter from this env key, not from the UPPER_SNAKE getter name.
GlobalMiddleware
Middleware that packages add at startup. dox_core puts them in
front of the app's own globalMiddleware.
IAuth
IDoxMiddleware
IDoxRequest
IHttpException
Inject
Puts a class in the Dox container. dox_builder finds it and writes
lib/generated/container.g.dart, so you never register it by hand.
JsonObjectWriter
Writes the JSON of the objects of another class.
JsonRun
A fixed part of JSON, as UTF-8 bytes, ready to write.
JsonWritable
A class that writes its own JSON.
JsonWriter
Writes one JSON object, one piece at a time, with no Map in between.
Query
Like Request , but always the query. Each field is one parameter.
Request
The request class of the route: a @Dto class,
for example @Request(CreateUser). It goes in the body for POST,
PUT and PATCH, and in the query for the other methods.
Use it when the builder can not find it by itself.
Response
One response of the route. Add it more than once for more status codes.
Security
How to log in to the routes that use this middleware class.
Serialize
Makes dox_builder write fast JSON code for a class.
SerializeWriter
The JSON writer that @Serialize() makes for one class.
Summary
Short title of the route in the docs.
The default is the first line of the /// doc comment.
Tags
Tags that group the route in the docs page.
Extensions
IAuthHelpers
on IAuth
A helper on req.auth, which is typed IAuth?.
It is an extension, not a member of IAuth , so a class that
implements IAuth does not have to add it.
For a guest, req.auth is null, so check req.auth == null.