A simple REST API capable of CRUD operations on a "person" resource
- Getting Started
- API Endpoints
- Database
- Testing
- Deployment
- Built With
- Contributing
- License
- Acknowledgments
All dependencies are in the requirements.txt file
Use the steps below to run the personif-api locally
- Clone the repository git clone hngx-person-api
- Navigate to the Project Directory cd **person_api"
- Activate the virtualenv venv\Scripts\activate
- Install Dependencies pip install -r requirements.txt
- Apply Database Migration python manage.py migrate
- Create a Superuser (optional) python manage.py createsuperuser
- Run the Development Server: python manage.py runserver
These are the list of the endpoints
GET /api/
: List all persons.POST /api/
: Create a new person.GET /api/user_id/
: Retrieve details of a person by name.PUT /api/user_id/
: Update details of a person by name.DELETE /api/user_id/
: Delete a person by name.
http
GET /api/persons/Alice/
"id": 1,
"name": "Alice",
"dob": "1990-01-15",
"email": "alice@example.com",
"phone_number": "+1234567890",
Contributions are warmly welcomed. You can fork the repo and add some features, as well as report bugs.