Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.59 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.59 KB

Stanbic Bank API Assessment

Link to the assessment

{https://drive.google.com/file/d/1kabiADaQmHQRHQoe3u9dmmfCsQlZkj1o/view?usp=sharing}

The project covers 6 endpoints in the assessment. They are as follows:

  1. Add a new customer. {http://127.0.0.1:8000/api/add-customer/}
  2. Retrieve all customers. {http://127.0.0.1:8000/api/get-customers/}
  3. Retrieve a customer’s info by Email or phone number. "{http://127.0.0.1:8000/apiget-customer-phone/}"
  4. Update Customer info. {http://127.0.0.1:8000/api/update-customer/}
  5. Add a new account to an existing customer. {http://127.0.0.1:8000/api/add-account/}
  6. Retrieve all accounts of a customer using email or phone number. {http://127.0.0.1:8000/api/get-accounts-phone/}
  7. Delete an account by account number. {http://127.0.0.1:8000/api/delete-account}
  8. Delete a customer and all linked accounts. {http://127.0.0.1:8000/api/delete-customer}

To get started.....

  • 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
    

Next:

  1. Implement signals

Please send a PR if you interested in expanding the database or any suggestions you think will be beneficial. Thank you