-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
44 lines (33 loc) · 1.05 KB
/
requests.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
@base = http://localhost:3000/ppg-api/v1
@json = application/json
@jwt = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI5NmE1ZjljMC1kYzAyLTQ0MTItYTA5ZC1jMGY0NTFmOGZiMjMiLCJpYXQiOjE2NTIyMzI4MTUsImV4cCI6MTY1MjI1NDQxNX0.-J5jjF5LnPqFuNcRYb0VCs-6IXeb34-haqZfr5-_Dc4
### LOGIN
POST {{base}}/auth/login
Content-Type: {{json}}
{
"email": "jeanpier@gmail.com",
"password": "123456"
}
### GET TECHNOLOGIES
GET {{base}}/technologies
Authorization: Bearer {{jwt}}
### GET TECHNOLOGY BY ID
GET {{base}}/technologies/6d5158c9-1e89-47c9-8809-1dd7a9d65da8
Authorization: Bearer {{jwt}}
### GENERATE PROFILE
POST {{base}}/professional-profiles
Authorization: Bearer {{jwt}}
Content-Type: {{json}}
{
"jobTitle": "Java Developer",
"location": "Quito"
}
### GET RANDOM PROFILE
GET {{base}}/professional-profiles/random
Authorization: Bearer {{jwt}}
### GET PROFILE BY ID
GET {{base}}/professional-profiles/c9231a28-ffd2-4de6-b960-bd617d91cbcd
Authorization: Bearer {{jwt}}
### GET COUNT
GET {{base}}/professional-profiles/count?type=frameworksss
Authorization: Bearer {{jwt}}