-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathHelloWorld.swagger.json
86 lines (86 loc) · 2.5 KB
/
HelloWorld.swagger.json
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
{
"swagger": "2.0",
"basePath": "/",
"paths": {
"/HelloWorldEndpoint/": {
"post": {
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/helloWorldResponse"
}
}
},
"summary": "generated fom MDSL",
"operationId": "helloWorld with responsibility unknown",
"parameters": [
{
"name": "payload",
"required": true,
"in": "body",
"schema": {
"$ref": "#/definitions/helloWorldRequest"
}
},
{
"name": "X-Fields",
"in": "header",
"type": "string",
"format": "mask",
"description": "An optional fields mask"
}
],
"tags": [
"HelloWorldEndpoint"
]
}
}
},
"info": {
"title": "HelloWorldAPI",
"version": "0.1",
"description": "The MDSL service contract specified the usage scenario as: UNDISCLOSED_VISIBILITY ANY_INTEGRATION_DIRECTION, see endpoints for role information and operations for responsibilities"
},
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"tags": [
{
"name": "HelloWorldEndpoint",
"description": "This endpoint has the following MAP roles: undisclosed"
}
],
"definitions": {
"helloWorldRequest": {
"properties": {
"identifier1": {
"type": "string"
}
},
"type": "object"
},
"helloWorldResponse": {
"properties": {
"identifier2": {
"type": "string"
},
"identifier3": {
"type": "string"
}
},
"type": "object"
}
},
"responses": {
"ParseError": {
"description": "When a mask can't be parsed"
},
"MaskError": {
"description": "When any error occurs on mask"
}
}
}