Everything in character work bad. We need fixed character API, this API should be similar to things API.
character/npc/ API REST
character/player/ API REST
For create NPC or Player, we should use deserializers, I think so we should create UserSerializer for create User (similar to Preferences in Game in file: game/serializers.py +20 ). The API call is the following:
POST character/npc/
#way1: user was created previously
params: {
'user': user_pk
}
#way2: user will be created in deserializer
params: {
'user': {
'email': valid_email,
'password': pwd
}
}
Everything in character work bad. We need fixed character API, this API should be similar to things API.
For create NPC or Player, we should use deserializers, I think so we should create UserSerializer for create User (similar to Preferences in Game in file: game/serializers.py +20 ). The API call is the following: