A basic client app is also available. Bread-Client
Bread uses JWT for authentication. All the requests needs to add authorization header in order to get the resposne. Access token is sent by server after a succesful login. Token expires after 48 hour.
POST https://breadapp-test.herokuapp.com/signup
// username & email are unique values
{
"username": "Simon",
"email": "simon@yahoo.com",
"password": "easy_password"
}
POST https://breadapp-test.herokuapp.com/login
{
"email": "simon@yahoo.com",
"password": "easy_password"
}
Following API's need access token to function properly
Authorization: Bearer <ACCESS TOKEN>
GET https://breadapp-test.herokuapp.com/token/extend
Returns a new access token for use.
GET https://breadapp-test.herokuapp.com/expenses
POST https://breadapp-test.herokuapp.com/expenses
GET https://breadapp-test.herokuapp.com/expenses/id