Skip to content

bm-commit/flask-example-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

Releases

No releases published

Packages

No packages published