https://github.com/teedjay/quarkus-openapi
Testing some more "complex" OpenAPI features with Quarkus
https://github.com/teedjay/quarkus-openapi
Last synced: 4 months ago
JSON representation
Testing some more "complex" OpenAPI features with Quarkus
- Host: GitHub
- URL: https://github.com/teedjay/quarkus-openapi
- Owner: teedjay
- Created: 2020-11-02T20:47:44.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-03T15:40:55.000Z (over 5 years ago)
- Last Synced: 2025-03-03T04:41:48.820Z (over 1 year ago)
- Language: HTML
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# quarkus-openapi
Testing some dynamic processing of OpenAPI to reduce the number of annotations needed. Will be injecting url's from `application.properties` into the run-time generated `openapi`, to easy use swagger-io authorization when running dev/test/prod environments.
- [x] Generation of OpenAPI definitions for /hello
- [x] Include static `main/resources/META-INF/openapi.yaml` containing /byebye definition
- [x] Security is also included in static `main/resources/META-INF/openapi.yaml`
- [x] Defines security schems for basic auth, api key, oauth2 and oidc
- [x] OAS filter to change oauth2 authorizationUrl based on run-time properties (or ENV)
- [x] Setting documentation using `mp.openapi.extensions.smallrye` properties
Access the openapi file using `curl` below or test the openapi using the [swagger-ui](http://localhost:8080/swagger-ui/).
```
curl http://localhost:8080/openapi
```
## Running the application in dev mode (Java 11+)
You can run your application in dev mode that enables live coding using:
```
./mvnw quarkus:dev
```