This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathveritas.http
56 lines (45 loc) · 2.59 KB
/
veritas.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
@baseUrl = http://localhost:3000/api/v1
@token = eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ii1wbWFVRHVsdS1mV0NCWFp4VEdicCJ9.eyJpc3MiOiJodHRwczovL2Rldi1iLTdid3JwZy51cy5hdXRoMC5jb20vIiwic3ViIjoiYXV0aDB8NjFkZmVkMjIzNjRiMWQwMDZhZmQ5MmQ3IiwiYXVkIjoiaHR0cHM6Ly9kZXYtYi03YndycGcudXMuYXV0aDAuY29tL2FwaS92Mi8iLCJpYXQiOjE2NDIwNzM5NzEsImV4cCI6MTY0MjE2MDM3MSwiYXpwIjoiakJwUVVZbGk1dnVNYlRWakNKV3lPa1FqcHN0Q1FxWXIiLCJzY29wZSI6InJlYWQ6Y3VycmVudF91c2VyIHVwZGF0ZTpjdXJyZW50X3VzZXJfbWV0YWRhdGEgZGVsZXRlOmN1cnJlbnRfdXNlcl9tZXRhZGF0YSBjcmVhdGU6Y3VycmVudF91c2VyX21ldGFkYXRhIGNyZWF0ZTpjdXJyZW50X3VzZXJfZGV2aWNlX2NyZWRlbnRpYWxzIGRlbGV0ZTpjdXJyZW50X3VzZXJfZGV2aWNlX2NyZWRlbnRpYWxzIHVwZGF0ZTpjdXJyZW50X3VzZXJfaWRlbnRpdGllcyIsImd0eSI6InBhc3N3b3JkIn0.fJB1OQpdtPaOitXoazcSuyCwFOd62MOBENQESE7FLvZYmVU__c_OJbu3FwJn7VAl0W9QwG-aR50xEVE3Ye1KaLt6y2669DJ-b7tOmmK6IAC7fVsgbzp7bYcBTYtN21tkv1j5EneRiOzl22dEUDD3YuPWf9NsdSGW5i16mPkpzWnZA25DPiVYJPp31LPSXq4sAwQ1gjfcM_BZ5B0UyH60GkARbcAT7LLom62e4jSMbIEI5NYM2iADWexGHcRSx7yW10_o5b9Gofa5vxmxfayEWB5RBosTcnEquvZ95vvW50p13b1YJpYXqjvpC9VYyG3ygimaghePROR7w5LTnObP7g
########################################################################
########### AUTH ###########
########################################################################
### Authenticates a user
POST {{baseUrl}}/auth/login HTTP/1.1
Accept: application/json
Content-Type: application/json
{
"email": "[email protected]",
"password": "!Test1234!"
}
########################################################################
########### AUTH0 ###########
########################################################################
### Post user registration hook
POST {{baseUrl}}/auth0/hooks/post-registration HTTP/1.1
Accept: application/json
Content-Type: application/json
{
"email": "[email protected]"
}
########################################################################
########### USER ###########
########################################################################
### Get the authenticated user's profile
GET {{baseUrl}}/user HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer {{token}}
### Delete the authenticated user's account
DELETE {{baseUrl}}/user HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer {{token}}
### Register a new user
POST {{baseUrl}}/users/registration HTTP/1.1
Accept: application/json
Content-Type: application/json
{
"email": "[email protected]",
"password": "!Test1234!",
"name": "Nicolas Pearson"
}