-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapidefinition.yaml
184 lines (184 loc) · 5.85 KB
/
apidefinition.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
175
176
177
178
179
180
181
182
183
184
swagger: "2.0"
info:
description: "This is the description of the hipstapas API. You can find out more at [https://hipstapas.dev](https://hipstapas.dev). You can find the documentation at [https://hipstapas.dev/docs](https://hipstapas.dev/docs)."
version: "1.1.0"
title: "hipstapas.dev"
termsOfService: "https://hipstapas.dev/privacy"
contact:
email: "[email protected]"
license:
name: "MIT"
url: "https://github.com/keenthinker/hipstapas/blob/master/LICENSE"
host: "hipstapas.dev"
basePath: "/api"
tags:
- name: "index"
description: "Generate strong phrases (passwords)"
externalDocs:
description: "Find out more"
url: "https://hipstapas.dev/docs"
- name: "uuid"
description: "Generate UUID's / GUID's (version 4)"
externalDocs:
description: "Find out more"
url: "https://hipstapas.dev/docs"
- name: "wordlist"
description: "Generate passphrases using the EFF wordlists"
externalDocs:
description: "Find out more"
url: "https://hipstapas.dev/docs"
schemes:
- "https"
paths:
/index:
get:
tags:
- "index"
summary: ""
description: "The default value for all boolean parameters is `true`. The default value for `lengthMin` is 16 and for `lengthMax` is 32. If `resultsCount` is set to 1, then the content type is set to `text/html`. If `resultsCount` is set to more than 1, then the content type is set to `application/json` and the result is a json array holding all generated passwords."
operationId: "generatePassword"
produces:
- "text/html"
- "application/json"
parameters:
- in: "query"
name: "alphabetSmall"
type: boolean
description: "If set to `true` the generation alphabet contains small characters: `abcdefghijklmnopqrstuvwxyz`"
required: false
- in: "query"
name: "alphabetCapital"
type: boolean
description: "If set to `true` the generation alphabet contains capital characters: `ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
required: false
- in: "query"
name: "alphabetNumber"
type: boolean
description: "If set to `true` the generation alphabet contains numbers: `0123456789`"
required: false
- in: "query"
name: "alphabetSpecial"
type: boolean
description: "If set to `true` the generation alphabet contains special characters: `.,+-*/!?;:{}()[]%$&~#@|`"
required: false
- in: "query"
name: "lengthMin"
type: integer
description: "Defines the minimal length of the generated phrase"
minimum: 1
maximum: 2048
required: false
- in: "query"
name: "lengthMax"
type: integer
description: "Defines the maximal length of the generated phrase"
minimum: 1
maximum: 2048
required: false
- in: "query"
name: "resultsCount"
type: integer
description: "Defines how many results should be generated at once"
minimum: 1
maximum: 100
required: false
responses:
"200":
description: "OK. Validation errors are returned as string response."
/uuid:
get:
tags:
- "uuid"
summary: ""
description: ""
operationId: "generateUuid"
produces:
- "text/html"
- "application/json"
parameters:
- in: "query"
name: "resultsCount"
type: integer
description: "Defines how many results should be generated at once"
minimum: 1
maximum: 100
required: false
responses:
"200":
description: "OK. Validation errors are returned as string response."
/wordlist:
get:
tags:
- "wordlist"
summary: ""
description: "The default value for `words` is 6 - a newly generated passphrase contains 6 words (as described and suggested by EFF https://www.eff.org/de/dice)"
operationId: "generateWordlist"
produces:
- "text/html"
- "application/json"
parameters:
- in: "query"
name: "words"
type: integer
description: "Defines the count of the words per passphrase"
minimum: 1
maximum: 50
required: false
- in: "query"
name: "resultsCount"
type: integer
description: "Defines how many results should be generated at once"
minimum: 1
maximum: 100
required: false
responses:
"200":
description: "OK. Validation errors are returned as string response."
/random:
get:
tags:
- "random"
summary: ""
description: "Random ..."
operationId: "generateRandomNumber"
produces:
- "text/html"
- "application/json"
parameters:
- in: "query"
name: "min"
type: integer
description: "Defines the lower bound of the number generator"
minimum: 1
maximum: 1048576
required: false
- in: "query"
name: "max"
type: integer
description: "Defines the upper bound of the number generator"
minimum: 1
maximum: 1048576
required: false
- in: "query"
name: "sort"
type: boolean
description: "If set to `true` the generated number sequence is sorted"
required: false
- in: "query"
name: "noDuplicates"
type: boolean
description: "If set to `true` the generated number sequence contains only unique numbers"
required: false
- in: "query"
name: "resultsCount"
type: integer
description: "Defines how many results should be generated at once"
minimum: 1
maximum: 100
required: false
responses:
"200":
description: "OK. Validation errors are returned as string response."
externalDocs:
description: "Try the live interactive playground"
url: "https://hipstapas.dev/playground"