-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add codestart to extension * refactor: delete quarkus-openapi-generator.adoc * Remove codestarts module * Update integration-tests/pom.xml * refactor: change README template
- Loading branch information
Showing
6 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
runtime/src/main/codestarts/quarkus/openapi-generator-codestart/codestart.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: openapi-generator-codestart | ||
ref: openapi-generator | ||
type: code | ||
tags: extension-codestart | ||
metadata: | ||
title: OpenAPI Generator Codestart | ||
description: Start to code with the OpenAPI Generator extension. | ||
related-guide-section: https://docs.quarkiverse.io/quarkus-openapi-generator/dev/index.html |
48 changes: 48 additions & 0 deletions
48
...src/main/codestarts/quarkus/openapi-generator-codestart/java/README.tpl.qute.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{#include readme-header /} | ||
|
||
## Requirements | ||
|
||
If you do not have added the `io.quarkus:quarkus-rest-client-jackson` or `io.quarkus:quarkus-rest-client-reactive-jackson` extension in your project, add it first: | ||
|
||
Remember, you just need to add one of them, depending on your needs. | ||
|
||
### REST Client Jackson: | ||
|
||
Quarkus CLI: | ||
|
||
```bash | ||
quarkus ext add io.quarkus:quarkus-rest-client-jackson | ||
``` | ||
|
||
Maven: | ||
```bash | ||
./mvnw quarkus:add-extension -Dextensions="io.quarkus:quarkus-rest-client-jackson" | ||
``` | ||
|
||
Gradle: | ||
|
||
```bash | ||
./gradlew addExtension --extensions="io.quarkus:quarkus-rest-client-jackson" | ||
``` | ||
|
||
or | ||
|
||
### REST Client Reactive Jackson: | ||
|
||
Quarkus CLI: | ||
|
||
```bash | ||
quarkus ext add io.quarkus:quarkus-rest-client-reactive-jackson | ||
``` | ||
|
||
Maven: | ||
|
||
```bash | ||
./mvnw quarkus:add-extension -Dextensions="io.quarkus:quarkus-rest-client-reactive-jackson" | ||
``` | ||
|
||
Gradle: | ||
|
||
```bash | ||
./gradlew addExtension --extensions="io.quarkus:quarkus-rest-client-reactive-jackson" | ||
``` |
42 changes: 42 additions & 0 deletions
42
...src/main/codestarts/quarkus/openapi-generator-codestart/java/src/main/openapi/openapi.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Generated API | ||
version: "1.0" | ||
paths: | ||
/fruits: | ||
get: | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: { } | ||
post: | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Fruit' | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: { } | ||
delete: | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Fruit' | ||
responses: | ||
200: | ||
description: OK | ||
content: | ||
application/json: { } | ||
components: | ||
schemas: | ||
Fruit: | ||
properties: | ||
description: | ||
type: string | ||
name: | ||
type: string |
6 changes: 6 additions & 0 deletions
6
...in/codestarts/quarkus/openapi-generator-codestart/java/src/main/resources/application.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
quarkus: | ||
openapi-generator: | ||
codegen: | ||
spec: | ||
openapi_yml: | ||
model-name-prefix: QuarkusOpenApiGenerator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters