API endpoints to create
Method Path Function GET /user/:email/api Fetches details of user with the given email POST /user/:email/api Creates a new user document in the database PUT /user/:email/api Updates a user document DELETE /user/:email/api Deletes a user document from the database
All the API path names are same but their methods are different
user/[email protected]/api