Skip to content

Commit a399f7d

Browse files
committed
feat!: remove GET /pets/{petId} endpoint
BREAKING CHANGE: Removed individual pet lookup endpoint
1 parent bc7e60a commit a399f7d

2 files changed

Lines changed: 7 additions & 36 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"petstore": major
3+
---
4+
5+
## petstore
6+
7+
- **[BREAKING]** remove path at paths./pets/{petId}

specs/petstore.openapi.yaml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -77,40 +77,6 @@ paths:
7777
schema:
7878
$ref: '#/components/schemas/Error'
7979

80-
/pets/{petId}:
81-
get:
82-
summary: Get a pet by ID
83-
description: Returns a single pet by its ID
84-
operationId: getPetById
85-
tags:
86-
- pets
87-
parameters:
88-
- name: petId
89-
in: path
90-
required: true
91-
description: ID of the pet to retrieve
92-
schema:
93-
type: string
94-
format: uuid
95-
responses:
96-
'200':
97-
description: Successful response
98-
content:
99-
application/json:
100-
schema:
101-
$ref: '#/components/schemas/Pet'
102-
'404':
103-
description: Pet not found
104-
content:
105-
application/json:
106-
schema:
107-
$ref: '#/components/schemas/Error'
108-
'500':
109-
description: Internal server error
110-
content:
111-
application/json:
112-
schema:
113-
$ref: '#/components/schemas/Error'
11480

11581

11682
components:
@@ -137,7 +103,6 @@ components:
137103
enum:
138104
- dog
139105
- cat
140-
- bird
141106
- rabbit
142107
description: Species of the pet
143108
breed:
@@ -185,7 +150,6 @@ components:
185150
enum:
186151
- dog
187152
- cat
188-
- bird
189153
- rabbit
190154
description: Species of the pet
191155
breed:

0 commit comments

Comments
 (0)