- MongoDB - To Store Orders and Users information
npm install mongoose
-POSTMAN - Helps to Build, Test, Debug, and Document APIs-much-faster.
-VS Code - Most Popular and Most Used Code Editor that lets you write any Programming Language you love.
-JWT - JSON WEB TOKEN - Never blocks the business to be dependent on just one server. Security is top Notch.
-Git - A free and open source version control system that powers more than 70% of the world's application.
-GitHub - Well, Github has become my favorite platform to read, contribute, and share projects code.
-
Request: Add User and Request JSON web Token for Auth
-
Headers
Content-type: application/json
-
Body
{ "name": "", "email": "", "password": "" }
-
-
Response: 200 (application/json)
-
Body
{ "token": "" }
-
-
Request: Login with credentials to receive a JSON web token
-
Headers
Content-type: application/json
-
Body
{ "email": "", "password": "" }
-
-
Response: 200 (application/json)
-
Body
{ "token": "" }
-
-
Request: Update Users Info and Get msg and the User
-
Headers
Content-type: application/json x-auth-token: YOURJWT
-
Body
{ "email": "", "password": "" }
-
-
Response: 200 (application/json)
-
Body
{ "msg": "", "user": {}, }
-
-
Request: Send Mentor Booking Id and receive checkout url and Order Details;
-
Headers
Content-type: application/json
-
Body
{ "bookingId": 12 }
-
-
Response: 200 (application/json)
-
Body
{ "url": "", "orderDetails": {}, }
-
-
Request: Send Mentor Booking Id and receive checkout url and Order Details;
-
Headers
Content-type: application/json x-auth-token: YOURJWT
-
Body
{ "bookingId": 12 }
-
-
Response: 200 (application/json)
-
Body
{ "url": "", "orderDetails": {}, }
-
Thanks, Nitesh