Impl & tests for Api, Resource and Collection