Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 918 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 918 Bytes

URL Shortener Service with FastAPI、MongoDB and Pytest

Build the image and run the container:

docker-compose up -d --build

Update the image and run unit test:

docker-compose exec web pytest .

Test out the following routes:

  1. http://localhost:8002/
  2. http://localhost:8002/docs
  3. http://localhost:8002/api/v1/shorten
  4. http://localhost:8002/api/v1/shorten/batch
  5. http://localhost:8002/api/v1/shorten/batch_conc
  6. http://localhost:8002/api/v1/{short_url}
  7. http://localhost:8002/api/v1/urls/delete/{short_url}
  8. http://localhost:8002/test-delete