Forum Discussion
Hey anirtek; have you looked into using swagger-core? It's a Java implementation of the OpenAPI Specification. The documentation in the link should help you get started with your new project.
joejoyce this is a great suggestion. Infact I am looking for solution in Jakarta namespace only. I will try to use this. But would this automatically generate the OpenAPI yaml after code annotation? Or I will have to use some tool to get the yaml first? I am trying to generate yaml from code annotations. Can you provide something about this confusion?
- joejoyce4 years agoStaff
anirtek yes indeed; using the swagger-core method, the Swagger/OAS contract is generated from an API based on the meta-data added against the various resources, methods and controllers. This meta-data will generate the contract, client-side code, and other artifacts during runtime. Typically, this meta-data will be in the form of code annotations.
You'll find some more useful documentation on this here.
Hope this helps!
Related Content
- 3 years ago
Recent Discussions
- 4 days ago
- 26 days ago