-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiary.apib
82 lines (59 loc) · 1.76 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
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
FORMAT: 1A
HOST: https://votd.ansidev.xyz/api/v1/
# Bible verse of the day
Retrive new bible verse everyday
## Verse of the day [/votd?version={version}]
### Retrieve Bible verse of the day [GET]
+ Parameters
+ version (optional, string) ... Bible version code
+ Request (application/json)
+ Response 200 (application/json)
{
date: "2018-04-15",
verse: "“How great you are, Sovereign LORD! There is no one like you, and there is no God but you, as we have heard with our own ears.",
reference: {
text: "2 Samuel 7:22",
book_code: "2SA",
chapter: 7,
verse: 22
},
version: {
id: 111,
code: "NIV"
}
}
## Bible Version [/versions]
### List all Bible versions [GET /versions?lang={lang}]
Retrieve supported Bible versions
+ Parameters
+ lang (required, string) ... Filter Bible version by language
+ Request (application/json)
+ Response 200 (application/json)
+ Body
[
{
id: 193,
code: "VB1925"
},
{
id: 151,
code: "RVV11",
}
]
### Get Bible version infomation [GET /versions/{id_or_code}]
Retrieve supported Bible versions
+ Parameters
+ id_or_code (required, string|number) ... ID or code of Bible version
+ Request (application/json)
+ Response 200 (application/json)
+ Body
[
{
id: 193,
code: "VB1925"
},
{
id: 151,
code: "RVV11",
}
]