- Python 3.10
- SQLite (or another relational database of your choice)
-
Clone the repository:
git clone https://github.com/your-username/your-repo.git cd your-repo -
Create and run an active environment
python -m venv venv
In windows:
venv\Scripts\activate
-
Install the dependencies with
pip install -r requirements.txt -
Inside activated venv, you can run the application by
python app.py
- Endpoint:
/api/v1/users/all - Method:
GET
- Endpoint:
/api/v1/users/register - Method:
POST
- Endpoint:
/api/v1/users/login - Method:
POST
- Endpoint:
/api/v1/users/<user-id>/contacts - Method:
POST
- Endpoint:
/api/v1/users/<user-id>/contacts - Method:
GET
- Endpoint:
/api/v1/spams - Method:
POST
- Endpoint:
/api/v1/spams - Method:
GET
- Endpoint:
/api/v1/search?q=<name> - Method:
GET
- Endpoint:
/api/v1/search?q=<phone-number> - Method:
GET