Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed API for character #15

Open
Virako opened this issue Dec 27, 2018 · 1 comment
Open

Fixed API for character #15

Virako opened this issue Dec 27, 2018 · 1 comment
Assignees
Milestone

Comments

@Virako
Copy link
Member

Virako commented Dec 27, 2018

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
  }
}
@Virako Virako added this to the v1 milestone Dec 27, 2018
@Virako Virako self-assigned this Dec 28, 2018
@Virako
Copy link
Member Author

Virako commented Dec 28, 2018

PR: #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant