reading-notes

Code Fellows Notes

View the Project on GitHub stephnitis/reading-notes

More CRUD

CRUD Basics

1. Which HTTP method would you use to update a record through an API?

You can create something new, read or view the newly created data, edit or update the data and finally the option to delete it.

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?

Using REST applications involves CRUD functions and data in REST applications can be Created, Read, Updated, and Deleted. CRUD maps to the HTTP methods used by REST APIs- GET, POST, DELETE, PUT, and PATCH

2. If you had to describe the process of creating a RESTful API in 5 steps, what would they be?

  1. Configure modules and packages. Add all necessary components to server.js
  2. Add route info in regards to creating GET, POST, PUT & DELETE requests.
  3. Add environment file and define port
  4. Define specifications, setup and connect database
  5. Verify that requests and responses are working properly