reading-notes

More CRUD

CRUD Basics

  1. Which HTTP method would you use to update a record through an API?
    • put
  2. Which REST methods require an ID parameter?
    • update and delete

Speed Coding: Building a CRUD API

  1. What’s the relationship between REST and CRUD?
    • CRUD is a way of manipulating information, describing the function of an application. REST is controlling data through HTTP commands.
  2. If you had to describe the process of creating a RESTful API in 5 steps, what would they be?
    1. Install and import required items
    2. Designate Port and set up Routes
    3. Develop schema
    4. Create functions that accomplish CRUD
    5. Export to server.js and ensure functionality