Skip to content

Commit 94d116d

Browse files
committed
Fix missing auth
1 parent cff6b7d commit 94d116d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+100
-90
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: key
2+
in: query
3+
schema:
4+
type: string

src/components/securitySchemes.yml renamed to src/components/security_schemes.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ ApiKeyAuth:
66
type: apiKey
77
in: header
88
name: X-Redmine-API-Key
9+
10+
ApiKeyInQueryAuth:
11+
type: apiKey
12+
in: query
13+
name: key

src/openapi.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ info:
99
license:
1010
name: Apache 2.0
1111
url: https://www.apache.org/licenses/LICENSE-2.0.html
12-
version: 0.8.0
12+
version: 0.8.1
1313

1414
servers:
1515
- url: /
@@ -21,6 +21,7 @@ externalDocs:
2121
security:
2222
- BasicAuth: []
2323
- ApiKeyAuth: []
24+
- ApiKeyInQueryAuth: []
2425

2526
paths:
2627
/issues.{format}:
@@ -160,7 +161,7 @@ paths:
160161

161162
components:
162163
securitySchemes:
163-
$ref: ./components/securitySchemes.yml
164+
$ref: ./components/security_schemes.yml
164165

165166
tags:
166167
$ref: ./tags.yml

src/paths/attachments.attachment_id.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ get:
66
summary: GET
77
operationId: getAttachment
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
1110
- $ref: ../components/parameters/path/attachment_id.yml
11+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1212
responses:
1313
200:
1414
description: ""
@@ -28,9 +28,9 @@ patch:
2828
summary: PATCH
2929
operationId: updateAttachment
3030
parameters:
31-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
3231
- $ref: ../components/parameters/path/format.yml
3332
- $ref: ../components/parameters/path/attachment_id.yml
33+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
3434
requestBody:
3535
content:
3636
application/json:
@@ -56,9 +56,9 @@ delete:
5656
summary: DELETE
5757
operationId: deleteAttachment
5858
parameters:
59-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
6059
- $ref: ../components/parameters/path/format.yml
6160
- $ref: ../components/parameters/path/attachment_id.yml
61+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
6262
responses:
6363
204:
6464
description: ""

src/paths/custom_fields.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ get:
66
summary: GET
77
operationId: getCustomFields
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
10+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1111
responses:
1212
200:
1313
description: ""

src/paths/enumerations.document_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ get:
66
summary: GET
77
operationId: getDocumentCategories
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
10+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1111
responses:
1212
200:
1313
description: ""

src/paths/enumerations.issue_priorities.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ get:
66
summary: GET
77
operationId: getIssuePriorities
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
10+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1111
responses:
1212
200:
1313
description: ""

src/paths/enumerations.time_entry_activities.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ get:
66
summary: GET
77
operationId: getTimeEntryActivities
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
10+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1111
responses:
1212
200:
1313
description: ""

src/paths/groups.group_id.users.user_id.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ delete:
66
summary: DELETE
77
operationId: removeUserFromGroup
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
1110
- $ref: ../components/parameters/path/group_id.yml
1211
- $ref: ../components/parameters/path/user_id.yml
12+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1313
responses:
1414
204:
1515
description: ""

src/paths/groups.group_id.users.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ post:
66
summary: POST
77
operationId: addUserToGroup
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
1110
- $ref: ../components/parameters/path/group_id.yml
11+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1212
requestBody:
1313
content:
1414
application/json:

src/paths/groups.group_id.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ get:
66
summary: GET
77
operationId: getGroup
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
1110
- $ref: ../components/parameters/path/group_id.yml
11+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1212
- name: include
1313
in: query
1414
schema:
@@ -38,9 +38,9 @@ put:
3838
summary: PUT
3939
operationId: updateGroup
4040
parameters:
41-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
4241
- $ref: ../components/parameters/path/format.yml
4342
- $ref: ../components/parameters/path/group_id.yml
43+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
4444
requestBody:
4545
content:
4646
application/json:
@@ -68,9 +68,9 @@ delete:
6868
summary: DELETE
6969
operationId: deleteGroup
7070
parameters:
71-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
7271
- $ref: ../components/parameters/path/format.yml
7372
- $ref: ../components/parameters/path/group_id.yml
73+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
7474
responses:
7575
204:
7676
description: ""

src/paths/groups.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ get:
66
summary: GET
77
operationId: getGroups
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
10+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1111
responses:
1212
200:
1313
description: ""
@@ -31,8 +31,8 @@ post:
3131
summary: POST
3232
operationId: createGroup
3333
parameters:
34-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
3534
- $ref: ../components/parameters/path/format.yml
35+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
3636
requestBody:
3737
content:
3838
application/json:

src/paths/issue_categories.issue_category_id.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ get:
66
summary: GET
77
operationId: getIssueCategory
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
1110
- $ref: ../components/parameters/path/issue_category_id.yml
11+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1212
responses:
1313
200:
1414
description: ""
@@ -30,9 +30,9 @@ put:
3030
summary: PUT
3131
operationId: updateIssueCategory
3232
parameters:
33-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
3433
- $ref: ../components/parameters/path/format.yml
3534
- $ref: ../components/parameters/path/issue_category_id.yml
35+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
3636
requestBody:
3737
content:
3838
application/json:
@@ -64,9 +64,9 @@ delete:
6464
summary: DELETE
6565
operationId: deleteIssueCategory
6666
parameters:
67-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
6867
- $ref: ../components/parameters/path/format.yml
6968
- $ref: ../components/parameters/path/issue_category_id.yml
69+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
7070
- name: reassign_to_id
7171
in: query
7272
schema:

src/paths/issue_statuses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ get:
66
summary: Returns possible Status Values for Issues
77
operationId: getIssueStatuses
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
10+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1111
responses:
1212
200:
1313
description: ""

src/paths/issues.issue_id.relations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ get:
66
summary: GET
77
operationId: getIssueRelationsByIssue
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
1110
- $ref: ../components/parameters/path/issue_id.yml
11+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1212
responses:
1313
200:
1414
description: ""
@@ -32,9 +32,9 @@ post:
3232
summary: POST
3333
operationId: createIssueRelationsByIssue
3434
parameters:
35-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
3635
- $ref: ../components/parameters/path/format.yml
3736
- $ref: ../components/parameters/path/issue_id.yml
37+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
3838
requestBody:
3939
content:
4040
application/json:

src/paths/issues.issue_id.watchers.user_id.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ delete:
66
summary: Removing a watcher
77
operationId: deleteWatcher
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
1110
- $ref: ../components/parameters/path/issue_id.yml
1211
- $ref: ../components/parameters/path/user_id.yml
12+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1313
responses:
1414
204:
1515
description: ""

src/paths/issues.issue_id.watchers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ post:
66
summary: Adding a watcher
77
operationId: createWatcher
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
1110
- $ref: ../components/parameters/path/issue_id.yml
11+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1212
requestBody:
1313
content:
1414
application/json:

src/paths/issues.issue_id.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ get:
66
summary: Showing an issue
77
operationId: getIssue
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
1110
- $ref: ../components/parameters/path/issue_id.yml
11+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1212
- name: include
1313
in: query
1414
schema:
@@ -43,9 +43,9 @@ put:
4343
summary: Updating an issue
4444
operationId: updateIssue
4545
parameters:
46-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
4746
- $ref: ../components/parameters/path/format.yml
4847
- $ref: ../components/parameters/path/issue_id.yml
48+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
4949
requestBody:
5050
content:
5151
application/json:
@@ -108,9 +108,9 @@ delete:
108108
summary: Deleting an issue
109109
operationId: deleteIssue
110110
parameters:
111-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
112111
- $ref: ../components/parameters/path/format.yml
113112
- $ref: ../components/parameters/path/issue_id.yml
113+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
114114
responses:
115115
204:
116116
description: ""

src/paths/issues.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ get:
66
summary: Listing issues
77
operationId: getIssues
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
10-
- $ref: ../components/parameters/header/x_redmine_nometa.yml
119
- $ref: ../components/parameters/path/format.yml
1210
- $ref: ../components/parameters/query/offset.yml
1311
- $ref: ../components/parameters/query/limit.yml
1412
- $ref: ../components/parameters/query/nometa.yml
13+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
14+
- $ref: ../components/parameters/header/x_redmine_nometa.yml
1515
- name: sort
1616
in: query
1717
schema:
@@ -87,8 +87,8 @@ post:
8787
summary: Creating an issue
8888
operationId: createIssue
8989
parameters:
90-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
9190
- $ref: ../components/parameters/path/format.yml
91+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
9292
requestBody:
9393
content:
9494
application/json:

src/paths/journals.journal_id.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ put:
44
summary: PUT
55
operationId: updateJournal
66
parameters:
7-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
87
- $ref: ../components/parameters/path/format.yml
98
- $ref: ../components/parameters/path/journal_id.yml
9+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1010
requestBody:
1111
content:
1212
application/json:

src/paths/memberships.membership_id.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ get:
66
summary: GET
77
operationId: getMembership
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
1110
- $ref: ../components/parameters/path/membership_id.yml
11+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1212
responses:
1313
200:
1414
description: ""
@@ -30,9 +30,9 @@ put:
3030
summary: PUT
3131
operationId: updateMembership
3232
parameters:
33-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
3433
- $ref: ../components/parameters/path/format.yml
3534
- $ref: ../components/parameters/path/membership_id.yml
35+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
3636
responses:
3737
204:
3838
description: ""
@@ -51,9 +51,9 @@ delete:
5151
summary: DELETE
5252
operationId: deleteMembership
5353
parameters:
54-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
5554
- $ref: ../components/parameters/path/format.yml
5655
- $ref: ../components/parameters/path/membership_id.yml
56+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
5757
responses:
5858
204:
5959
description: ""

src/paths/my_account.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ get:
66
summary: GET
77
operationId: getMyAccount
88
parameters:
9-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
109
- $ref: ../components/parameters/path/format.yml
10+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
1111
responses:
1212
200:
1313
description: ""
@@ -24,8 +24,8 @@ put:
2424
summary: PUT
2525
operationId: updateMyAccount
2626
parameters:
27-
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
2827
- $ref: ../components/parameters/path/format.yml
28+
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
2929
requestBody:
3030
content:
3131
application/json:

0 commit comments

Comments
 (0)