Install dependencies
pip install -r requirements.txt
- Create and config env file
- Run
make migrate
andmake run
/shortener/api/v1/shortener/
: Get all the URLs. response =List[(id: string, url: string)]
/shortener/api/v1/shortener/
: Create URL. body =(url: string)
/shortener/api/v1/shortener/${id}
: Get URL by id. response =(id: string, url: string)
/shortener/docs
: Documentation