UNPKG

4.36 kBJSONView Raw
1{
2 "tags": [
3 "pet"
4 ],
5 "summary": "Add a new pet to the store",
6 "description": "",
7 "operationId": "addPet",
8 "responses": {
9 "405": {
10 "description": "Invalid input"
11 }
12 },
13 "security": [
14 {
15 "petstore_auth": [
16 "write:pets",
17 "read:pets"
18 ]
19 }
20 ],
21 "requestBody": {
22 "content": {
23 "application/json": {
24 "schema": {
25 "type": "object",
26 "required": [
27 "name",
28 "photoUrls"
29 ],
30 "properties": {
31 "id": {
32 "type": "integer",
33 "format": "int64"
34 },
35 "category": false,
36 "name": {
37 "type": "string",
38 "example": "doggie"
39 },
40 "photoUrls": {
41 "type": "array",
42 "xml": {
43 "name": "photoUrl",
44 "wrapped": true
45 },
46 "items": {
47 "type": "string"
48 }
49 },
50 "tags": {
51 "type": "array",
52 "xml": {
53 "name": "tag",
54 "wrapped": true
55 },
56 "items": false
57 },
58 "status": {
59 "type": "string",
60 "description": "pet status in the store",
61 "enum": [
62 "available",
63 "pending",
64 "sold"
65 ]
66 }
67 },
68 "xml": {
69 "name": "Pet"
70 },
71 "x-widdershins-oldRef": "#/components/schemas/Pet"
72 }
73 },
74 "application/xml": {
75 "schema": {
76 "type": "object",
77 "required": [
78 "name",
79 "photoUrls"
80 ],
81 "properties": {
82 "id": {
83 "type": "integer",
84 "format": "int64"
85 },
86 "category": false,
87 "name": {
88 "type": "string",
89 "example": "doggie"
90 },
91 "photoUrls": {
92 "type": "array",
93 "xml": {
94 "name": "photoUrl",
95 "wrapped": true
96 },
97 "items": {
98 "type": "string"
99 }
100 },
101 "tags": {
102 "type": "array",
103 "xml": {
104 "name": "tag",
105 "wrapped": true
106 },
107 "items": false
108 },
109 "status": {
110 "type": "string",
111 "description": "pet status in the store",
112 "enum": [
113 "available",
114 "pending",
115 "sold"
116 ]
117 }
118 },
119 "xml": {
120 "name": "Pet"
121 },
122 "x-widdershins-oldRef": "#/components/schemas/Pet"
123 }
124 }
125 },
126 "description": "Pet object that needs to be added to the store",
127 "required": true
128 }
129}