Skip to content

Commit 1981842

Browse files
committed
Favorite response changes
e621ng/e621ng@5405ec4
1 parent 74e58ed commit 1981842

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

api/paths/favorites/create.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ responses:
2222
schema:
2323
type: object
2424
required:
25-
- post
25+
- post_id
26+
- favorite_count
2627
properties:
27-
post:
28-
$ref: "../../components/schemas/post.yaml"
28+
post_id:
29+
type: number
30+
favorite_count:
31+
type: number
2932
403:
3033
$ref: "../../components/responses/accessDenied.yaml"
3134
404:

api/paths/favorites/destroy.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,20 @@ parameters:
1111
schema:
1212
type: integer
1313
responses:
14-
204:
14+
200:
1515
description: Success
16+
content:
17+
application/json:
18+
schema:
19+
type: object
20+
required:
21+
- post_id
22+
- favorite_count
23+
properties:
24+
post_id:
25+
type: number
26+
favorite_count:
27+
type: number
1628
403:
1729
$ref: "../../components/responses/accessDenied.yaml"
1830
404:

0 commit comments

Comments
 (0)