-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiary.apib
54 lines (37 loc) · 1.22 KB
/
apiary.apib
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
FORMAT: 1A
HOST: http://dicewa.re/
# diceware
Diceware™ is a method for picking passphrases that uses dice to select words at random from a special list called the Diceware Word List.
## Generating Passphrase [/api/passphrase/?parts={parts}]
+ Parameters
+ parts (number) - number of required passphrase parts
### Getting passphrase [GET]
Getting generated passphrase
+ Response 200 (application/json)
+ Body
{
"meta": {
"message": "Ok."
},
"data": {
"passphrase": {
"text": "randomgeneratedpasswordexampledude",
"parts": [
"random",
"generated",
"password",
"example",
"dude"
]
}
}
}
+ Response 400 (application/json)
+ Headers
Location: /api/passphrase/generate/?parts=string
+ Body
{
"meta": {
"message": "Parts need to be integer in range <1,99>."
}
}