REST API using django rest framework