liberator

Mario C. 2019-07-02T21:37:07.002600Z

The :conflict? function does not fire when I try to POST to an "existing" resource. I used the wrap-trace function to trace the request and it seems that after post-to-existing? returns true it goes straight into the post function. Skipping over the conflict? and method-post?steps. Am I doing something wrong?

Mario C. 2019-07-02T21:41:14.003900Z

I guess I could use the post-to-existing function

Mario C. 2019-07-02T21:42:00.004700Z

but I dont like that it will end up returning status 200 or 300 unless I change it.

Mario C. 2019-07-02T21:44:21.006400Z

The logic should look like. 1. Allow posts on existing resource. 2. Check for business logic in the conflict. If conflicts occurs return with status code 409 otherwise allow the post.