This repository has been archived by the owner on Feb 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
apiary.apib
94 lines (54 loc) · 1.81 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
83
84
85
86
87
88
89
90
91
92
93
94
FORMAT: 1A
HOST: https://sayonika.moe/api/v1
# Velvet API
This is the official documentation for the Sayonika Project/Velvet.
We worked very hard on the documentation, so if you find any errors, let us know in the [GitHub Repository](https://github.com/Sayo-nika/Backend).
Keep in mind we won't document parts of API that consumers should not touch, so if you are a author that wants to use this backend, refer to the in-code documentation.
## Mods [/mods]
### GET
Lists all mods - paginated into 100 entries per request.
+ Response 200 (application/json)
{
"total": 420,
"page": 2,
"limit": 10,
"results": [Mod, Mod, ...]
}
## Mod Specific [/mods/{mod_id}]
+ Parameters
+ mod_id (Snowflake<Number>) - ID of the Mod in the form of a number. Leave it empty if you don't have a specific mod to search.
### GET
Gets info from the mod.
+ Response 200 (application/json)
{
"title": "",
"category": 2,
"download_url": "",
"..."
}
+ Response 404 (text/plain)
Entry does not exist.
## Users [/users]
### GET
Lists all user - paginated into 100 entries per request.
+ Response 200 (application/json)
{
"total": 420,
"page": 2,
"limit": 10,
"results": [User, User, ...]
}
## User Specific [/user/{user_id}]
+ Parameters
+ user_id (Snowflake<Number>) - ID of the User in the form of a number.
### GET
Gets info of user.
+ Response 200 (application/json)
{
"username": "",
"bio": 2,
"connections": [Connection, Connection, ...],
...
}
+ Response 404 (text/plain)
Entry does not exist/ wrong ID.