defined Restapi as property