REST API implemeneted