-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi-changed.yaml
More file actions
56 lines (56 loc) · 1.2 KB
/
openapi-changed.yaml
File metadata and controls
56 lines (56 loc) · 1.2 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
openapi: "3.0.3"
info:
title: Pet Store API
version: "2.0.0"
description: Sample API for Delimit quickstart
paths:
/pets:
get:
summary: List all pets
operationId: listPets
parameters:
- name: limit
in: query
required: false
schema:
type: integer
format: int32
responses:
"200":
description: A list of pets
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Pet"
post:
summary: Create a pet
operationId: createPet
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Pet"
responses:
"201":
description: Pet created
# /pets/{petId} removed -- this is the breaking change
components:
schemas:
Pet:
type: object
required:
- id
- name
properties:
id:
type: integer
name:
type: string
status:
type: string
enum:
- available
- adopted