Skip to main content

angel3_openapi 10.0.0 copy "angel3_openapi: ^10.0.0" to clipboard
angel3_openapi: ^10.0.0 copied to clipboard

OpenAPI 3.1 documents of Angel3 applications, built from their routes and services, with a Swagger UI page.

Change Log #

10.0.0 #

New in 10.0.0 #

  • Security: An operation whose route has a handler tagged with a SecurityRequirement of angel3_framework, as requireAuthentication and forceBasicAuth of angel3_auth 10.1.0 are, even of chain or of a chained router, has its security, of one scheme of each requirement, and the response of each to a request that is not authenticated; its schemes are the components.securitySchemes. The components of extra join those of schemas and of the handlers, of which securitySchemes are merged by name
  • Documents: OpenApi builds an OpenAPI 3.1 document of an app: an operation of each route of an HTTP method, of groups and mounted routers too, with its path parameters (integer of int:, number of double: and num:, a pattern of a regular expression, and both paths of an optional one), and its name as its operationId. Routes of a wildcard, or of any method, are left out
  • Services: A service mounted with app.use, of the app or of an app mounted or chained in it (under the path of the mount, as /api/todos, but for a mount of a parameter), documents its index, create, read, modify, update and remove, with the 201 that create responds with, a 400 of each, the query parameters of the index of a DocumentedService of angel3_framework, as a MapService or an OrmService is, and the errors it tells of, as a 409 of an OrmService, and an {id} of the type of its ids (integer of a Service<int?, ...>, number of a double or num, else string), of the schema of the name of its data type, as Todo of an OrmService<int?, Todo, TodoQuery>, or of another that describeService gives, with a tag
  • Descriptions: describe adds a summary, tags, query parameters, request and response schemas, and more of the Operation Object of extra, of a path as the route writes it or as OpenAPI does. schemas are the document's components, which OpenApi.ref refers to
  • Schemas: OpenApi.schemasOf collects the JSON Schemas that angel3_serialize_generator 10.1.0 generates of @serializable models, with those of the models they hold
  • Controllers: A method of a Controller is described by an @OpenApiOperation annotation, read through the app's reflector, MirrorsReflector or the reflection data of angel3_container_generator
  • Serving: configureServer serves the document at /openapi.json and a Swagger UI page at /docs, built when asked for, so routes added later are documented, and once in production
0
likes
160
points
72
downloads

Documentation

API reference

Publisher

verified publisherdukefirehawk.com

Weekly Downloads

OpenAPI 3.1 documents of Angel3 applications, built from their routes and services, with a Swagger UI page.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#openapi #swagger #documentation

License

BSD-3-Clause (license)

Dependencies

angel3_container, angel3_framework, angel3_route, http_parser

More

Packages that depend on angel3_openapi