Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 538 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 538 Bytes

CRUD operations with Express

Employee Management APIs

Endpoints

  1. GET /employees
  2. GET /employee/:id
  3. POST /employee
  4. DELETE /employee/:id
  5. UPDATE /employee/:id

Learning Objective

  1. Accepting Data from Client
    • Req Params
    • Req Body - JSON
    • Req Query Params
  2. Support different request methods
  3. How to get Req body as JSON - app.use(express.json())
  4. Response - Status Code
  5. Persistent Storage
  6. Handle CORS issue
  7. Host static content - like images, html, css, JS, ...

Static vs Dynamic