This repository was archived by the owner on Mar 14, 2021. It is now read-only.
File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
- # openapi-processor-spring sample project
1
+ # openapi-processor-spring (mvc) sample project
2
2
3
- This is a simple Spring Boot project that is using
3
+ This is a simple Spring Boot (gradle) project that is using
4
4
* [ openapi-processor-spring] [ oap-spring ] to
5
- generate java interfaces for the api defined in an openapi.yaml file and
6
- * the [ openapi-processor-json] [ oap-json ] to convert the openapi yaml to json format.
5
+ generate java interfaces for the api defined in an openapi.yaml file
6
+ * the [ openapi-processor-json] [ oap-json ] to convert the openapi yaml to json format
7
+ * and the [ openapi-processor-gradle plugin] [ oap-gradle ] to run both processors.
7
8
9
+ The purpose of the sample is to show the setup of the gradle plugin and the processors.
8
10
9
- The sample is based on gradle and uses the [ openapi-processor-gradle plugin] [ oap-gradle ] .
11
+ ## Endpoints
12
+
13
+ the sample has a few simple endpoints described with OpenAPI in ` src/api ` .
14
+
15
+ ### ping
16
+
17
+ curl http://localhost:8080/ping
18
+
19
+ ### echo
20
+
21
+ curl http://localhost:8080/echo?source=foo
10
22
11
23
[ oap-spring ] : https://hauner.github.io/openapi-processor-spring/
12
24
[ oap-json ] : https://hauner.github.io/openapi-processor-json/
You can’t perform that action at this time.
0 commit comments