The project covers 6 endpoints in the assessment. They are as follows:
- Add a new customer. {http://127.0.0.1:8000/api/add-customer/}
- Retrieve all customers. {http://127.0.0.1:8000/api/get-customers/}
- Retrieve a customer’s info by Email or phone number. "{http://127.0.0.1:8000/apiget-customer-phone/}"
- Update Customer info. {http://127.0.0.1:8000/api/update-customer/}
- Add a new account to an existing customer. {http://127.0.0.1:8000/api/add-account/}
- Retrieve all accounts of a customer using email or phone number. {http://127.0.0.1:8000/api/get-accounts-phone/}
- Delete an account by account number. {http://127.0.0.1:8000/api/delete-account}
- Delete a customer and all linked accounts. {http://127.0.0.1:8000/api/delete-customer}
- Clone the repository
git clone https://github.com/mikekwabs/stanbic-api.git
then..
- Change directory to the project
cd into stanbic
then..
- Install dependencies
run pip install -r requirement.txt
then..
- run the development server
run python manage.py runserver
git clone https://github.com/mikekwabs/stanbic-api.git
then..
cd into stanbic
then..
run pip install -r requirement.txt
then..
run python manage.py runserver
Next:
- Implement signals
Please send a PR if you interested in expanding the database or any suggestions you think will be beneficial. Thank you