add schedule APIs to url.py and views.py