BasePath: http://petstore.swagger.wordnik.com/api

Api Version: 0.2

Resources

/user

Operations about user
POST /user.{format}/createWithArray
Creates list of users with given input array

  • body
    Name Required Data Type Description
    Array[User] required Array[User] List of user object

No Content

Status Code Reason
POST /user.{format}
Create user

This can only be done by the logged in user.

  • body
    Name Required Data Type Description
    User required User Created user object

No Content

Status Code Reason
POST /user.{format}/createWithList
Creates list of users with given list input

  • body
    Name Required Data Type Description
    List[User] required List[User] List of user object

No Content

Status Code Reason
PUT /user.{format}/{username}
Updated user

This can only be done by the logged in user.

  • body
    Name Required Data Type Description
    User required User Updated user object
  • path
    Name Required Data Type Description
    username required string name that need to be deleted

No Content

Status Code Reason
400 Invalid username supplied
404 User not found
DELETE /user.{format}/{username}
Delete user

This can only be done by the logged in user.

  • path
    Name Required Data Type Description
    username required string The name that needs to be deleted

No Content

Status Code Reason
400 Invalid username supplied
404 User not found
GET /user.{format}/{username}
Get user by user name

  • path
    Name Required Data Type Description
    username required string The name that needs to be fetched. Use user1 for testing.
Status Code Reason
400 Invalid username supplied
404 User not found
GET /user.{format}/login
Logs user into the system

  • query
    Name Required Data Type Description
    username required string The user name for login
    password required string The password for login in clear text

No Content

Status Code Reason
400 Invalid username and password combination
GET /user.{format}/logout
Logs out current logged in user session

/pet

Operations about pets
GET /pet.{format}/{petId}
Find pet by ID

Returns a pet based on ID

  • path
    Name Required Data Type Description
    petId required string ID of pet that needs to be fetched

Pet

Status Code Reason
400 Invalid ID supplied
404 Pet not found
POST /pet.{format}
Add a new pet to the store

  • body
    Name Required Data Type Description
    Pet required Pet Pet object that needs to be added to the store

No Content

Status Code Reason
405 Invalid input
PUT /pet.{format}
Update an existing pet

  • body
    Name Required Data Type Description
    Pet required Pet Pet object that needs to be updated in the store

No Content

Status Code Reason
400 Invalid ID supplied
404 Pet not found
405 Validation exception
GET /pet.{format}/findByStatus
Finds Pets by status

Multiple status values can be provided with comma seperated strings

  • query
    Name Required Data Type Description
    status required string Status values that need to be considered for filter
Status Code Reason
400 Invalid status value
GET /pet.{format}/findByTags
Finds Pets by tags

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

  • query
    Name Required Data Type Description
    tags required string Tags to filter by
Status Code Reason
400 Invalid tag value

/store

Operations about store
GET /store.{format}/order/{orderId}
Find purchase order by ID

For valid response try integer IDs with value <= 5. Anything above 5 or nonintegers will generate API errors

  • path
    Name Required Data Type Description
    orderId required string ID of pet that needs to be fetched
Status Code Reason
400 Invalid ID supplied
404 Order not found
DELETE /store.{format}/order/{orderId}
Delete purchase order by ID

For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

  • path
    Name Required Data Type Description
    orderId required string ID of the order that needs to be deleted

No Content

Status Code Reason
400 Invalid ID supplied
404 Order not found
POST /store.{format}/order
Place an order for a pet

  • body
    Name Required Data Type Description
    Order required Order order placed for purchasing the pet

No Content

Status Code Reason
400 Invalid order

Data Types

Category

Name Type Required Access Schema Notes
id long false
name string false

Order

Name Type Required Access Schema Notes
id long false
petId long false
status string false Order Status
quantity int false
shipDate Date false

Pet

Name Type Required Access Schema Notes
tags Array:Tag false
id long false
category Category false
status string false pet status in the store
name string false
photoUrls Array:string false

Tag

Name Type Required Access Schema Notes
id long false
name string false

User

Name Type Required Access Schema Notes
id long false
lastName string false
phone string false
username string false
email string false
userStatus int false User Status
firstName string false
password string false