- Python/Java/Scala
- Postgres
- API Gateway
- File server
- Docker & Docker-Compose
- Installed Docker
- Installed depend libs
make helpto see all available instructionsmake runto build & run projectmake db-initto init db for services
- Run
make runin terminal window - If you are running project locally for the first time, open new window and run
make run && make db-init
- Logging & Tracing
Create New User
Example Input:
{
"first_name": "Kirk",
"last_name": "Brian",
"username": "brian-k",
"password": "mypassword1"
}Example Response:
{
"id": 1
}Generate JWT Token
Example Input:
{
"username": "brian-k",
"password": "mypassword1"
}Example Response:
{
"access_token": "8vZ2F0ZXdheTo4MDgwI<...>"
}Return User Info
HTTP Headers:
Authorization: Bearer <access_token>
Example Response:
{
"id": 1,
"first_name": "Kirk",
"last_name": "Brian",
"username": "brian-k",
"password": "mypassword1"
}Create New Task
HTTP Headers:
Authorization: Bearer <access_token>
Example Input:
{
"title": "Task 1"
}Example Response:
{
"id": 1
}Get All Tasks
HTTP Headers:
Authorization: Bearer <access_token>
Example Response:
{
"tasks": [
{
"id": 1,
"title": "Task 1",
"created_at": "2022-10-03T016:19:46.674946Z",
"user_id": 1
}
]
}Get Task By Id
HTTP Headers:
Authorization: Bearer <access_token>
Example Response:
{
"id": 1,
"title": "Task 1",
"created_at": "2022-10-03T016:19:46.674946Z",
"user_id": 1
}