Django REST Framework views and throttling

Add examples of class based view and function based view using django
REST framework, set throttling on them to limit the number of requests
per day. Add example of writing a file to a server side folder.