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

Criar API para modelos User #20

Open
7 tasks
fabiommendes opened this issue Jun 8, 2017 · 0 comments
Open
7 tasks

Criar API para modelos User #20

fabiommendes opened this issue Jun 8, 2017 · 0 comments

Comments

@fabiommendes
Copy link
Contributor

fabiommendes commented Jun 8, 2017

Criar um endpoint REST /api/users/ utilizando o Django Rest Framework

  • /api/users/ e /api/users/{username}/
    • todos endpoints do Codeschool precisam de authenticação
    • somente usuários do tipo admin podem acessar lista de profiles
    • expor "name" ao invés de "first_name" e "last_name" (mudaremos o model User no futuro)
    • fields: username, name, password,
    • POST, PUT de novos users está bloqueado
    • GET,PATCH /users/{username}/ permitido apenas para admin e proprio usuário
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant