-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger-get.yaml
96 lines (91 loc) · 2.81 KB
/
swagger-get.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
openapi: 3.0.0
tags:
- name: Accessing Variables
description: Accessing Value of the Env-Variable.
servers:
- url: https://envhub.rb-projects.vercel.app/api/
description: Production server
paths:
/vars/get?varName={varName}:
get:
tags:
- Accessing Variables
summary: Get the Value of a Variable.
description: Get the Value of a Variable.
parameters:
- name: varName
in: query
description: Name of the variable
required: true
schema:
type: string
responses:
"200":
description: Successful response
content:
application/json:
schema:
type: object
properties:
statusCode:
type: integer
example: 200
value:
type: string
example: "Your variable value"
"400":
description: Bad Request
content:
application/json:
schema:
type: object
properties:
statusCode:
type: integer
example: 400
errors:
type: string
example: "Error details"
"404":
description: Not Found
content:
application/json:
schema:
type: object
properties:
statusCode:
type: integer
example: 404
errors:
type: string
example: "Resource not found"
"500":
description: Internal Server Error
content:
application/json:
schema:
type: object
properties:
statusCode:
type: integer
example: 500
errors:
type: string
example: "Internal Server Error Message"
logging:
type: object
properties:
result:
type: string
example: "Error Result"
VarName:
type: string
example: "Error Variable Name"
security:
- EnvHub Account API Key: [] # Use the name of your security scheme here
components:
securitySchemes:
EnvHub Account API Key:
type: apiKey
in: header # You can specify "query" if your API key is passed as a query parameter
name: Authorization # Name of the header or query parameter