View on GitHub

reading-notes

Reading notes taken while attending Code Fellows classes.

More CRUD

Index

Home
CRUD Basics
Speed Coding: Building a CRUD API

CRUD Basics

  1. Which HTTP method would you use to update a record through an API?
    • Update
  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?
    • REST is an architectural system centered around resources and Hypermedia using HTTP commands. CRUD is a cycle meant to maintain records in a database setting. In its base form, 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?
    • Bring in required dependencies
    • Setup routes and endpoints
    • Create Schema and Models
    • Build out CRUD
      • Get all
      • Get One
      • Create One
      • Update One
      • Delete One
    • Setup validation and perform some testing

Back To Top