In designing a REST API for a library system, what HTTP method should be used to add new books to the system?

  • INSERT
  • PATCH
  • POST
  • PUT
When adding new resources to a system in a REST API, the appropriate HTTP method is POST. POST is used to submit data to be processed to a specified resource and is commonly employed for creating new resources, such as adding new books to a library system.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *