- Python 3.12
- FastAPI - web framework
- SQLAlchemy (async) - ORM
- Uvicorn - ASGI server
- Pydantic - data validation
- JWT - authentication
Clone the repository:
git clone https://github.com/Makpukich/Milashki.git
cd milashki Run:
uvicorn main:app --reload After launching, the API will be available at: http://localhost:8000
POST /auth/register - User registration
POST /auth/login - Login (get JWT)
GET /auth/me - Current user info
GET /accounts/ - List all accounts
POST /accounts/ - Create an account
GET /accounts/<id> - Get an account
PUT /accounts/<id> - Update an account
DELETE /accounts/<id> - Delete an account
GET /subscriptions/ - List all subscriptions
POST /subscriptions/ - Create a subscription
GET /subscriptions/<id> - Get a subscription
PUT /subscriptions/<id> - Update a subscription
DELETE /subscriptions/<id> - Delete a subscription
GET /User_subs/ - All user subscriptions
POST /User_subs/ - Add a subscription to a user
GET /User_subs/<user_id>/<subscription_id> - Specific user subscription
GET /subscriptions/<user_id> - Subscriptions of a specific user
DELETE /subscriptions/<user_id>/<sub_id> - Remove a subscription from a user