-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUserManagementAPI.http
47 lines (36 loc) · 1002 Bytes
/
UserManagementAPI.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
@UserManagementAPI_HostAddress = http://localhost:5150
@AuthorizationToken = Bearer valid-token
### Get all users
GET {{UserManagementAPI_HostAddress}}/api/users
Content-Type: application/json
Authorization: {{AuthorizationToken}}
###
### Get a specific user by ID
GET {{UserManagementAPI_HostAddress}}/api/users/1
Content-Type: application/json
Authorization: {{AuthorizationToken}}
###
### Add a new user
POST {{UserManagementAPI_HostAddress}}/api/users
Content-Type: application/json
Authorization: {{AuthorizationToken}}
{
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]"
}
###
### Update an existing user
PUT {{UserManagementAPI_HostAddress}}/api/users/1
Content-Type: application/json
Authorization: {{AuthorizationToken}}
{
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]"
}
###
### Delete a user by ID
DELETE {{UserManagementAPI_HostAddress}}/api/users/1
Content-Type: application/json
Authorization: {{AuthorizationToken}}