in reply to Re: Restful Client Query
in thread Restful Client Query

If implemented halfway consistently, using the wrong HTTP method (i.e., GET when a POST, etc is required) should result in a 404.

Replies are listed 'Best First'.
Re^3: Restful Client Query
by Your Mother (Bishop) on Jun 29, 2016 at 05:19 UTC

    You mean 405?

      I don't know for sure, but in REST I've always considered the resource to be defined by METHOD+route; if POST+/foo/bar exists, but GET+/foo/bar doesn't, then I'd accept a 404. But idk really since everyone has their own interpretation. I could also just be completely ignorant. That is a good possibility.

        :P I agree there are some gray areas but in this case I think it's pretty clearly 405. The path exists, it's just limited to what method is allowed.