When creating an API for a blog, which method should be used to ensure the client can discover the allowed HTTP methods for a resource?

  • OPTIONS
  • GET
  • DISCOVER
  • DESCRIBE
To enable clients to discover the allowed HTTP methods for a resource in an API, the OPTIONS method should be used. The server responds with information about the communication options for the target resource, allowing clients to determine which methods are supported.
Add your answer
Loading...

Leave a comment

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