This project is a simple Django REST API that allows you to perform CRUD (Create, Read, Update, Delete) operations on "persons." You can use this API to add, retrieve, update, and delete information about individuals. The API is designed to be flexible and secure, handling dynamic input parameters for operations like searching for persons by name.
Table of Contents:
Before setting up and running the API, ensure you have the following prerequisites installed:
- Python (3.6 or higher)
- Django
- Django REST Framework
To use this Django REST API, follow these instructions:
- Installation:
-
Clone the repository to your local machine:
git clone https://github.com/codynego/HNG_stage2.git cd your-repo
-
Install project dependencies using pip:
pip install -r requirements.txt
-
Apply database migrations:
python manage.py makemigrations python manage.py migrate
-
Start the development server:
python manage.py runserver
-