-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpetstore.openapi.yml
More file actions
57 lines (51 loc) · 1.09 KB
/
petstore.openapi.yml
File metadata and controls
57 lines (51 loc) · 1.09 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
47
48
49
50
51
52
53
54
55
56
57
openapi: 3.0.2
info: { title: Synopsis, version: 1.0.0 }
paths:
/pet/{petId}:
parameters:
- $ref: '#/components/parameters/PetId'
post:
operationId: UpdatePet
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Pet'
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Pet'
404:
description: Not Found
components:
parameters:
PetId:
required: true
in: path
name: petId
schema:
$ref: '#/components/schemas/PetId'
schemas:
PetId:
type: string
pattern: ^pet-[0-9a-f]{8}$
Pet:
type: object
required: [name]
additionalProperties: false
properties:
name:
type: string
minLength: 1
maxLength: 64
status:
$ref: '#/components/schemas/PetStatus'
PetStatus:
type: string
enum:
- AVAILABLE
- PENDING
- SOLD