Testing Swagger Importer to AEM
POST /pets
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | body optional |
Pet object that needs to be added to the store | Pet |
| HTTP Code | Description | Schema |
|---|---|---|
| 405 | Invalid input | No Content |
application/jsonapplication/xml
application/jsonapplication/xml
- pet
| Type | Name | Scopes |
|---|---|---|
| oauth2 | petstore_auth | write_pets,read_pets |
PUT /pets
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | body optional |
Pet object that needs to be added to the store | Pet |
| HTTP Code | Description | Schema |
|---|---|---|
| 400 | Invalid ID supplied | No Content |
| 404 | Pet not found | No Content |
| 405 | Validation exception | No Content |
application/jsonapplication/xml
application/jsonapplication/xml
- pet
| Type | Name | Scopes |
|---|---|---|
| oauth2 | petstore_auth | write_pets,read_pets |
GET /pets/findByStatus
Multiple status values can be provided with comma seperated strings
| Type | Name | Description | Schema |
|---|---|---|---|
| Query | status optional |
Status values that need to be considered for filter | < string > array(multi) |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | successful operation | < Pet > array |
| 400 | Invalid status value | No Content |
application/jsonapplication/xml
- pet
| Type | Name | Scopes |
|---|---|---|
| oauth2 | petstore_auth | write_pets,read_pets |
GET /pets/findByTags
Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
| Type | Name | Description | Schema |
|---|---|---|---|
| Query | tags optional |
Tags to filter by | < string > array(multi) |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | successful operation | < Pet > array |
| 400 | Invalid tag value | No Content |
application/jsonapplication/xml
- pet
| Type | Name | Scopes |
|---|---|---|
| oauth2 | petstore_auth | write_pets,read_pets |
POST /pets/{petId}
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | petId required |
ID of pet that needs to be updated | string |
| FormData | name required |
Updated name of the pet | string |
| FormData | status required |
Updated status of the pet | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 405 | Invalid input | No Content |
application/x-www-form-urlencoded
application/jsonapplication/xml
- pet
| Type | Name | Scopes |
|---|---|---|
| oauth2 | petstore_auth | write_pets,read_pets |
GET /pets/{petId}
Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | petId required |
ID of pet that needs to be fetched | integer (int64) |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | successful operation | Pet |
| 400 | Invalid ID supplied | No Content |
| 404 | Pet not found | No Content |
application/jsonapplication/xml
- pet
| Type | Name | Scopes |
|---|---|---|
| apiKey | api_key | |
| oauth2 | petstore_auth | write_pets,read_pets |
DELETE /pets/{petId}
| Type | Name | Description | Schema |
|---|---|---|---|
| Header | api_key required |
string | |
| Path | petId required |
Pet id to delete | integer (int64) |
| HTTP Code | Description | Schema |
|---|---|---|
| 400 | Invalid pet value | No Content |
application/jsonapplication/xml
- pet
| Type | Name | Scopes |
|---|---|---|
| oauth2 | petstore_auth | write_pets,read_pets |
POST /stores/order
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | body optional |
order placed for purchasing the pet | Order |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | successful operation | Order |
| 400 | Invalid Order | No Content |
application/jsonapplication/xml
- store
GET /stores/order/{orderId}
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | orderId required |
ID of pet that needs to be fetched | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | successful operation | Order |
| 400 | Invalid ID supplied | No Content |
| 404 | Order not found | No Content |
application/jsonapplication/xml
- store
DELETE /stores/order/{orderId}
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | orderId required |
ID of the order that needs to be deleted | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 400 | Invalid ID supplied | No Content |
| 404 | Order not found | No Content |
application/jsonapplication/xml
- store
POST /users
This can only be done by the logged in user.
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | body optional |
Created user object | User |
| HTTP Code | Description | Schema |
|---|---|---|
| default | successful operation | No Content |
application/jsonapplication/xml
- user
POST /users/createWithArray
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | body optional |
List of user object | < User > array |
| HTTP Code | Description | Schema |
|---|---|---|
| default | successful operation | No Content |
application/jsonapplication/xml
- user
POST /users/createWithList
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | body optional |
List of user object | < User > array |
| HTTP Code | Description | Schema |
|---|---|---|
| default | successful operation | No Content |
application/jsonapplication/xml
- user
GET /users/login
| Type | Name | Description | Schema |
|---|---|---|---|
| Query | password optional |
The password for login in clear text | string |
| Query | username optional |
The user name for login | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | successful operation | string |
| 400 | Invalid username/password supplied | No Content |
application/jsonapplication/xml
- user
GET /users/logout
| HTTP Code | Description | Schema |
|---|---|---|
| default | successful operation | No Content |
application/jsonapplication/xml
- user
GET /users/{username}
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | username required |
The name that needs to be fetched. Use user1 for testing. | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | successful operation | User |
| 400 | Invalid username supplied | No Content |
| 404 | User not found | No Content |
application/jsonapplication/xml
- user
PUT /users/{username}
This can only be done by the logged in user.
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | username required |
name that need to be deleted | string |
| Body | body optional |
Updated user object | User |
| HTTP Code | Description | Schema |
|---|---|---|
| 400 | Invalid user supplied | No Content |
| 404 | User not found | No Content |
application/jsonapplication/xml
- user
DELETE /users/{username}
This can only be done by the logged in user.
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | username required |
The name that needs to be deleted | string |
| HTTP Code | Description | Schema |
|---|---|---|
| 400 | Invalid username supplied | No Content |
| 404 | User not found | No Content |
application/jsonapplication/xml
- user