-
GET Turmas: https://cimatec-tcc.herokuapp.com/api/turma/
-
Lista todas as turmas e os usuários das turmas
-
POST Cadastrar Turma: https://cimatec-tcc.herokuapp.com/api/turma/registration/
{
"nome": "turma de teste",
"turno": "V",
"professor": "admin@email.com.br",
"codigoTurma": "segredo"
}
- PUT Cadastrar aluno em uma turma: https://cimatec-tcc.herokuapp.com/api/turma/add-alunos/
{
"codigoTurma": "segredo",
"aluno": "email-do-aluno@email.com.br"
}
- GET Buscar Ranking: https://cimatec-tcc.herokuapp.com/api/jogador/ranking/
- GET Buscar Jogadores: https://cimatec-tcc.herokuapp.com/api/jogador/
- POST Cadastrar Jogador https://cimatec-tcc.herokuapp.com/api/jogador/registration/
{
"email": "email-do-aluno@email.com.br",
"password": "12345678",
"name": "Hudson Duarte",
"phone": "71998765432",
"categoria": "A",
"genero": "M"
}
- POST Autenticar Jogador: https://cimatec-tcc.herokuapp.com/api/authenticate/token/obtain/
{
"email": "meu-email@email.com.br",
"password": "senhanovateste"
}
- PUT Alterar Senha Jogador: https://cimatec-tcc.herokuapp.com/api/authenticate/user/update/
{
"email": "meu-email@email.com.br",
"old_password": "12345678",
"new_password": "senhanovateste",
"password_confirmation": "senhanovateste"
}
- PUT ALterar Nível de Pontuação do Jogador: https://cimatec-tcc.herokuapp.com/api/jogador/update/
{
"aluno": "email-do-aluno@emial.com.br",
"nivel": 2,
"pontuacao": 10
}
├── TCC-BACK
│ ├──authenticate
| │ │ ├── management
| | │ │ └── commands
| │ │ ├── migrations
| │ │ └── tests
│ ├── conteudo
| │ │ ├── management
| | │ │ └── commands
| │ │ └── migrations
│ ├── jogador
| │ │ └── migrations
│ ├── node_modules
│ ├── project
│ ├── questao
| │ │ ├── management
| | │ │ └── commands
| │ │ └── migrations
│ ├── turma
| │ │ └── migrations
│ ├── utils
| │ │ └── mixins
- Python 3
- Virtual env
virtualenv -p python3 vm
cd TCC-BACK && pip install -r requirements.txt
fab dev
python manage.py runserver
NOTA: Necessário estar na Virtual env