rest resource defined