forgot to add the changes in restapi.py

Forgot this file