Modified formatting in views.py
Stubbed in RESTful code