Update rest_api.pl