-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequests.http
More file actions
47 lines (32 loc) · 890 Bytes
/
requests.http
File metadata and controls
47 lines (32 loc) · 890 Bytes
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
### Users
GET http://localhost:3000/api/users
### New User
POST http://localhost:3000/api/users/new
content-type: application/json
{
"username": "spooky",
"password": "Password@123",
"email": "spooky@gmail.com",
"displayname": "pop"
}
### User :id
GET http://localhost:3000/api/user/67220311ee4da8da85ca7e88
### Update Password
PATCH http://localhost:3000/api/user/67220311ee4da8da85ca7e88/updatePassword
content-type: application/json
{
"password": "Sussy@123"
"currentpassword": "Hello@123"
}
### Update User data
PATCH http://localhost:3000/api/user/67220311ee4da8da85ca7e88/update
content-type: application/json
{
"displayname": "tat",
"email": "69@gmail.com",
"username": "tat69"
}
### Delete User
DELETE http://localhost:3000/api/user/6721d6501c2dcc737fdfa4c2/delete
###
POST http://b1g.ooo/player_api.php?username=7701&password=7701