-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserRequests.http
85 lines (66 loc) · 1.75 KB
/
userRequests.http
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
@url = http://localhost:7000
### GET ALL USERS ###
GET {{url}}/user
### GET SEARCH RESULT ###
GET {{url}}/user/search/N
### GET USER BY ID ###
GET {{url}}/user/62a6f394c8e66d8b453536b9
### POST/REGISTER NEW USER ###
POST {{url}}/user/register
Content-Type: application/json
{
"firstName": "jadel",
"lastName": "smith",
"profileName": "jade_smith",
"profilePicture": "https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50",
"email": "[email protected]",
"password": "supPergutesgeheimespassword-123",
"confirmPassword": "supPergutesgeheimespassword-123",
"userAddress": {
"street": "123 Main St",
"city": "city",
"zip": "12345",
"country": "france"
}
}
### POST/REGISTER NEW USER ###
POST {{url}}/user/register
Content-Type: application/json
{
"firstName": "Peter",
"lastName": "Testman",
"profileName": "TestiPet",
"profilePicture": "",
"email": "[email protected]",
"password": "supPergutesgeheimespassword-123",
"confirmPassword": "supPergutesgeheimespassword-123",
"userAddress": {
"street": "test-allee.",
"city": "Testhausen",
"zip": "28133",
"country": "germany"
},
"status":"Token test"
}
### POST / USER LOGIN ###
POST {{url}}/user/login
Content-Type: application/json
{
"email": "[email protected]",
"password": "supPergutesgeheimespassword-321"
}
### UPDATE USER DATA ###
PATCH {{url}}/user/62c55076acc55d4c35d84627
Content-Type: application/json
{
"password":"supPergutesgeheimespassword-321",
"status": "new password test"
}
### DELETE USER ###
DELETE {{url}}/user/62c424871bb5f1bbd8b9236b
### USER LOGOUT ###
POST {{url}}/user/logout
Content-Type: application/json
### FOLLLOW A USER ###
PATCH {{url}}/user/62c424871bb5f1bbd8b9236b/following
Content-Type: application/json