Skip to content

Latest commit

 

History

History
94 lines (67 loc) · 2.83 KB

README.md

File metadata and controls

94 lines (67 loc) · 2.83 KB

API_2.0

This repo contains all the code required for the Postman API 2.0 Workshop 😃

Tech Stack

M - MongoDB E - Express R - ReactJS N - NodeJS

Project Structure

  • backend - This folder contains all the backend related code while includes Server code, APIs and middlewares

  • workshop-frontend - This frontend contains all the frontend related code.

HOSTED URLs

The backend and frontend of this repository is hosted separately and you can find it at the below links -

Add your detail to the live website

Please follow the below steps in order to see your details at https://workshop-frontend.netlify.app/

  1. Visit postman web at https://web.postman.co/

  2. Register Yourself 🖥️

    Please follow the below steps to register yourself -

    • Select the Request type sas POST
    • Put the URL as https://api-2-0-5hx9.onrender.com/api/register
    • Select Body -> JSON(from type dropdown) and fill teh below details in there
    {
       "name": "",
       "email": "",
       "password": "",
       "confirm_password": ""
     }
    
    
    • Click on the send button
    • You should get a status of 200 showing that your request is done correctly

please see the below screenshot to take the reference of the input and output data

register api

  1. Login Yourself 🔐

    Please follow the below steps to register yourself -

    • Select the Request type sas POST
    • Put the URL as https://api-2-0-5hx9.onrender.com/api/login
    • Select Body -> JSON(from type dropdown) and fill teh below details in there
    {
       "email": "",
       "password": ""
     }
    
    • Click on the send button
    • You should get a status of 200 showing that your request is done correctly

please see the below screenshot to take the reference of the input and output data

login api

  1. Add your details to the Database 💾

    Please follow the below steps to register yourself -

    • Select the Request type sas POST
    • Put the URL as https://api-2-0-5hx9.onrender.com/user/add-user
    • Select Body -> JSON(from type dropdown) and fill teh below details in there
    {
       "name": "",
       "description": "",
       "anything_for_world": ""
     }
    
    • Click on the send button
    • You should get a status of 200 showing that your request is done correctly

please see the below screenshot to take the reference of the input and output data

login api

  1. Visit the webiste and see your details added in there 😄

Please feel free to come up with a issue/PR if you think this repository needs any kind of improvement!