Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/redmine-5.0.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
d-yoshi committed May 6, 2024
2 parents fd3f2b4 + 1a35f9e commit 106a271
Show file tree
Hide file tree
Showing 49 changed files with 207 additions and 192 deletions.
209 changes: 107 additions & 102 deletions openapi.yml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/components/parameters/query/key.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: key
in: query
schema:
type: string
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ ApiKeyAuth:
type: apiKey
in: header
name: X-Redmine-API-Key

ApiKeyInQueryAuth:
type: apiKey
in: query
name: key
5 changes: 3 additions & 2 deletions src/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 0.8.0
version: 0.8.1

servers:
- url: /
Expand All @@ -21,6 +21,7 @@ externalDocs:
security:
- BasicAuth: []
- ApiKeyAuth: []
- ApiKeyInQueryAuth: []

paths:
/issues.{format}:
Expand Down Expand Up @@ -160,7 +161,7 @@ paths:

components:
securitySchemes:
$ref: ./components/securitySchemes.yml
$ref: ./components/security_schemes.yml

tags:
$ref: ./tags.yml
6 changes: 3 additions & 3 deletions src/paths/attachments.attachment_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ get:
summary: GET
operationId: getAttachment
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/attachment_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand All @@ -28,9 +28,9 @@ patch:
summary: PATCH
operationId: updateAttachment
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/attachment_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand All @@ -56,9 +56,9 @@ delete:
summary: DELETE
operationId: deleteAttachment
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/attachment_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
204:
description: ""
2 changes: 1 addition & 1 deletion src/paths/custom_fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ get:
summary: GET
operationId: getCustomFields
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand Down
2 changes: 1 addition & 1 deletion src/paths/enumerations.document_categories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ get:
summary: GET
operationId: getDocumentCategories
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand Down
2 changes: 1 addition & 1 deletion src/paths/enumerations.issue_priorities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ get:
summary: GET
operationId: getIssuePriorities
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand Down
2 changes: 1 addition & 1 deletion src/paths/enumerations.time_entry_activities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ get:
summary: GET
operationId: getTimeEntryActivities
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand Down
2 changes: 1 addition & 1 deletion src/paths/groups.group_id.users.user_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ delete:
summary: DELETE
operationId: removeUserFromGroup
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/group_id.yml
- $ref: ../components/parameters/path/user_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
204:
description: ""
2 changes: 1 addition & 1 deletion src/paths/groups.group_id.users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ post:
summary: POST
operationId: addUserToGroup
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/group_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand Down
6 changes: 3 additions & 3 deletions src/paths/groups.group_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ get:
summary: GET
operationId: getGroup
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/group_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- name: include
in: query
schema:
Expand Down Expand Up @@ -38,9 +38,9 @@ put:
summary: PUT
operationId: updateGroup
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/group_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand Down Expand Up @@ -68,9 +68,9 @@ delete:
summary: DELETE
operationId: deleteGroup
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/group_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
204:
description: ""
4 changes: 2 additions & 2 deletions src/paths/groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ get:
summary: GET
operationId: getGroups
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand All @@ -31,8 +31,8 @@ post:
summary: POST
operationId: createGroup
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand Down
6 changes: 3 additions & 3 deletions src/paths/issue_categories.issue_category_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ get:
summary: GET
operationId: getIssueCategory
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/issue_category_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand All @@ -30,9 +30,9 @@ put:
summary: PUT
operationId: updateIssueCategory
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/issue_category_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand Down Expand Up @@ -64,9 +64,9 @@ delete:
summary: DELETE
operationId: deleteIssueCategory
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/issue_category_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- name: reassign_to_id
in: query
schema:
Expand Down
2 changes: 1 addition & 1 deletion src/paths/issue_statuses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ get:
summary: Returns possible Status Values for Issues
operationId: getIssueStatuses
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand Down
4 changes: 2 additions & 2 deletions src/paths/issues.issue_id.relations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ get:
summary: GET
operationId: getIssueRelationsByIssue
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/issue_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand All @@ -32,9 +32,9 @@ post:
summary: POST
operationId: createIssueRelationsByIssue
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/issue_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand Down
2 changes: 1 addition & 1 deletion src/paths/issues.issue_id.watchers.user_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ delete:
summary: Removing a watcher
operationId: deleteWatcher
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/issue_id.yml
- $ref: ../components/parameters/path/user_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
204:
description: ""
2 changes: 1 addition & 1 deletion src/paths/issues.issue_id.watchers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ post:
summary: Adding a watcher
operationId: createWatcher
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/issue_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand Down
6 changes: 3 additions & 3 deletions src/paths/issues.issue_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ get:
summary: Showing an issue
operationId: getIssue
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/issue_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- name: include
in: query
schema:
Expand Down Expand Up @@ -43,9 +43,9 @@ put:
summary: Updating an issue
operationId: updateIssue
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/issue_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand Down Expand Up @@ -108,9 +108,9 @@ delete:
summary: Deleting an issue
operationId: deleteIssue
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/issue_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
204:
description: ""
6 changes: 3 additions & 3 deletions src/paths/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ get:
summary: Listing issues
operationId: getIssues
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/header/x_redmine_nometa.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/query/offset.yml
- $ref: ../components/parameters/query/limit.yml
- $ref: ../components/parameters/query/nometa.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/header/x_redmine_nometa.yml
- name: sort
in: query
schema:
Expand Down Expand Up @@ -87,8 +87,8 @@ post:
summary: Creating an issue
operationId: createIssue
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand Down
2 changes: 1 addition & 1 deletion src/paths/journals.journal_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ put:
summary: PUT
operationId: updateJournal
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/journal_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand Down
6 changes: 3 additions & 3 deletions src/paths/memberships.membership_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ get:
summary: GET
operationId: getMembership
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/membership_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand All @@ -30,9 +30,9 @@ put:
summary: PUT
operationId: updateMembership
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/membership_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
204:
description: ""
Expand All @@ -51,9 +51,9 @@ delete:
summary: DELETE
operationId: deleteMembership
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/path/membership_id.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
204:
description: ""
4 changes: 2 additions & 2 deletions src/paths/my_account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ get:
summary: GET
operationId: getMyAccount
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
responses:
200:
description: ""
Expand All @@ -24,8 +24,8 @@ put:
summary: PUT
operationId: updateMyAccount
parameters:
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
- $ref: ../components/parameters/path/format.yml
- $ref: ../components/parameters/header/x_redmine_switch_user.yml
requestBody:
content:
application/json:
Expand Down
Loading

0 comments on commit 106a271

Please sign in to comment.