Skip to content

lcrabb/swaggertest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swaggertest

Testing Swagger Importer to AEM

Paths

Add a new pet to the store

POST /pets

Parameters

Type Name Description Schema
Body body
optional
Pet object that needs to be added to the store Pet

Responses

HTTP Code Description Schema
405 Invalid input No Content

Consumes

  • application/json
  • application/xml

Produces

  • application/json
  • application/xml

Tags

  • pet

Security

Type Name Scopes
oauth2 petstore_auth write_pets,read_pets

Update an existing pet

PUT /pets

Parameters

Type Name Description Schema
Body body
optional
Pet object that needs to be added to the store Pet

Responses

HTTP Code Description Schema
400 Invalid ID supplied No Content
404 Pet not found No Content
405 Validation exception No Content

Consumes

  • application/json
  • application/xml

Produces

  • application/json
  • application/xml

Tags

  • pet

Security

Type Name Scopes
oauth2 petstore_auth write_pets,read_pets

Finds Pets by status

GET /pets/findByStatus

Description

Multiple status values can be provided with comma seperated strings

Parameters

Type Name Description Schema
Query status
optional
Status values that need to be considered for filter < string > array(multi)

Responses

HTTP Code Description Schema
200 successful operation < Pet > array
400 Invalid status value No Content

Produces

  • application/json
  • application/xml

Tags

  • pet

Security

Type Name Scopes
oauth2 petstore_auth write_pets,read_pets

Finds Pets by tags

GET /pets/findByTags

Description

Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.

Parameters

Type Name Description Schema
Query tags
optional
Tags to filter by < string > array(multi)

Responses

HTTP Code Description Schema
200 successful operation < Pet > array
400 Invalid tag value No Content

Produces

  • application/json
  • application/xml

Tags

  • pet

Security

Type Name Scopes
oauth2 petstore_auth write_pets,read_pets

Updates a pet in the store with form data

POST /pets/{petId}

Parameters

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

Responses

HTTP Code Description Schema
405 Invalid input No Content

Consumes

  • application/x-www-form-urlencoded

Produces

  • application/json
  • application/xml

Tags

  • pet

Security

Type Name Scopes
oauth2 petstore_auth write_pets,read_pets

Find pet by ID

GET /pets/{petId}

Description

Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions

Parameters

Type Name Description Schema
Path petId
required
ID of pet that needs to be fetched integer (int64)

Responses

HTTP Code Description Schema
200 successful operation Pet
400 Invalid ID supplied No Content
404 Pet not found No Content

Produces

  • application/json
  • application/xml

Tags

  • pet

Security

Type Name Scopes
apiKey api_key
oauth2 petstore_auth write_pets,read_pets

Deletes a pet

DELETE /pets/{petId}

Parameters

Type Name Description Schema
Header api_key
required
string
Path petId
required
Pet id to delete integer (int64)

Responses

HTTP Code Description Schema
400 Invalid pet value No Content

Produces

  • application/json
  • application/xml

Tags

  • pet

Security

Type Name Scopes
oauth2 petstore_auth write_pets,read_pets

Place an order for a pet

POST /stores/order

Parameters

Type Name Description Schema
Body body
optional
order placed for purchasing the pet Order

Responses

HTTP Code Description Schema
200 successful operation Order
400 Invalid Order No Content

Produces

  • application/json
  • application/xml

Tags

  • store

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
Path orderId
required
ID of pet that needs to be fetched string

Responses

HTTP Code Description Schema
200 successful operation Order
400 Invalid ID supplied No Content
404 Order not found No Content

Produces

  • application/json
  • application/xml

Tags

  • store

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
Path orderId
required
ID of the order that needs to be deleted string

Responses

HTTP Code Description Schema
400 Invalid ID supplied No Content
404 Order not found No Content

Produces

  • application/json
  • application/xml

Tags

  • store

Create user

POST /users

Description

This can only be done by the logged in user.

Parameters

Type Name Description Schema
Body body
optional
Created user object User

Responses

HTTP Code Description Schema
default successful operation No Content

Produces

  • application/json
  • application/xml

Tags

  • user

Creates list of users with given input array

POST /users/createWithArray

Parameters

Type Name Description Schema
Body body
optional
List of user object < User > array

Responses

HTTP Code Description Schema
default successful operation No Content

Produces

  • application/json
  • application/xml

Tags

  • user

Creates list of users with given input array

POST /users/createWithList

Parameters

Type Name Description Schema
Body body
optional
List of user object < User > array

Responses

HTTP Code Description Schema
default successful operation No Content

Produces

  • application/json
  • application/xml

Tags

  • user

Logs user into the system

GET /users/login

Parameters

Type Name Description Schema
Query password
optional
The password for login in clear text string
Query username
optional
The user name for login string

Responses

HTTP Code Description Schema
200 successful operation string
400 Invalid username/password supplied No Content

Produces

  • application/json
  • application/xml

Tags

  • user

Logs out current logged in user session

GET /users/logout

Responses

HTTP Code Description Schema
default successful operation No Content

Produces

  • application/json
  • application/xml

Tags

  • user

Get user by user name

GET /users/{username}

Parameters

Type Name Description Schema
Path username
required
The name that needs to be fetched. Use user1 for testing. string

Responses

HTTP Code Description Schema
200 successful operation User
400 Invalid username supplied No Content
404 User not found No Content

Produces

  • application/json
  • application/xml

Tags

  • user

Updated user

PUT /users/{username}

Description

This can only be done by the logged in user.

Parameters

Type Name Description Schema
Path username
required
name that need to be deleted string
Body body
optional
Updated user object User

Responses

HTTP Code Description Schema
400 Invalid user supplied No Content
404 User not found No Content

Produces

  • application/json
  • application/xml

Tags

  • user

Delete user

DELETE /users/{username}

Description

This can only be done by the logged in user.

Parameters

Type Name Description Schema
Path username
required
The name that needs to be deleted string

Responses

HTTP Code Description Schema
400 Invalid username supplied No Content
404 User not found No Content

Produces

  • application/json
  • application/xml

Tags

  • user

About

Testing Swagger Importer to AEM

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published