module
0.0.0-20230809224755-ee24254ad61a
Repository: https://github.com/darchlabs/backoffice.git
Documentation: pkg.go.dev
# README
Backoffice
DarchLabs backoffice api
API spec
GET /api/v1/health
Response
Status: 200
{
"status": "running"
}
POST /api/v1/users/signup
Request
{
"email": "[email protected]",
"name": "jon doe",
"password": "password124"
}
Response
Status: 201
null
POST /api/v1/users/login
Request
{
"email": "[email protected]",
"password": "password124"
}
Response
Status: 201
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Impkb2VAZ21haWwuY29tIiwiZXhwIjoxNzE5MTU3MjczfQ.MfaT_5lrapX4sapI992uQodW0xHsbv4UeNf0guCUEaA"
}
POST /api/v1/users/api-key
Request
{
"days_interval": 30
}
Response
Status: 201
{
"api_key": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImY1ZTNiNTQyLWMwY2ItNDJmMi1hMjJlLWNlOWNkMGQzMTk3YyIsImV4cCI6MTY4ODExMjY3OX0.VXjFWxHXlW_TlkZ4HN_n0PmGqiaC9-O38LNWKHN1e2A"
}
POST /api/v1/users/tokens
Request
{
"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Impkb2VAZ21haWwuY29tIiwiZXhwIjoxNzE3MDU1MDIwfQ.1ifMxIZ1wnNAjU2i-Kx7iEALVoIFaUrAQfWLAiLFnds"
}
Response
Status: 200
{
"user_id": "f5e3b542-c0cb-42f2-a22e-ce9cd0d3197c"
}
POST /api/v1/users/valid-api-key
Request
{
"api_key": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImY1ZTNiNTQyLWMwY2ItNDJmMi1hMjJlLWNlOWNkMGQzMTk3YyIsImV4cCI6MTY4ODExMjY3OX0.VXjFWxHXlW_TlkZ4HN_n0PmGqiaC9-O38LNWKHN1e2A"
}
Response
Status: 200
{
"user_id": "f5e3b542-c0cb-42f2-a22e-ce9cd0d3197c"
}
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author