File
Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
swagger: "2.0"
info:
description: "This is a sample server Petstore server.
     You can find out more about Swagger at [http
    ://swagger.io](http://swagger.io) or on [irc
    .freenode.net, #swagger](http://swagger.io/irc/).
     For this sample, you can use the api key `special
    -key` to test the authorization filters."
version: "1.0.0"
title: "Swagger Petstore"
termsOfService: "http://swagger.io/terms/"
contact:
email: "apiteam@swagger.io"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0
      .html"
host: "petstore.swagger.io"
basePath: "/v2"
tags:
- name: "pet"
description: "Everything about your Pets"
externalDocs:
description: "Find out more"
url: "http://swagger.io"
- name: "store"
description: "Access to Petstore orders"
- name: "user"
description: "Operations about user"
externalDocs:
description: "Find out more about our store"
url: "http://swagger.io"
schemes:
- "https"
- "http"
paths:
/pet:
post:
tags:
- "pet"
summary: "Add a new pet to the store"
description: ""
operationId: "addPet"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Swagger Petstore
 1.0.0 

[ Base URL: petstore.swagger.io/v2 ]

This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key special-key to test the authorization filters.

Find out more about Swagger

pet
Everything about your Pets
Find out more: http://swagger.io

POST​/pet
Add a new pet to the store
PUT​/pet
Update an existing pet
GET​/pet​/findByStatus
Finds Pets by status
GET​/pet​/findByTags
Finds Pets by tags
GET​/pet​/{petId}
Find pet by ID
POST​/pet​/{petId}
Updates a pet in the store with form data
DELETE​/pet​/{petId}
Deletes a pet
POST​/pet​/{petId}​/uploadImage
uploads an image

store
Access to Petstore orders

GET​/store​/inventory
Returns pet inventories by status
POST​/store​/order
Place an order for a pet
GET​/store​/order​/{orderId}
Find purchase order by ID
DELETE​/store​/order​/{orderId}
Delete purchase order by ID

user
Operations about user
Find out more about our store: http://swagger.io

POST​/user
Create user
POST​/user​/createWithArray
Creates list of users with given input array
POST​/user​/createWithList
Creates list of users with given input array
GET​/user​/login
Logs user into the system
GET​/user​/logout
Logs out current logged in user session
GET​/user​/{username}
Get user by user name
PUT​/user​/{username}
Updated user
DELETE​/user​/{username}
Delete user

Models

Order
Category
User
Tag
Pet
ApiResponse