Automatic documentation with Swagger or Swagger like solutions #3744
gabrieldocs
started this conversation in
Ideas
Replies: 3 comments 8 replies
-
There is already a Swagger implementation for AdonisJS: https://github.com/reg2005/adonis5-swagger |
Beta Was this translation helpful? Give feedback.
3 replies
-
The main question is how good the auto generated API spec is? Here is an example hand-written API spec and I have not able to find a tool that can auto generate this by just looking at the code |
Beta Was this translation helpful? Give feedback.
5 replies
-
There are two approaches, depending on what is source of truth
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
About
In the last few months I've been working alongside two team that make use of Adonis 5 to develop some REST API's in addition to our ecosystem (mostly built around NodeJS and a few other API's built on top of PHP) and all other API's provide some sort ou integration with Swagger and follows the OpenAPI specification, but I've failed to find any similar solution.
I was wondering if you could provide some sort of orientation about this topic or, if there's something under development by the core team of Adonis, could you point any alpha/beta/experimental channels in what those resources are available?
References
The NestJS framework provides a recipe to include the Swagger via the @nestjs/swagger, as described in their documentation:
OpenAPI (Swagger)
The FastAPI framework comes with integration to Redoc and Swagger like described in their documentation: Extending OpenAPI
@thetutlage
Beta Was this translation helpful? Give feedback.
All reactions