-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathswagger.yaml
175 lines (174 loc) · 4.13 KB
/
swagger.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
swagger: "2.0"
info:
description: "This is a custom Key Vault connector for Logic App."
version: "1.0.0"
title: "Key Vault Connector"
termsOfService: "https://raw.githubusercontent.com/aliencube/Key-Vault-Connector-for-Logic-Apps/master/LICENSE"
contact:
url: "https://github.com/aliencube/Key-Vault-Connector-for-Logic-Apps/issues"
license:
name: "MIT"
url: "https://raw.githubusercontent.com/aliencube/Key-Vault-Connector-for-Logic-Apps/master/LICENSE"
externalDocs:
description: "Find out more about Key Vault Custom Connector"
url: "https://github.com/aliencube/Key-Vault-Connector-for-Logic-Apps"
host: "keyvaultconnector.azurewebsites.net"
basePath: "/api"
tags:
- name: "secrets"
description: "Access to the list of secrets"
externalDocs:
description: "Find out more"
url: "https://github.com/aliencube/Key-Vault-Connector-for-Logic-Apps"
- name: "secret"
description: "Access to the secret"
externalDocs:
description: "Find out more"
url: "https://github.com/aliencube/Key-Vault-Connector-for-Logic-Apps"
schemes:
- "https"
paths:
/secrets:
get:
tags:
- "secrets"
summary: "Gets the list of secretes"
description: "This returns the list of secrets without their values"
operationId: "Secrets"
produces:
- "application/json"
x-ms-visibility: "important"
responses:
200:
description: "OK"
schema:
type: "array"
items:
$ref: "#/definitions/SecretItem"
404:
description: "Not Found"
schema:
$ref: "#/definitions/Error"
500:
description: "Internal Server Error"
schema:
$ref: "#/definitions/Error"
security:
- authkey: []
/secrets/{name}:
get:
tags:
- "secret"
summary: "Gets the secret details"
description: "This returns a secreet details including its value"
operationId: "Secret"
produces:
- "application/json"
x-ms-visibility: "important"
parameters:
- name: "name"
in: "path"
description: "Secret name"
required: true
type: "string"
x-ms-summary: "Name"
x-ms-visibility: "important"
responses:
200:
description: "OK"
schema:
$ref: "#/definitions/Secret"
404:
description: "Not Found"
schema:
$ref: "#/definitions/Error"
500:
description: "Internal Server Error"
schema:
$ref: "#/definitions/Error"
security:
- authkey: []
securityDefinitions:
authkey:
type: "apiKey"
name: "x-functions-key"
in: "header"
definitions:
SecretItem:
type: "object"
properties:
id:
type: "string"
name:
type: "string"
enabled:
type: "boolean"
managed:
type: "boolean"
contentType:
type: "string"
recoveryLevel:
type: "string"
created:
type: "string"
format: "date-time"
updated:
type: "string"
format: "date-time"
expires:
type: "string"
format: "date-time"
notBefore:
type: "string"
format: "date-time"
required:
- id
- name
- enabled
- recoveryLevel
Secret:
type: "object"
properties:
id:
type: "string"
name:
type: "string"
value:
type: "string"
enabled:
type: "boolean"
managed:
type: "boolean"
version:
type: "string"
contentType:
type: "string"
recoveryLevel:
type: "string"
created:
type: "string"
format: "date-time"
updated:
type: "string"
format: "date-time"
expires:
type: "string"
format: "date-time"
notBefore:
type: "string"
format: "date-time"
required:
- id
- name
- enabled
- recoveryLevel
Error:
type: "object"
properties:
statusCode:
type: "integer"
message:
type: "string"
required:
- statusCode
- message