Skip to content

Commit 65bfbda

Browse files
authored
Merge pull request #183 from qase-tms/update-run-api
describe update run api
2 parents 5767b84 + a43b732 commit 65bfbda

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

testops-api/v1/paths/run.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,39 @@ get:
2626
429:
2727
description: Too Many Requests.
2828

29+
patch:
30+
operationId: update-run
31+
tags: [ runs ]
32+
summary: Update a specific run
33+
description: |
34+
This method allows to update a specific run.
35+
parameters:
36+
- $ref: '../parameters/Code.yaml'
37+
- $ref: '../parameters/Id.yaml'
38+
requestBody:
39+
required: true
40+
content:
41+
application/json:
42+
schema:
43+
$ref: '../schemas/Run.update.yaml'
44+
responses:
45+
200:
46+
description: A result.
47+
content:
48+
application/json:
49+
schema:
50+
$ref: '../schemas/responses/BaseResponse.yaml'
51+
400:
52+
description: Bad Request.
53+
401:
54+
description: Unauthorized.
55+
403:
56+
description: Forbidden.
57+
404:
58+
description: Not Found.
59+
429:
60+
description: Too Many Requests.
61+
2962
delete:
3063
operationId: delete-run
3164
tags: [ runs ]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
type: object
2+
properties:
3+
title:
4+
type: string
5+
maxLength: 255
6+
description:
7+
type: string
8+
maxLength: 10000
9+
nullable: true
10+
environment_id:
11+
type: integer
12+
format: int64
13+
minimum: 1
14+
nullable: true
15+
environment_slug:
16+
type: string
17+
maxLength: 255
18+
nullable: true
19+
milestone_id:
20+
type: integer
21+
format: int64
22+
minimum: 1
23+
nullable: true
24+
tags:
25+
type: array
26+
items:
27+
type: string
28+
nullable: true
29+
configurations:
30+
type: array
31+
items:
32+
type: integer
33+
format: int64
34+
nullable: true
35+
custom_field:
36+
type: object
37+
description: A map of custom fields values (id => value)
38+
additionalProperties:
39+
type: string
40+
nullable: true

testops-api/v1/schemas/Run.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,8 @@ properties:
105105
type: integer
106106
format: int64
107107
nullable: true
108+
configurations:
109+
type: array
110+
items:
111+
type: integer
112+
format: int64

0 commit comments

Comments
 (0)