API endpoints specifications
Last updated 2 years ago
Get the user record belonging to the authentication token Authentication: required
GET /api:auth/auth/me HTTP/1.1 Host: api.answr.space Authorization: Bearer JWT Accept: */*
Success!
{ "id": 1, "created_at": 1, "name": "text", "email": "name@gmail.com", "role": "admin", "company": "text", "active_requests": 1 }
Login and retrieve an authentication token Authentication: not required
POST /api:auth/auth/login HTTP/1.1 Host: api.answr.space Content-Type: application/json Accept: */* Content-Length: 44 { "email": "name@gmail.com", "password": "text" }
{ "authToken": "text", "user": "text" }
Signup and retrieve an authentication token Authentication: not required
POST /api:auth/auth/signup HTTP/1.1 Host: api.answr.space Content-Type: application/json Accept: */* Content-Length: 75 { "name": "text", "email": "name@gmail.com", "password": "text", "company": "text" }