Expose a JSON API

Story points 5
Tags node api express
Hard Prerequisites
  • PROJECTS: Node & SQL assignment
  • TOPICS: APIs and Node
  • PROJECTS: Node & File IO

  • There is no need to create a new git repo for this code submission. This is a continuation of your previous work.

    Instructions

    Use Express to expose the following JSON endpoints.

    • /addNewVisitor: create a new Visitor in the database
    • /deleteVisitor:id: delete a single Visitor from the database
    • /deleteAllVisitors: delete all Visitors
    • /viewVisitors: view all Visitors
    • /viewVisitor:id: view a single Visitor
    • /updateVisitor:id: Update a single Visitor

    Resources


    RAW CONTENT URL