CRUD Operations

Best practices

  • Use plural: posts not post

  • Updating PUT or PATCH is user preference

  • PUT operations send all the data over again and patch it in the database

  • PATCH operations send only the data that has to be adjusted and the backend should know how to do this

Last updated