Skip to content

Commit

Permalink
Change response from update API
Browse files Browse the repository at this point in the history
 (#4)
  • Loading branch information
shunsei committed Oct 3, 2024
1 parent 9955657 commit 55edc91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
8 changes: 4 additions & 4 deletions api/paths/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ book:
content:
application/json:
schema:
$ref: "../components/schemas/response.yml"
example:
code: 200
message: "OK"
$ref: "../components/schemas/book.yml"
examples:
book:
$ref: "../components/examples/book.yml"
'400':
description: リクエストボディに書籍の情報が含まれていない
content:
Expand Down
10 changes: 2 additions & 8 deletions api/paths/loan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ loans:
content:
application/json:
schema:
$ref: "../components/schemas/response.yml"
example:
code: 200
message: "OK"
$ref: "../components/schemas/loan.yml"
'400':
description: リクエストボディに貸借の情報が含まれていない
content:
Expand Down Expand Up @@ -126,10 +123,7 @@ loans:
content:
application/json:
schema:
$ref: "../components/schemas/response.yml"
example:
code: 200
message: "OK"
$ref: "../components/schemas/loan.yml"
'400':
description: リクエストボディに貸借の情報が含まれていない
content:
Expand Down
8 changes: 4 additions & 4 deletions api/paths/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ user:
content:
application/json:
schema:
$ref: "../components/schemas/response.yml"
example:
code: 200
message: "OK"
$ref: "../components/schemas/user.yml"
examples:
user:
$ref: "../components/examples/user.yml"
'400':
description: リクエストボディにユーザーの情報が含まれていない
content:
Expand Down

0 comments on commit 55edc91

Please sign in to comment.