Any plan to support OpenAPI
linux-china opened this issue · comments
Now Mandarinets has annotations for HTTP routing, and any plan to add OpenAPI related annotations to generate OpenAPI json? It will be friendly for OpenAPI related tools, such as Swagger-UI, OpenAPI client tools etc. Now I can not find Deno framework to support OpenAPI.
- SpringFox: http://springfox.github.io/springfox/docs/current/
- SpringDoc: https://springdoc.org/
I'll have to look into it, seems like a nice feature to have. I'll be investigating how we could or could not make this possible.
I created a demo to show how to use OpenAPI annotations in Mandarine, and the url is https://github.com/linux-china/mandarine-demo
@linux-china what would be the benefit of using such annotations ? Just general metadata for the application and the developer? Documentation ? Which I guess could work for generating specs or administrative/technical documents with a technical summary of what the API of your site looks like (?)
yes, These annotations help to generate OpenAPI metadata json for the application, otherwise you should write OpenAPI json by hand. The OpenAPI metadata json is useful for GUI display as document and language SDK generation to call HTTP REST API.
I like it. Let's land it in 2.4.0