Generate and return all UUIDs generated
- UUID file fields:
- ID – (mandatory, integer, unique)
- UUID – (mandatory, string, cannot be larger than 128 characters)
- timestamp – (mandatory, Datetime, cannot be in the past)
- UUID API:
- The route
UUID
will return the specific all UUIDs including a new one generated when the api was called
- The route
Before going through the steps make sure you have the following pre-installed
- Python 3.6+
- Virtualenv
- Postgresql
Make sure to download/clone this repository and navigate to the folder in your terminal. Now follow the instructions below
- Create the virtual environment.
virtualenv /path/to/venv --python=/path/to/python3
You can find out the path to your python3
interpreter with the command which python3
.
-
Set up
.env
file by duplicating the.example.env
file(and editing if required). -
Activate the environment and install dependencies.
source /path/to/venv/bin/activate pip install -r requirements\dev.linux.txt
./path/to/venv/bin/activate pip install -r requirements\dev.windows.txt
-
Launch the service
uvicorn main:app --workers 1 --host 0.0.0.0 --port 8008
When the service is running, try this link in your browser/Postman. send a GET request
127.0.0.1:8008/uuid
You can test the project with pytest by running the command. You can check Github Actions for the status of tests here
pytest
This project id based heavily on this setup Audio Files API