2
What does your serializer look like? Does it have the ‘id’ in the fields to be included?
http://www.django-rest-framework.org/api-guide/serializers/#specifying-which-fields-to-include
The serializer decides what the object returned looks like in the API
Source:stackexchange.com