Baget synchronize server written in rust, actix-web and diesel with jwt authentication
- Body:
{
"username": "nam7v3",
"password": "nam7v3",
}
- Response:
{
"status": "success" // "fail"
}
- Body:
{
"username": "nam7v3",
"password": "nam7v3"
}
- Response:
{
"status": "success", // "fail"
"token": "<TOKEN>" // "message": "..."
}
- Header:
Authorization: Bearer <TOKEN>
- Response:
{
"status": "success", // "fail"
"data": [
"transactions": [
{
"transaction_id": 1,
"entry_date": "Saturday",
"amount": 32.0,
"account": "account",
"category": "category",
"transaction_type": "type",
"transaction_title": "title"
}
// ...
],
"expenses": [
{
"expense_id": 1,
"entry_date": "Saturday",
"amount": 30.0,
"expense": "expense",
}
// ...
]
]
}
- Header:
Authorization: Bearer <TOKEN>
- Body
{
"transactions": [
{
"entry_date": "Saturday",
"amount": 32.0,
"account": "account",
"category": "category",
"transaction_type": "type",
"transaction_title": "title"
}
// ...
],
"expenses": [
{
"entry_date": "Saturday",
"amount": 30.0,
"expense": "expense",
}
// ...
]
}