Skip to content

Commit

Permalink
Merge pull request #129 from qase-tms/testcase_integration_filter
Browse files Browse the repository at this point in the history
add an integration filter to the cases list
  • Loading branch information
n3r authored Oct 18, 2023
2 parents 176dbea + 784d767 commit 85af0a7
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 0 deletions.
48 changes: 48 additions & 0 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,38 @@ paths:
A list of values separated by comma. Possible values: actual, draft deprecated
schema:
type: string
- in: query
name: 'external_issues[type]'
description: |
An integration type.
schema:
type: string
enum:
- asana
- azure-devops
- clickup-app
- github-app
- gitlab-app
- jira-cloud
- jira-server
- linear
- monday
- redmine-app
- trello-app
- youtrack-app
- in: query
name: 'external_issues[ids]'
description: A list of issue IDs.
schema:
type: array
items:
type: string
- in: query
name: include
description: |
A list of entities to include in response separated by comma. Possible values: external_issues.
schema:
type: string
- $ref: '#/components/parameters/Code'
- $ref: '#/components/parameters/Limit'
- $ref: '#/components/parameters/Offset'
Expand Down Expand Up @@ -3728,6 +3760,22 @@ components:
description: 'Deprecated, use the `updated_at` property instead.'
type: string
example: '2021-12-30T19:23:59.000000Z'
external_issues:
type: array
items:
type: object
properties:
type:
type: string
issues:
type: array
items:
type: object
properties:
id:
type: string
link:
type: string
TestCaseCreate:
type: object
properties:
Expand Down
32 changes: 32 additions & 0 deletions paths/cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,38 @@ get:
A list of values separated by comma. Possible values: actual, draft deprecated
schema:
type: string
- in: query
name: external_issues[type]
description: |
An integration type.
schema:
type: string
enum:
- asana
- azure-devops
- clickup-app
- github-app
- gitlab-app
- jira-cloud
- jira-server
- linear
- monday
- redmine-app
- trello-app
- youtrack-app
- in: query
name: external_issues[ids]
description: A list of issue IDs.
schema:
type: array
items:
type: string
- in: query
name: include
description: |
A list of entities to include in response separated by comma. Possible values: external_issues.
schema:
type: string
- $ref: '../parameters/Code.yaml'
- $ref: '../parameters/pagination/Limit.yaml'
- $ref: '../parameters/pagination/Offset.yaml'
Expand Down
13 changes: 13 additions & 0 deletions schemas/ExternalIssue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
type: object
properties:
type:
type: string
issues:
type: array
items:
type: object
properties:
id:
type: string
link:
type: string
4 changes: 4 additions & 0 deletions schemas/TestCase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ properties:
description: Deprecated, use the `updated_at` property instead.
type: string
example: "2021-12-30T19:23:59.000000Z"
external_issues:
type: array
items:
$ref: './ExternalIssue.yaml'

0 comments on commit 85af0a7

Please sign in to comment.