project: Expose a RESTful JSON API

Story points 5
Tags node api express
Hard Prerequisites
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content.
  • PROJECTS: Node & SQL assignment
  • PROJECTS: Express, forms and templates
  • TOPICS: APIs and Node

  • Instructions

    Use Express to expose the following JSON endpoints.

    • GET /visitors lists all the visitors
    • POST /visitors creates a new visitors
    • GET /visitors/:id gets the details of a specific visitor
    • DELETE /visitors/:id deletes a specific visitor
    • DELETE /visitors deletes all visitors
    • PUT /visitors/:id updates a specific visitor

    Resources


    RAW CONTENT URL