https://github.com/znsio/openapi-roundtrip
https://github.com/znsio/openapi-roundtrip
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/znsio/openapi-roundtrip
- Owner: znsio
- License: mit
- Created: 2025-01-15T10:55:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-22T11:38:46.000Z (about 1 year ago)
- Last Synced: 2025-04-24T01:17:56.683Z (about 1 year ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenAPI CodeGen and DocGen Demo
Clean up
```shell
rm -rf app
rm generated.yaml
```
Generate the server code from the OpenAPI Spec using the following command
```shell
openapi-generator generate -i spec.yaml -g spring -o app
```
Start the server using the following command
```shell
cd app
mvn spring-boot:run
```
Download the OpenAPI Spec from the following URL
```shell
curl http://localhost:8080/v3/api-docs.yaml -o generated.yaml
```