You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
}
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: