Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit faef9ea

Browse files
committed
updates swagger path
1 parent 7e51066 commit faef9ea

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

java/java-dropwizard/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ java -jar target/swagger-java-dropwizard-sample-app-2.0.0.jar server conf/swagge
77
88
```
99

10-
You can then access swagger at http://localhost:8080/openApi.json or http://localhost:8080/openApi.yaml
10+
You can then access swagger at http://localhost:8080/openapi.json or http://localhost:8080/openapi.yaml

java/java-jersey2/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mvn package -Dlog4j.configuration=file:./conf/log4j.properties jetty:run
1414
This will start Jetty embedded on port 8002.
1515

1616
### Testing the server
17-
Once started, you can navigate to http://localhost:8002/api/openApi.json to view the Swagger Resource Listing.
17+
Once started, you can navigate to http://localhost:8002/api/openapi.json to view the Swagger Resource Listing.
1818
This tells you that the server is up and ready to demonstrate Swagger.
1919

2020
### Using the UI

java/java-jersey2/src/main/webapp/WEB-INF/web.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<init-param>
1414
<param-name>jersey.config.server.provider.packages</param-name>
1515
<!-- adding 'io.swagger.jaxrs2.integration.resources' is sufficent on it own to register the following paths:
16-
/OpenApi.json : OpenApi spec in json
17-
/OpenApi.yaml : OpenApi spec in yaml
18-
/openApi (Accept: : "application/json" : OpenApi spec in json
19-
/openApi (Accept: : "application/yaml" : OpenApi spec in yaml
16+
/openapi.json : OpenApi spec in json
17+
/openapi.yaml : OpenApi spec in yaml
18+
/openapi (Accept: : "application/json" : OpenApi spec in json
19+
/openapi (Accept: : "application/yaml" : OpenApi spec in yaml
2020
-->
2121
<param-value>
2222
com.fasterxml.jackson.jaxrs.json,io.swagger.jaxrs2.integration.resources,io.swagger.sample.resource

0 commit comments

Comments
 (0)