Skip to content

onbns/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

server.onbns.com RESTful API v1 documentation

BaseURI

notes: The first three route are publicly available.

API Usage & Response

to use /api route, complete the following stpes:

  • Login onbns to signup
  • A auth_jwt_token will be generated and stored in your browser localStorage
  • This token will expired in 7 days, to request an extended token, contact us
  • Every API endpoint requires an Authentication header

Example:

request.headers['Authorization'] = `token`

Endpoints

Auth

POST /auth/signupWithEmail

-H 'Content-Type: application/json' -d {"email":"[email protected]"}

Account

GET https://server.onbns.com/api
  • good response
{"message": "/api connected"}
  • bad response
"Please make sure your request has an Authorization header."

Admin

GET https://server.onbns.com/api/admin
  • good response:
{"message": "/api/admin connected"}

Releases

No releases published

Packages

No packages published