resource and subresource crud