Skip to content

Instantly share code, notes, and snippets.

@singhayushh
Created July 31, 2023 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save singhayushh/dd7784dced725f08e70f9431550ed62e to your computer and use it in GitHub Desktop.
Save singhayushh/dd7784dced725f08e70f9431550ed62e to your computer and use it in GitHub Desktop.
Scratchpad for explaining backend

Jargons in backend

  1. request response
  2. route
  3. controller
  4. service
  5. middleware

Request

GET POST PUT PATCH DELETE

  1. Endpoint / API
  2. Query -> ?key=value&asa=s&a=asda
  3. Param -> /{username}
  4. Body -> actual request data
  5. Header -> metadata

Response

  1. Status Code - 200s 300s 400s 500s
  2. Data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment