Add search content API at /contents/search
Add functional tests for getting and posting /resources