fix the respond_to? method on the rest resource + add a spec for it