rest api exercise