December 2018
Intermediate to advanced
500 pages
12h 33m
English
Our RESTful web API has to be able to serialize the game instances into JSON representations and also deserialize the JSON representations to build game instances. With Django REST Framework, we just need to create a serializer class for the game instances to manage serialization to JSON and deserialization from JSON.
We will configure our mediator between the Game model instances and Python primitives by creating a subclass of the rest_framework.serializers.Serializer ...