Fork me on GitHub
#yada
<
2015-11-02
>
stijn12:11:34

Let's say I have a route /:some/login, and depending on the value of 'some', a login resource with POST method exists or not.

stijn12:11:52

What would be a good response for the non-existent 'some'? 404 or 409?

stijn12:11:23

Currently 404 is not supported out of the box in yada in this case

thomas14:11:53

@stijn: my reading of the spec is that it should be a 404... but no idea on how to achieve that with yada.

stijn15:11:30

for now, i'm manually returning a 404 in the POST method

stijn15:11:01

typically you have GET and POST on such a resource, GET gives you the list of items and POST creates new ones. so there should be no conflict in using :exists? from the resource properties. but you might need to have different handling in :exists? for different methods