A simple REST API built with FastAPI for managing student records.
- FastAPI-based REST API
- Retrieve student information
- JSON response support
- Dockerized application
- Unit testing support
- CI/CD workflow integration
. ├── .github/workflows/ ├── Dockerfile ├── main.py ├── requirements.txt └── test_main.py
GET /
Response:
{ "message": "Student API" }
GET /students
Response:
[ { "id": 1, "name": "Rahul" }, { "id": 2, "name": "Amit" } ]
git clone https://github.com/rathansai-dev/students-api.git
cd students-api
python -m venv venv
Windows:
venv\Scripts\activate
Linux/Mac:
source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload
Server will start at:
Swagger UI:
ReDoc:
Build Image
docker build -t students-api .
Run Container
docker run -p 8000:8000 students-api
pytest
- Python
- FastAPI
- Uvicorn
- Pytest
- Docker
- GitHub Actions
- CRUD operations for students
- Database integration
- Authentication & Authorization
- Pagination and filtering
- Deployment to cloud platforms
Rathan Sai