You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/java-grails2/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Swagger Sample App
2
2
3
3
## Overview
4
-
This is a grails project to build a stand-alone server which implements the Swagger spec. You can find out more about both the spec and the framework at http://swagger.io. For more information about Wordnik's APIs, please visit http://developer.wordnik.com. There is an online version similar to this server at http://petstore.swagger.io/api/api-docs.json
4
+
This is a grails project to build a stand-alone server which implements the Swagger spec. You can find out more about both the spec and the framework at http://swagger.io. For more information about Wordnik's APIs, please visit http://developer.wordnik.com. There is an online version similar to this server at http://petstore.swagger.io/v2/swagger.json
5
5
6
6
### Running the app
7
7
You do not need to install Grails separately to run this project.
Copy file name to clipboardExpand all lines: samples/java-jaxrs-cxf/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
This is a java project to build a stand-alone server which implements the Swagger spec. You can find out
5
5
more about both the spec and the framework at http://swagger.io. For more information
6
6
about Wordnik's APIs, please visit http://developer.wordnik.com. There is an online version of this
7
-
server at http://petstore.swagger.io/api/api-docs
7
+
server at http://petstore.swagger.io/v2/swagger.json
8
8
9
9
This sample creates an `application` context through the `applicationContext.xml`, allowing the `JAXRSServerFactoryBean` to reflect over property packages to discover swagger-enabled resources. This was originally contributed by [chadhahn](https://github.com/chadhahn) and adapted by [rvullriede](https://github.com/rvullriede). Thank you for your contributions!
10
10
@@ -20,15 +20,15 @@ mvn package tomcat6:run
20
20
This will start Tomcat 6 embedded on port 8002.
21
21
22
22
### Testing the server
23
-
Once started, you can navigate to http://localhost:8002/api/api-docs to view the Swagger Resource Listing.
23
+
Once started, you can navigate to http://localhost:8002/api/swagger.json to view the Swagger Resource Listing.
24
24
This tells you that the server is up and ready to demonstrate Swagger.
25
25
26
26
### Using the UI
27
27
There is an HTML5-based API tool available in a separate project. This lets you inspect the API using an
28
28
intuitive UI. You can pull this code from here: https://github.com/wordnik/swagger-ui
29
29
30
30
You can then open the dist/index.html file in any HTML5-enabled browser. Upen opening, enter the
31
-
URL of your server in the top-centered input box (default is http://localhost:8002/api/api-docs). Click the "Explore"
31
+
URL of your server in the top-centered input box (default is http://localhost:8002/api/swagger.json). Click the "Explore"
32
32
button and you should see the resources available on the server.
0 commit comments