Add OpenAPI Swagger 3 spec and API generation 02/132302/1
authorliamfallon <liam.fallon@est.tech>
Thu, 17 Nov 2022 21:58:24 +0000 (13:58 -0800)
committerliamfallon <liam.fallon@est.tech>
Thu, 17 Nov 2022 21:58:36 +0000 (13:58 -0800)
commit09d3bd146edfcb7124eb96cabf99cbaf4857e5c4
tree5bad54f1ec3ef3ff2bd1ab18a5bf064ee88e56b9
parent6aa64b948942b402b496b84b89186bcd276ce04c
Add OpenAPI Swagger 3 spec and API generation

This commit adds the Policy/API OpenAPI (Swagger) document as a source
document under source control.

This OpenAPI document was generated from the existing SpringFox
annotations in the source code, was uploaded to the online Swagger
editor and was converted into OpenAPI 3.0 format. It was then manually
edited to correct the return types and to match the input and putput
types to our Java classes.

The pom.xml is also amended to generate the API interface source doe in
the target/generated-sources directory.

The generated code does NOT replace the existing API code as yet.

Issue-ID: POLICY-4431
Change-Id: Iee1cc6a122deffcd05728e8f34172f8d423ebcef
Signed-off-by: liamfallon <liam.fallon@est.tech>
main/pom.xml
main/src/main/resources/openapi/openapi.yaml [new file with mode: 0644]