File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # rest-api-flask
1+ # rest-api-flask (Flask + MongoDB)
2+
3+ REST API built with Flask and Flask-RESTful, using MongoDB via MongoEngine.
4+ The project focuses on clean configuration per environment, containerized setup, and automated testing/pipeline.
5+
6+ ## Tech Stack
7+ - Python + Flask + Flask-RESTful
8+ - MongoDB (MongoEngine)
9+ - Docker / Docker Compose
10+ - Pytest (fixtures)
11+ - GitHub Actions (CI)
12+ - Insomnia (local + production collections)
13+
14+ ## Features (Current)
15+ - Create user (POST)
16+ - List users (GET)
17+ - Get user by CPF (GET)
18+ - Update user (PATCH) — implemented
19+ - CPF validation (check digits)
20+ - Proper error handling for user not found
21+ - Environment configs (dev/prod/mock)
22+ - Application Factory pattern (decoupled app)
23+ - Dockerized API + MongoDB (Compose)
24+ - CI pipeline with secrets
25+
26+ ## API Endpoints (Example)
27+ Base URL: ` http://localhost:5000 `
28+
29+ - ` GET /health ` (planned)
30+ - ` POST /users `
31+ - ` GET /users `
32+ - ` GET /users/<cpf> `
33+ - ` PATCH /users/<cpf> `
34+ - ` DELETE /users/<cpf> ` (planned)
35+
36+ ## Running locally (venv)
37+ ``` bash
38+ python -m venv .venv
39+ source .venv/bin/activate
40+ pip install -r requirements.txt
41+ python wsgi.py
You can’t perform that action at this time.
0 commit comments