include input type in rest resource