Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^4: Restful Client Query

by perlfan (Priest)
on Jun 29, 2016 at 23:28 UTC ( #1166908=note: print w/replies, xml ) Need Help??

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

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.

Replies are listed 'Best First'.
Re^5: Restful Client Query
by Your Mother (Bishop) on Jun 30, 2016 at 21:00 UTC

    :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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1166908]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2020-06-01 23:34 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (12 votes). Check out past polls.