forked from apache/camel-k
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(trait/openapi): support configmap configuration
Closes apache#2772
- Loading branch information
Showing
5 changed files
with
81 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
# Open API Camel K examples | ||
|
||
Find useful examples about how to expose an Open API specification in a Camel K integration. | ||
Find useful examples about how to expose an Open API specification in a Camel K integration. | ||
|
||
## Greetings example | ||
|
||
Deploy the examples running | ||
|
||
``` | ||
kamel run --dev --name greetings --open-api greetings-api.json greetings.groovy | ||
``` | ||
|
||
Then you can test by calling the hello endpoint, ie: | ||
|
||
``` | ||
$ curl -i http://192.168.49.2:31373/camel/greetings/hello | ||
HTTP/1.1 200 OK | ||
Accept: */* | ||
name: hello | ||
User-Agent: curl/7.68.0 | ||
transfer-encoding: chunked | ||
Hello from hello | ||
``` |
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
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
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
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