rest API well done