This commit is contained in:
commit
f265233a06
168 changed files with 31208 additions and 0 deletions
3
server/requests/.env-example
Normal file
3
server/requests/.env-example
Normal file
|
@ -0,0 +1,3 @@
|
|||
API_ADMIN_AUTHORIZATION=replace-me ## Must match the conf.env
|
||||
BEARER_TOKEN=random_string
|
||||
HOST=127.0.0.1:8080
|
36
server/requests/login.http
Normal file
36
server/requests/login.http
Normal file
|
@ -0,0 +1,36 @@
|
|||
### LOGIN
|
||||
|
||||
POST http://{{HOST}}/login
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"email": "user1@email.com",
|
||||
"password": "123456"
|
||||
}
|
||||
|
||||
|
||||
{%
|
||||
local body = context.json_decode(context.result.body)
|
||||
context.set_env("BEARER_TOKEN", body.token)
|
||||
%}
|
||||
|
||||
### SIGNUP
|
||||
|
||||
POST http://{{HOST}}/signup
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"email": "user1@email.com",
|
||||
"password": "123456"
|
||||
}
|
||||
|
||||
### FORCE CHANGE PASSWORD
|
||||
|
||||
POST http://{{HOST}}/admin/change-user-password
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{API_ADMIN_AUTHORIZATION}}
|
||||
|
||||
{
|
||||
"email": "user1@email.com",
|
||||
"newPassword": "1234567"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue