Skip to content

riquellopes/desafio-python

Repository files navigation

Desafio python

Documentação da api

Criar usuário.

    >>> curl -X POST -H "Content-Type: application/json" -d '{"name": "Henrique Lopes", "email": "contato@henriquelopes.com", "password": "00000000"}' https://python-challenge.herokuapp.com/user

Logar usuário.

    >>> curl -X POST -H "Content-Type: application/json" -d '{"email": "contato@henriquelopes.com", "password": "00000000"}' https://python-challenge.herokuapp.com/login

Acessar profile do usuário.

    >>> curl -X GET -H "X-TOKEN:x1x1x1" https://python-challenge.herokuapp.com/profile

Criar ambiente.

    >>> make venv
    >>> source venv/bin/activate
    >>> make setup-local

Executar testes.

    >>> make test

Executar coverage.

    >>> make test-cov