-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.yaml
More file actions
46 lines (46 loc) · 1.13 KB
/
Copy pathapi.yaml
File metadata and controls
46 lines (46 loc) · 1.13 KB
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
38
39
40
41
42
43
44
45
46
"/pet":
post:
tags:
- pet
summary: Add a new pet to the store11
description: ''
operationId: addPet
responses:
200:
$ref: "#/components/schemas/StorePet"
405:
$ref: "../../components/responses.yaml#/405"
security:
- petstore_auth:
- write:pets
- read:pets
requestBody:
description: Pet object that needs to be added to the store
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/StorePet"
application/xml:
schema:
$ref: "#/components/schemas/StorePet"
components:
schemas:
Category:
$ref: "./models/category.yaml#/Category"
Tag:
$ref: "./models/tag.yaml#/Tag"
Pet:
$ref: "./models/pet.yaml#/Pet"
StorePet:
$ref: "./models/pet.yaml#/StorePet"
responses:
Pet:
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Pet'
application/xml:
schema:
$ref: "#/components/schemas/Pet"