-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
operation.yaml
66 lines (64 loc) · 1.84 KB
/
operation.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
get:
summary: Retrieve a Operation
description: Retrieve a single operation by unique identifier.
operationId: getOperation
responses:
'200':
description: Successful request
content:
application/json:
schema:
type: object
properties:
data:
$ref: '../../openapi.yaml#/components/schemas/Operations'
'401':
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
'404':
$ref: '../../openapi.yaml#/components/responses/NotFoundError'
tags:
- Operations
patch:
summary: Update a Operation
description: Update an existing operation
operationId: updateOperation
parameters:
- $ref: '../../openapi.yaml#/components/parameters/Fields'
- $ref: '../../openapi.yaml#/components/parameters/Meta'
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '../../openapi.yaml#/components/schemas/Operations'
responses:
'200':
description: Successful request
content:
application/json:
schema:
type: object
properties:
data:
$ref: '../../openapi.yaml#/components/schemas/Operations'
'401':
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
'404':
$ref: '../../openapi.yaml#/components/responses/NotFoundError'
tags:
- Operations
delete:
summary: Delete a Operation
description: Delete an existing operation
operationId: deleteOperation
responses:
'200':
description: Successful request
'401':
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
'404':
$ref: '../../openapi.yaml#/components/responses/NotFoundError'
tags:
- Operations
parameters:
- $ref: '../../openapi.yaml#/components/parameters/UUId'