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.wordnik.com/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 Reverb's APIs, please visit http://helloreverb.com. There is an online version similar to this server at http://petstore.swagger.wordnik.com
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
+9-14Lines changed: 9 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
3
3
## Overview
4
4
This is a java project to build a stand-alone server which implements the Swagger spec. You can find out
5
-
more about both the spec and the framework at http://swagger.wordnik.com. For more information
6
-
about Wordnik's APIs, please visit http://developer.wordnik.com. There is an online version of this
7
-
server at http://petstore.swagger.wordnik.com/api/api-docs
5
+
more about both the spec and the framework at http://swagger.io. For more information
6
+
about Reverb's APIs, please visit http://helloreverb.com. There is an online version of this
7
+
server at http://petstore.swagger.wordnik.com
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
11
11
### To build from source
12
-
Please follow instructions to build the top-level [swagger-core project](https://github.com/wordnik/swagger-core)
12
+
Please follow instructions to build the top-level [swagger-core project](https://github.com/swagger-api/swagger-core)
13
13
14
14
### To run (with Maven)
15
15
To run the server, run this task:
@@ -20,25 +20,20 @@ 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 to view the Swagger UI.
24
24
This tells you that the server is up and ready to demonstrate Swagger.
25
25
26
26
### Using the UI
27
-
There is an HTML5-based API tool available in a separate project. This lets you inspect the API using an
28
-
intuitive UI. You can pull this code from here: https://github.com/wordnik/swagger-ui
27
+
There is an HTML5-based API tool available in a separate project. This lets you inspect the API using an intuitive UI. You can pull this code from here: https://github.com/swagger-api/swagger-ui
29
28
30
29
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"
32
-
button and you should see the resources available on the server.
30
+
URL of your server in the top-centered input box (default is http://localhost:8002/api/swagger.json). Click the "Explore" button and you should see the resources available on the server.
33
31
34
32
### Applying an API key
35
-
The sample app has an implementation of the Swagger ApiAuthorizationFilter. This restricts access to resources
36
-
based on api-key. There are two keys defined in the sample app:
33
+
The sample app has an implementation of the Swagger ApiAuthorizationFilter. This restricts access to resources based on api-key. There are two keys defined in the sample app:
37
34
38
35
<li>- default-key</li>
39
36
40
37
<li>- special-key</li>
41
38
42
-
When no key is applied, the "default-key" is applied to all operations. If the "special-key" is entered, a
43
-
number of other resources are shown in the UI, including sample CRUD operations. Note this behavior is similar
44
-
to that on http://developer.wordnik.com/docs but the behavior is entirely up to the implementor.
39
+
When no key is applied, the "default-key" is applied to all operations. If the "special-key" is entered, a number of other resources are shown in the UI, including sample CRUD operations.
Once started, you can navigate to http://localhost:8002/api/api-docs to view the Swagger Resource Listing.
21
+
Once started, you can navigate to http://localhost:8002 to view the Swagger UI.
22
22
This tells you that the server is up and ready to demonstrate Swagger.
23
23
24
24
### Using the UI
25
25
There is an HTML5-based API tool available in a separate project. This lets you inspect the API using an
26
-
intuitive UI. You can pull this code from here: https://github.com/wordnik/swagger-ui
26
+
intuitive UI. You can pull this code from here: https://github.com/swagger-api/swagger-ui
27
27
28
28
You can then open the dist/index.html file in any HTML5-enabled browser. Upen opening, enter the
29
-
URL of your server in the top-centered input box (default is http://localhost:8002/api/api-docs). Click the "Explore"
29
+
URL of your server in the top-centered input box (default is http://localhost:8002/api/swagger.json). Click the "Explore"
30
30
button and you should see the resources available on the server.
31
31
32
32
### Applying an API key
@@ -37,6 +37,4 @@ based on api-key. There are two keys defined in the sample app:
37
37
38
38
<li>- special-key</li>
39
39
40
-
When no key is applied, the "default-key" is applied to all operations. If the "special-key" is entered, a
41
-
number of other resources are shown in the UI, including sample CRUD operations. Note this behavior is similar
42
-
to that on http://developer.wordnik.com/docs but the behavior is entirely up to the implementor.
40
+
When no key is applied, the "default-key" is applied to all operations. If the "special-key" is entered, a number of other resources are shown in the UI, including sample CRUD operations.
Once started, you can navigate to http://localhost:8002/api/api-docs to view the Swagger Resource Listing.
21
+
Once started, you can navigate to http://localhost:8002 to view the Swagger UI.
22
22
This tells you that the server is up and ready to demonstrate Swagger.
23
23
24
24
### Using the UI
25
-
There is an HTML5-based API tool available in a separate project. This lets you inspect the API using an
26
-
intuitive UI. You can pull this code from here: https://github.com/wordnik/swagger-ui
25
+
There is an HTML5-based API tool available in a separate project. This lets you inspect the API using an intuitive UI. You can pull this code from here: https://github.com/swagger-api/swagger-ui
27
26
28
27
You can then open the dist/index.html file in any HTML5-enabled browser. Upen opening, enter the
29
-
URL of your server in the top-centered input box (default is http://localhost:8002/api/api-docs). Click the "Explore"
30
-
button and you should see the resources available on the server.
28
+
URL of your server in the top-centered input box (default is http://localhost:8002/api/swagger.json). Click the "Explore" button and you should see the resources available on the server.
31
29
32
30
### Applying an API key
33
-
The sample app has an implementation of the Swagger ApiAuthorizationFilter. This restricts access to resources
34
-
based on api-key. There are two keys defined in the sample app:
31
+
The sample app has an implementation of the Swagger ApiAuthorizationFilter. This restricts access to resources based on api-key. There are two keys defined in the sample app:
35
32
36
33
<li>- default-key</li>
37
34
38
35
<li>- special-key</li>
39
36
40
-
When no key is applied, the "default-key" is applied to all operations. If the "special-key" is entered, a
41
-
number of other resources are shown in the UI, including sample CRUD operations. Note this behavior is similar
42
-
to that on http://developer.wordnik.com/docs but the behavior is entirely up to the implementor.
37
+
When no key is applied, the "default-key" is applied to all operations. If the "special-key" is entered, a number of other resources are shown in the UI, including sample CRUD operations.
0 commit comments