-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiDetails.js
43 lines (42 loc) · 1.14 KB
/
apiDetails.js
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
//An Object containing details about routes available in this API
export const apiDetails = {
message: "anonymsg REST API",
endpoints: [
{
url: "/user/login",
params: ["username", "password"],
description: "Allow the user to login by generating a jwt",
},
{
url: "/user/logout",
params: [],
description: "Allow the user to logout from the device",
},
{
url: "/user/register",
params: ["name", "username", "password"],
description: "Allow new user to register for the service",
},
{
url: "/user/dashboard",
params: [],
description:
"Returns Username,Name and Messages of Logged In User (User should be logged in to have access)",
},
{
url: "/user/password",
params: ["username", "password", "newPassword"],
description: "Change password of existing user",
},
{
url: "/user/:username",
params: [],
description: "Get details of the specific user",
},
{
url: "/message/:username",
params: ["message"],
description: "Sends message to the corresponding username",
},
],
};