This codebase tries to utilize the Clean Code Architecture
I am using MongoDB Atlas as Database Service
I make use of JsonWebTokens for authentication
The base url
for the CRUD
methods is https://us-central1-beginner-cloud-functions.cloudfunctions.net/userApi
\
Requests can be made through Postman
The required field values are
- name
- password
The required parameter is the id
of the User
To update a user, the required parameter is the id
of the user.
A x-auth-token
header with the token value must also be present to be able to update a user
To delete a user, the required parameter is the id
of the user.
A x-auth-token
header with the token value must also be present to be able to update a user
The base url
for the Authentication
is https://us-central1-beginner-cloud-functions.cloudfunctions.net/authApi
In order to login, the required field values are
- password
To get the details of a logged in user, a x-auth-token
header with the token value must be provided.