An API REST to shorten URLs
- FastAPI - FastAPI framework, high performance, easy to learn, fast to code, ready for production
- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper with SQLite3 implementation
- Pytest - The pytest framework makes it easy to write small, readable tests, and can scale to support complex functional testing for applications and libraries.
- Python 3.8+
- Docker
- Docker Compose
docker-compose updocker-compose run --rm api pytest
https://shortener-challenge.herokuapp.com/docs
| Field | Type | Description |
|---|---|---|
| id | Integer | Unique integer identifier. |
| url | String | URL/URI with maximum length of 2083 chars to respect the Microsoft browser spec. |
| code | String | 4-digit code of random letters. |
| created_at | Datetime | Timestamp to track row creation. |