-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp-client.http
More file actions
80 lines (56 loc) · 2.37 KB
/
Copy pathhttp-client.http
File metadata and controls
80 lines (56 loc) · 2.37 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
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
### GET ENV VARIABLES
GET http://localhost:3000/auth/env
### Update User Profile
PUT http://localhost:3000/auth/update/4
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjMsImVtYWlsIjoiYmx1ZWxpbmRhNjE4QGNvZGVtYWlsMS5jb20iLCJpYXQiOjE3NTEzNTc1MDEsImV4cCI6MTc1MTM2MTEwMX0.f0iIbwRli6_kgKLdDxIfrNydd_MJvwaWBwOJLt68tl4
{
"firstName": "Kirilov",
"lastName": "Dimovska",
"email": "kirildimov@plusfieldzone.com",
"role": "WORKER"
}
### Signup User
POST http://localhost:3000/auth/register
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjMsImVtYWlsIjoiYmx1ZWxpbmRhNjE4QGNvZGVtYWlsMS5jb20iLCJpYXQiOjE3NTEzNTc1MDEsImV4cCI6MTc1MTM2MTEwMX0.f0iIbwRli6_kgKLdDxIfrNydd_MJvwaWBwOJLt68tl4
{
"firstName": "Kiril",
"lastName": "Dimov",
"email": "kirildimov@plusfieldzone.com",
"role": "WORKER"
}
### Login User
POST http://localhost:3000/auth/login
Content-Type: application/json
{
"email": "bluelinda618@codemail1.com",
"password": "mypassword123"
}
#"email": "admin@staffhub.com",
# "password": "mypassword123"
# "password": "StrngPwd_123"
### Send Email
POST http://localhost:3000/tenants/3688f012-609e-4700-bfa8-327025200f82/email/send-email
Content-Type: application/json
x-api-key: cbaf3b6f-8c16-4066-9107-eb270a2bb3ba
{
"recipients": ["obrienadedapo09@gmail.com"],
"subject": "Test Email",
"html": "App passwords help you sign into your Google Account on older apps and services that don’t support modern security standards. App passwords are less secure than using up-to-date apps and services that use modern security standards. Before you create an app password, you should check to see if your app needs this in order to sign in.",
"text": "This is a test email sent from the Nestjs application. It is sent using the Nodemailer package."
}
### adeniyiroqeebat001@gmail.com
### RESET PASSWORD
POST http://localhost:3000/auth/reset-password
Content-Type: application/json
{
"email": "yaminahouti@taptoplab.com"
}
### Activate Account
POST http://localhost:3000/auth/activate
Content-Type: application/json
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImtpcmlsZGltb3ZAcGx1c2ZpZWxkem9uZS5jb20iLCJ0eXBlIjoiYWN0aXZhdGlvbiIsImlhdCI6MTc1MTM1NzUxOCwiZXhwIjoxNzUxMzYxMTE4fQ.x27smIBglmg9t0YCUMncML6M2NdrM3mAZ-N13OXdXTw",
"password": "mypassword123"
}