This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git
The following commit(s) were added to refs/heads/main by this push:
new 3b3141e Add openapi contract first example
3b3141e is described below
commit 3b3141e50dc6a866a8e241ec719f6ecf6306ed1f
Author: Claus Ibsen
AuthorDate: Thu Apr 4 14:46:50 2024 +0200
Add openapi contract first example
---
README.adoc|4 +-
openapi-contract-first/daisy.json |4 +
openapi-contract-first/pom.xml | 185 +++
openapi-contract-first/readme.adoc | 63 +
.../sample/petstore/MyPetStoreApplication.java | 35 +
.../main/java/sample/petstore/PetStoreRoute.java | 60 +
.../src/main/resources/application.properties | 29 +
.../src/main/resources/petstore.json | 1240
pom.xml|1 +
9 files changed, 1620 insertions(+), 1 deletion(-)
diff --git a/README.adoc b/README.adoc
index 3c4b358..380ccb3 100644
--- a/README.adoc
+++ b/README.adoc
@@ -27,7 +27,7 @@ readme's instructions.
=== Examples
// examples: START
-Number of Examples: 55 (0 deprecated)
+Number of Examples: 56 (0 deprecated)
[width="100%",cols="4,2,4",options="header"]
|===
@@ -133,6 +133,8 @@ Number of Examples: 55 (0 deprecated)
| link:reactive-streams/readme.adoc[Reactive Streams] (reactive-streams) |
Reactive | An example that shows how Camel can exchange data using reactive
streams with Spring Boot reactor
+| link:openapi-contract-first/readme.adoc[Openapi Contract First]
(openapi-contract-first) | Rest | Contract First OpenAPI example
+
| link:platform-http/README.adoc[Platform Http] (platform-http) | Rest | An
example showing Camel REST DSL with platform HTTP
| link:rest-cxf/README.adoc[Rest Cxf] (rest-cxf) | Rest | An example showing
Camel REST using CXF with Spring Boot
diff --git a/openapi-contract-first/daisy.json
b/openapi-contract-first/daisy.json
new file mode 100644
index 000..2198d06
--- /dev/null
+++ b/openapi-contract-first/daisy.json
@@ -0,0 +1,4 @@
+{
+ "id": 555,
+ "name": "Daisy the parrot"
+}
\ No newline at end of file
diff --git a/openapi-contract-first/pom.xml b/openapi-contract-first/pom.xml
new file mode 100644
index 000..6d3fc3e
--- /dev/null
+++ b/openapi-contract-first/pom.xml
@@ -0,0 +1,185 @@
+
+
+http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
+
+4.0.0
+
+
+org.apache.camel.springboot.example
+examples
+4.6.0-SNAPSHOT
+
+
+camel-example-spring-boot-openapi-contract-first
+Camel SB Examples :: OpenAPI Contract First
+Contract First OpenAPI example
+
+
+Rest
+UTF-8
+
UTF-8
+
+
+
+
+
+
+org.apache.camel.springboot
+camel-spring-boot-bom
+${camel-version}
+pom
+import
+
+
+
+org.springframework.boot
+spring-boot-dependencies
+${spring-boot-version}
+pom
+import
+
+
+
+
+
+
+
+
+org.springframework.boot
+spring-boot-starter-web
+
+
+org.springframework.boot
+spring-boot-starter-actuator
+
+
+
+
+org.apache.camel.springboot
+camel-spring-boot-starter
+
+
+
+org.apache.camel.springboot
+camel-rest-openapi-starter
+
+
+
+org.apache.camel.springboot
+camel-jackson-starter
+
+
+
+org.apache.camel.springboot
+camel-platform-http-starter
+
+
+
+org.apache.camel.springboot
+camel-console-starter
+
+
+
+org.apache.camel.springboot
+camel-management-starter
+
+
+
+org.apache.camel.springboot
+camel-cli-connector-starter
+
+
+
+
+org.springframework.boot
+spring-boot-starter-test
+test
+
+
+org.apache.camel
+camel-test-spring-junit5
+test
+
+
+
+
+
+
+io.swagger.codegen.v3
+swagger-codegen-maven-plugin
+3.0.52
+
+
+
+generate
+
+