teresantns / DesafioConstrudelas

Final project for the Construdelas academy, in which I built a loyalty program API
1 stars 0 forks source link

User related endpoints #7

Closed teresantns closed 2 years ago

teresantns commented 2 years ago

Creating endpoints relating to the client class on the database

This includes coding the endpoint view on views.py, and including the corresponding path on urls.py

Useful endpoints:

These endpoints are related to the Django-livre banking API we presented.

This project closely relates to the group project we've done previously, since it was made for easy integration within the projects' features (e.g. the Client model is the same for both projects, with the exception that this one adds the 'points' field for the loyalty program).

Why are they useful?

Considering that our client can accept an invitation to join the loyalty program, it makes sense that the user is registered on the database, and can edit their information. This way, we make sure that the referral acceptance ensures that the new client is registered, and we must provide a way for information update. In addition to that, it is also natural that the user can search for information on the user who referred them, thus, the need for a endpoint. Also, the referent can check their points after their recommendations. These endpoints can be later enhanced for these specific purposes, in conjunction with the front end team.