Update restapi.py