-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger-fault-config-server.yaml
98 lines (97 loc) · 1.85 KB
/
swagger-fault-config-server.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
swagger: '2.0'
info:
version: '1.0'
title: red-monkey
contact: {}
host: localhost:8000
basePath: /
securityDefinitions: {}
schemes:
- http
consumes:
- application/json
produces:
- application/json
paths:
/fault:
post:
summary: Create fault
tags:
- Misc
operationId: Createfault
deprecated: false
produces:
- application/json
parameters:
- name: Body
in: body
required: true
description: ''
schema:
$ref: '#/definitions/CreateFaultRequest'
responses:
'200':
description: ''
headers: {}
/:
get:
summary: Get fault
tags:
- Misc
operationId: Getfault
deprecated: false
produces:
- application/json
parameters: []
responses:
'200':
description: ''
headers: {}
delete:
summary: Delete fault
tags:
- Misc
operationId: Deletefault
deprecated: false
produces:
- application/json
parameters: []
responses:
'200':
description: ''
headers: {}
definitions:
CreateFaultRequest:
title: CreateFaultRequest
example:
name: get_custom_err
description: get custom error
fault_type: error
error: KEY not found
percentage: 100
command: GET
type: object
properties:
name:
type: string
description:
type: string
fault_type:
type: string
error:
type: string
percentage:
type: integer
format: int32
command:
type: string
required:
- name
- description
- fault_type
- error
- percentage
- command
tags:
- name: Misc
description: ''