-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebApplication4.http
More file actions
49 lines (37 loc) · 1.09 KB
/
WebApplication4.http
File metadata and controls
49 lines (37 loc) · 1.09 KB
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
@url = http://localhost:5286/api
@token =eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOiI2Iiwic2lkIjoiNiIsIm5hbWUiOiJhbHlhYXJpIiwiZmlyc3ROYW1lIjoi2YXYrdmF2K8iLCJqdGkiOiIxNDhlZDM4YS00ZGI5LTQwY2UtOTVjOC1jNjBmMDNiMjJlN2MiLCJyb2xlIjoiVmlzaXRvciIsImV4cCI6MTczMDcwODE5OCwiaXNzIjoid3d3LmFseWFhcmkuY29tIiwiYXVkIjoid3d3LmFseWFhcmkuY29tIn0.aJTer3lp7qjv4KDd6asWnjhefNzxnoI8i7uSfilJFpQ
GET {{url}}/Employees/
Accept: application/json
apI-key: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Authorization: Bearer {{token}}
###
GET {{url}}/Employees/20
Accept: application/json
###
POST {{url}}/Employees
Content-Type:application/json
{
"name": "Ahamed Alyaari2",
"phone": "7777232",
"email": "Alyaari2@gmail.com"
}
###
POST {{url}}/account/register
Content-Type:application/json
Authorization: Basic YWRtaW46cGFzc3dvcmQ=
{
"firstName": "ahmed",
"lastName": "ali",
"userName": "ahmed",
"email": "ahmed@g.com",
"password": "123456",
"confirmPassword": "123456",
"isAdmin": true
}
###
POST {{url}}/account/login
Content-Type:application/json
{
"userName": "ahmed",
"password": "123456"
}