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.
Loading...
Related Quiz
- How does implementing idempotent operations in REST APIs enhance the service?
- SOAP messages are typically transported using _______ protocol.
- The use of _______ in XML facilitates more rigorous data validation than JSON.
- AWS CloudFormation is used for _______ resources in AWS.
- To manage state in stateless SOAP services, the technique of _______ is commonly used.