completed rest api