Skip to content

Commit 09d812c

Browse files
author
Aidan Cunniffe
committed
fix path
1 parent 896d171 commit 09d812c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

openapi.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ paths:
126126
type: string
127127
required:
128128
- id
129-
/author/{author_id}:
129+
/authors/{author_id}:
130130
patch:
131131
parameters:
132132
- $ref: "#/components/parameters/AuthorId"
@@ -169,6 +169,9 @@ components:
169169
AuthorResponse:
170170
type: object
171171
properties:
172+
id:
173+
type: string
174+
example: FrCmluBlTSwwxLLEbEDCP
172175
name:
173176
type: string
174177
example: Jane Austen
@@ -181,6 +184,7 @@ components:
181184
format: timestamp
182185
example: 2023-03-18T14:29:26.384Z
183186
required:
187+
- id
184188
- name
185189
- created_at
186190
- updated_at

optic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ capture:
1818
method: GET
1919
- path: /books/WjE9O1d8ELCb8POiOw4pn
2020
method: GET
21-
- path: /author/tNpOpQZbxytxTxDT15GQy
21+
- path: /authors/tNpOpQZbxytxTxDT15GQy
2222
method: GET
2323
# When you are ready, set up an actual integration that run your test suite
2424
# Read reference docs here: https://www.useoptic.com/docs/capturing-traffic#configuration-reference

0 commit comments

Comments
 (0)