Skip to content

MA 2020 | API Documentation for the internal Trable API

Notifications You must be signed in to change notification settings

nickcrd/trable-api-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Trable API Documentation

Welcome to the Trable API Documentation. This GitHub Repo describes the API provided by the main Trable application which is used by the frontend and client mobile apps.


Warning - Work In Progress

This project is still very early in the design phase and is subject to change. New changes will be progressively added to this documentation and some functionality may be completely scrapped.


Authentication

Most API routes require authentication. This is done via JWT (JSON Web Tokens) authentication. The key is provided via the Authorization header as described below:

Authorization: Bearer <JWT>

The JWT payload contains this data:

key description
id The user/entity id
iat Timestamp when the token was issued, used to invalidate old tokens

Responses & Error Handling

The API will send responses in the JSON format. When an error occurrs while executing an API request, a JSON payload including a status code (which corresponds to the HTTP status code) and an error message will be returned. See example below:

{
  "status": 500,
  "message": "A description of the error occurred"
}

Routes

Browse available API routes doucmentation by clicking on the link below

About

MA 2020 | API Documentation for the internal Trable API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published