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

Commit 0033ffc

Browse files
authored
Merge pull request #183 from swagger-api/move-petstore-v2
moved petstore to https://github.com/swagger-api/swagger-petstore/tree/v2
2 parents 1da0cd2 + d917880 commit 0033ffc

29 files changed

Lines changed: 2 additions & 2062 deletions

java/swagger-petstore-v2/Dockerfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

java/swagger-petstore-v2/README.md

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,4 @@
1-
# Swagger Sample App
1+
# Swagger Sample Petstore App
22

3-
This is the pet store sample hosted at https://petstore.swagger.io!
3+
This project has been moved to https://github.com/swagger-api/swagger-petstore/tree/v2
44

5-
## Overview
6-
This is a java project to build a stand-alone server which implements the OpenAPI Spec. You can find out
7-
more about both the spec and the framework at http://swagger.io.
8-
9-
### To run in docker
10-
11-
```
12-
mvn package
13-
docker build -t petstore:dev .
14-
docker run -d -e SWAGGER_HOST=http://localhost -e SWAGGER_BASE_PATH=/v2 -p 8080:8080 petstore:dev
15-
```
16-
17-
### Testing the server
18-
Once started, you can navigate to http://localhost:8080/v2/swagger.json to view the Swagger Resource Listing.
19-
This tells you that the server is up and ready to demonstrate Swagger.
20-
21-
### Using the UI
22-
There is an HTML5-based API tool bundled in this sample--you can view it it at [http://localhost:8080](http://localhost:8080). This lets you inspect the API using an interactive UI. You can access the source of this code from [here](https://github.com/swagger-api/swagger-ui)
23-
24-
### Applying an API key
25-
The sample app has an implementation of the Swagger ApiAuthorizationFilter. This restricts access to resources
26-
based on api-key. There are two keys defined in the sample app:
27-
28-
<li>- default-key</li>
29-
30-
<li>- special-key</li>
31-
32-
When no key is applied, the "default-key" is applied to all operations. If the "special-key" is entered, a
33-
number of other resources are shown in the UI, including sample CRUD operations.

java/swagger-petstore-v2/conf/log4j.properties

Lines changed: 0 additions & 18 deletions
This file was deleted.
-5.03 MB
Binary file not shown.

java/swagger-petstore-v2/pom.xml

Lines changed: 0 additions & 183 deletions
This file was deleted.

java/swagger-petstore-v2/run.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

java/swagger-petstore-v2/src/main/java/io/swagger/sample/Bootstrap.java

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)