Building our Login API
In this section, if you attempt to code the endpoint yourself before reading the code, you are going to get the opportunity to test our knowledge of how to add API endpoints. The only thing that we are going code that has not been coded before is the API endpoint in the networking layer. To add the Login API endpoint, we must carry out the following steps:
- Create a get user by email process in the data access
- Create a login API function in the core
- Create a login API endpoint in the networking
We can start with the data access layer.