correct restful-api to the service