Reupload
Some checks are pending
Run tests / build (6.0, 18.x) (push) Waiting to run

This commit is contained in:
Vyn 2025-06-11 09:50:52 +02:00
commit f265233a06
Signed by: vyn
GPG key ID: E1B2BE34E7A971E7
168 changed files with 31208 additions and 0 deletions

View 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

View 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"
}