Skip to content

Generate swagger files from code #25

Open
@upkarlidder

Description

@upkarlidder

The current code is autogenerated from the swagger file. The team would like to switch this around so the swagger/OpenAPI spec is generated from the code. This is easier to manage for the team moving forward.

This guide examples how to generate openAPI spec from Java code in open liberty.

Next steps

  • create Java models and responses from the existing swagger file.
  • use the guide to add code to generate the swagger file from the Java code created in the step above.
  • compare the old swagger file with the new swagger file to ensure nothing was changed.
  • deploy the new project to the cloud.

FYI @joannhh @RickPoleshuck @sforsyth089

@yochanah this might affect the auth work you are doing. Have you already started that work? Do you want to wait till this is finished?

Metadata

Metadata

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions