Skip to content

Commit 5b041df

Browse files
committed
Fix parameter declarations
1 parent 624b720 commit 5b041df

6 files changed

Lines changed: 30 additions & 21 deletions

File tree

paths/delete_comment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
post:
3-
params:
3+
parameters:
44
- in: path
55
name: id
66
schema:

paths/delete_expense.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
---
2-
params:
3-
- in: query
4-
name: id
5-
description: ID of the expense to delete
62
post:
73
tags:
84
- expenses
95
summary: Delete an expense
106
description: "**Note**: 200 OK does not indicate a successful response. The operation
117
was successful only if `success` is true.\n"
8+
parameters:
9+
- in: path
10+
name: id
11+
description: ID of the expense to delete
12+
schema:
13+
type: integer
14+
required: true
1215
responses:
1316
'200':
1417
content:

paths/delete_friend.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
---
2-
parameters:
3-
- in: path
4-
name: id
5-
description: User ID of the friend
6-
schema:
7-
type: integer
8-
required: true
92
post:
103
tags:
114
- friends
@@ -14,6 +7,13 @@ post:
147
Given a friend ID, break off the friendship between the current user and the specified user.
158
169
**Note**: 200 OK does not indicate a successful response. You must check the `success` value of the response.
10+
parameters:
11+
- in: path
12+
name: id
13+
description: User ID of the friend
14+
schema:
15+
type: integer
16+
required: true
1717
responses:
1818
'200':
1919
description: OK

paths/index.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
$ref: ./get_comments.yaml
4848
/create_comment:
4949
$ref: ./create_comment.yaml
50-
/delete_comment:
50+
/delete_comment/{id}:
5151
$ref: ./delete_comment.yaml
5252
/get_notifications:
5353
$ref: ./get_notifications.yaml

paths/undelete_expense.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
---
2-
params:
3-
- in: query
4-
name: id
5-
description: ID of the expense to restore
62
post:
73
tags:
84
- expenses
95
summary: Restore an expense
106
description: "**Note**: 200 OK does not indicate a successful response. The operation
117
was successful only if `success` is true.\n"
8+
parameters:
9+
- in: path
10+
name: id
11+
description: ID of the expense to restore
12+
schema:
13+
type: integer
14+
required: true
1215
responses:
1316
'200':
1417
content:

paths/update_expense.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
---
2-
params:
3-
- in: query
4-
name: id
5-
description: ID of the expense to update
62
post:
73
tags:
84
- expenses
@@ -13,6 +9,13 @@ post:
139
shares for the expense will be overwritten with the provided values.
1410
1511
**Note**: 200 OK does not indicate a successful response. The operation was successful only if `errors` is empty.
12+
parameters:
13+
- in: path
14+
name: id
15+
description: ID of the expense to update
16+
schema:
17+
type: integer
18+
required: true
1619
requestBody:
1720
required: true
1821
content:

0 commit comments

Comments
 (0)