amoro
amoro copied to clipboard
[AMORO-3256] Amoro Open Api with Swagger in Ams
Why are the changes needed?
Close #3256.
Brief change log
This PR introduces Swagger and OpenAPI Generator. To avoid intrusive development, this design does not use a large number of annotations on the controller. Instead, it predefines the openapi.yaml. The interface specifications defined in openapi.yaml are used to generate the Swagger page, API docs, and an SDK using the Apache HttpClient framework.
In the Maven build, you can use the generate-sdk profile to specify whether to generate the SDK.
How was this patch tested?
- [ ☑️ ] Add screenshots for manual tests if appropriate
Swagger Page:
Auth Setting:
Generated API docs & SDK demo:
- [ ☑️ ] Run test locally before making a pull request