Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 593 Bytes

README.md

File metadata and controls

48 lines (33 loc) · 593 Bytes

Simple Flask API

  • Allow to Login and register users.
  • Get current balance for user.
  • Transactions between two users.

Endpoints

Version: /api/v1

GET /user/balance

Note: Token-Barer Authentication required.

POST /user/payment/send

Request:

{
  "to": "test2@example.com",
  "amount": 10
}

Note: Token-Barer Authentication required.

POST /auth/login

Request:

{
  "email": "test@example.com",
  "password": "some_pass"
}

POST /auth/register

Request:

{
  "email": "test@example.com",
  "password": "some_pass"
}