I want to figure out which methods are supported on a resource.
use the OPTIONS method for this:
Even though it's not defined, this method CAN return a message body. It will return an ALLOW header, that returns all the methods the current resource is capable of handling.
If resources require authentication, it is possible that OPTIONS returns more methods once you added authentication headers to the request.
See also
Caveats
- OPTIONS is not a very common implemented method.