pub fn mount(rocket: Rocket<Build>) -> Rocket<Build>Expand description
Mounts the generated agent-API documentation onto rocket:
- the
#[openapi]-annotated agent routes (so they exist and are documented from one source), - the OpenAPI 3 spec at
GET /api/openapi.json, - a RapiDoc browser page at
GET /api/docs.
The annotated routes are mounted here (not in their modules’ plain route groups) so
rocket_okapi can attach their operation metadata.