Skip to content

darchlabs/backoffice

Repository files navigation

Backoffice

DarchLabs backoffice api

API spec

GET /api/v1/health

Response

Status: 200

{
	"status": "running"
}

POST /api/v1/users/signup

Request

{
	"email": "jdoe@gmail.com",
	"name": "jon doe",
	"password": "password124"
}

Response

Status: 201

null

POST /api/v1/users/login

Request

{
	"email": "jdoe@gmail.com",
	"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"
}

About

DarchLabs backoffice API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published