Skip to content

Instantly share code, notes, and snippets.

@Braggedtooth
Last active May 29, 2022 15:11
Show Gist options
  • Save Braggedtooth/f2aa232de9a990c05c0d2a111f38e481 to your computer and use it in GitHub Desktop.
Save Braggedtooth/f2aa232de9a990c05c0d2a111f38e481 to your computer and use it in GitHub Desktop.

Table of Contents

 1. esraserver
  1.1. Auth
  1.2. Realtors
  1.3. Reviews
  1.4. Admin
  1.5. Users
  1.6. Comments

esraserver

Auth

Request: signup

Method: POST

Request URL:

 http://localhost:3103/signup

Authentication Type: Bearer

Request: signin

Method: POST

Request URL:

http://localhost:3103/signin

Authentication Type: Bearer

Request: currentuser

Method: GET

Request URL:

http://localhost:3103/user/me

Authentication Type: Bearer

Realtors

Request: Get All Realtors

Method: GET

Request URL:

http://localhost:3103/realtor

Parameters:

type Key Value
page 2

Authentication Type: Bearer

Request: Get Realtor by ID

Method: GET

Request URL:

http://localhost:3103/realtor/get

Parameters:

type Key Value
realtorId 6243a1856fc7a41b9441bb6a

Authentication Type: Bearer

Request: Search Realtors

Method: GET

Request URL:

http://localhost:3103/r/search

Parameters:

type Key Value
query Luca

Authentication Type:Bearer

Request: Get Realtors By Company ID

Method: GET

Request URL:

http://localhost:3103/realtor/company

Parameters:

type Key Value
companyId 62439ea06fc7a41b9441a076

Authentication Type: Bearer

Reviews

Request: Get Review By Realtors ID

Method: GET

Request URL:

http://localhost:3103/reviews/realtor

Parameters:

type Key Value
realtorId 6243a1856fc7a41b9441b86a

Authentication Type: Bearer

Request: Fetch Review By Review ID

Method: GET

Request URL:

http://localhost:3103/reviews/review

Parameters:

type Key Value
id 624f68c6fc13ae31ad000090

Authentication Type: Bearer

Request: Fetch All Reviews

Method: GET

Request URL:

http://localhost:3103/reviews/all

Authentication Type: Bearer

Request: Create Review

Method: POST

Request URL:

http://localhost:3103/reviews/create

Authentication Type: Bearer

Request: Edit Review

Method: POST

Request URL:

http://localhost:3103/reviews/edit

Authentication Type: Bearer

Request: Publish Review

Method: PUT

Request URL:


http://localhost:3103/reviews/publish

Authentication Type: Bearer

Request: Delete Review

Method: DELETE

Request URL:

http://localhost:3103/reviews/delete

Authentication Type: Bearer

Admin

Request: Get All Users

Method: GET

Request URL:

http://localhost:3103/admin/all-users

Authentication Type: Bearer

Request: Add User

Method: POST

Request URL:

http://localhost:3103/admin/addUser

Parameters:

type Key Value
email "",
password "",
firstname "",
lastname ""

Authentication Type: Bearer

Request: Change Role

Method: PUT

Request URL:

http://localhost:3103/admin/change-role

Authentication Type:Bearer

Request: Delete User

Method: PUT

Request URL:

http://localhost:3103/admin/delete-user

Authentication Type: Bearer

Request: Ban User

Method: PUT

Request URL:

http://localhost:3103/admin/ban-user

Authentication Type: Bearer

Users

Request: Activate Account

Method: PUT

Request URL:

http://localhost:3103/admin/activate-user

Authentication Type: Bearer

Request: Request Delete

Method: PUT

Request URL:

http://localhost:3103/admin/request-delete

Authentication Type: Bearer

Request: Fetch User Reviews

Method: GET

Request URL:

http://localhost:3103/user/my-reviews

Authentication Type: Bearer

Request: Edit Profile

Method: POST

Request URL:

http://localhost:3103/user/edit-profile

Parameters:

type Key Value
email changedEmail@mails.com
firstname Benny
lastname Honduras

Authentication Type: Bearer

Comments

Request: Create Comment

Method: POST

Request URL:

http://localhost:3103/comments/create

Authentication Type: Bearer

Request: Delete Comment

Method: DELETE

Request URL:

http://localhost:3103/comments/delete

Authentication Type: Bearer


Made with Hoppscotch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment