1. Overview
Petstore API Description
1.2. Contact information
Contact : TestName
Contact Email : test@test.de
1.3. License information
License : Apache 2.0
License URL : http://www.apache.org/licenses/LICENSE-2.0.html
4. Resources
4.1. Pets
Operations about pets
4.1.1. Add a new pet to the store
POST /pets
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Body | pet | Pet object that needs to be added to the store | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | OK | string | 
| 201 | Created | No Content | 
| 401 | Unauthorized | No Content | 
| 403 | Forbidden | No Content | 
| 404 | Not Found | No Content | 
| 405 | Invalid input | No Content | 
4.1.2. Update an existing pet
PUT /pets
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Body | pet | Pet object that needs to be added to the store | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | OK | string | 
| 201 | Created | No Content | 
| 400 | Invalid ID supplied | No Content | 
| 401 | Unauthorized | No Content | 
| 403 | Forbidden | No Content | 
| 404 | Pet not found | No Content | 
| 405 | Validation exception | No Content | 
4.1.3. Finds Pets by status
GET /pets/findByStatus
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Query | status | Status values that need to be considered for filter | enum (available, pending, sold) | 
 | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | OK | < Pet > array | 
| 400 | Invalid status value | No Content | 
| 401 | Unauthorized | No Content | 
| 403 | Forbidden | No Content | 
| 404 | Not Found | No Content | 
4.1.4. Finds Pets by tags
GET /pets/findByTags
Description
Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | OK | < Pet > array | 
| 400 | Invalid tag value | No Content | 
| 401 | Unauthorized | No Content | 
| 403 | Forbidden | No Content | 
| 404 | Not Found | No Content | 
4.1.5. Find pet by ID
GET /pets/{petId}
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Path | petId | ID of pet that needs to be fetched | string | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | OK | |
| 400 | Invalid ID supplied | No Content | 
| 401 | Unauthorized | No Content | 
| 403 | Forbidden | No Content | 
| 404 | Pet not found | No Content | 
4.2. Stores
Operations about store
4.2.1. Place an order for a pet
POST /stores/order
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Body | order | order placed for purchasing the pet | 
4.2.2. Find purchase order by ID
GET /stores/order/{orderId}
Description
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Path | orderId | ID of pet that needs to be fetched | string | 
4.2.3. Delete purchase order by ID
DELETE /stores/order/{orderId}
Description
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Path | orderId | ID of the order that needs to be deleted | string | 
4.3. Users
Operations about user
4.3.1. Create user
POST /users
4.3.2. Creates list of users with given input array
POST /users/createWithArray
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Body | users | List of user object | < User > array | 
4.3.3. Creates list of users with given input array
POST /users/createWithList
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Body | users | List of user object | < User > array | 
4.3.4. Logs user into the system
GET /users/login
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Query | password | The password for login in clear text | string | |
| Query | username | The user name for login | string | 
4.3.5. Logs out current logged in user session
GET /users/logout
4.3.6. Get user by user name
GET /users/{username}
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Path | username | The name that needs to be fetched. Use user1 for testing. | string | 
4.3.7. Updated user
PUT /users/{username}
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Path | username | name that need to be deleted | string | |
| Body | user | Updated user object | 
4.3.8. Delete user
DELETE /users/{username}
Parameters
| Type | Name | Description | Schema | Default | 
|---|---|---|---|---|
| Path | username | The name that needs to be deleted | string | 
5. Security
5.1. petstore_auth
Type : oauth2
Flow : implicit
Token URL : http://petstore.swagger.io/api/oauth/dialog
| Name | Description | 
|---|---|
| write_pets | modify pets in your account | 
| read_pets | read your pets | 
6. Definitions
6.1. Category
| Name | Description | Schema | 
|---|---|---|
| id | integer(int64) | |
| name | Length :  | string | 
6.2. Order
| Name | Description | Schema | 
|---|---|---|
| complete | boolean | |
| id | integer(int64) | |
| petId | integer(int64) | |
| quantity | Minimum value :  | integer(int32) | 
| shipDate | string(date-time) | |
| status | Order Status | enum (placed, approved, delivered) | 
6.3. Pet
| Name | Description | Schema | 
|---|---|---|
| category | ||
| id | integer(int64) | |
| name | Length :  | string | 
| photoUrls | < string > array | |
| status | pet status in the store | enum (available, pending, sold) | 
| tags | < Tag > array | 
6.5. User
| Name | Description | Schema | 
|---|---|---|
| email | string | |
| firstName | Length :  | string | 
| id | integer(int64) | |
| lastName | Length :  | string | 
| password | string | |
| phone | string | |
| userStatus | User Status | integer(int32) | 
| username | Length :  | string |