Jon Rumsey

An online markdown blog and knowledge repository.


Project maintained by nojronatron Hosted on GitHub Pages — Theme by mattgraham

More CRUD Readings

Q and A

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

PUT is used to update an existing record.

Which REST methods require an ID parameter?

DELETE and UPDATE require the parameter :id

What’s the relationship between REST and CRUD?

REST        CRUD      Meaning
----        ----      -------
POST    =>  Create    Add an item to the server
GET     =>  Read      Read one or more item values from the server
PUT     =>  Update    Update an existing item at the server
DELETE  =>  Delete    Remove an existing item from the server

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

  1. Deploy a database or data store of some sort.
  2. Deploy an API server with connectivity to the data store.
  3. Add required middleware like CORS or other wingdings as your API design requires.
  4. Create routes for each REST operation, translating to CRUD operation(s).
  5. Implement validation and error handling mechanisms.

References

CRUD Basics
Speed Coding: Build a CRUD API

Back to readme.md