Which HTTP method should be used for creating a new resource?
- DELETE
- GET
- POST
- PUT
The HTTP method "POST" should be used for creating a new resource on the server. When a client sends a POST request, it submits data to be processed to a specified resource. The server then creates a new resource based on that data and returns the appropriate response.
Loading...
Related Quiz
- What is a fundamental characteristic of Microservices Architecture in the context of API design?
- In RESTful APIs, which HTTP method is idempotent and used for updating resources?
- In a scenario where an API Gateway is the entry point for multiple backend services, what is a key area to test for ensuring service availability?
- How does API mocking help in the early stages of development?
- In API testing, checking for _________ errors involves validating the API's response when a necessary parameter is missing.