$ git clone https://github.com/jessicapaz/test-ebi.git
$ cd test-ebi
$ pipenv install
$ pipenv shell
$ python manage.py migrate
$ python manage.py test
Example:
{
"type_choice": "S",
"name": "service",
"description": "des",
"price": "454.00",
"commission_rate": 0.02
}
Example:
[
{
"type_choice": "S",
"name": "service",
"description": "des",
"price": "454.00",
"commission_rate": 0.02
},
{.....}
]
Example:
{
"type_choice": "P",
"name": "service update",
"description": "des",
"price": "454.00",
"commission_rate": 0.02
}
Example:
{
"type_choice": "P",
"name": "service update",
"description": "des",
"price": "454.00",
"commission_rate": 0.02
}
Example:
[
{
"type_choice": "S",
"name": "aaa",
"description": "aa",
"price": "87897.00",
"commission_rate": 0.004
},
{.....}
]
Example:
[
{
"type_choice": "P",
"name": "product 1",
"description": "des",
"price": "97.00",
"commission_rate": 0.004
},
{.....}
]
Example:
{
"name": "test",
"rg": "78987525",
"cpf": "03589774158",
"phone": "9181875836",
"seller": {
"salary": 5000.80
}
}
Example:
{
"name": "test update",
"rg": "78987525",
"cpf": "03589774158",
"phone": "9181875836",
"seller": {
"salary": 5000.80
}
}
{
"total-commission": 154.77
}
Example:
{
"name": "test",
"rg": "78987525",
"cpf": "03589774158",
"phone": "9181875836",
"client": {
"email": "test@gmail.com"
}
}
Example:
{
"name": "test update",
"rg": "78987525",
"cpf": "03589774158",
"phone": "9181875836",
"client": {
"email": "test@gmail.com"
}
}
Example:
{
"product_service": [
1, 2, 4
],
"seller": 1,
"client": 1,
"timestamp": "2018-08-27T12:00:00Z"
}
Example:
[
{
"product_service": [
2, 6
],
"seller": 1,
"client": 2,
"timestamp": "2018-08-27T12:00:00Z"
},
{.....}
]
Example:
{
"product_service": [
2
],
"seller": 1,
"client": 1,
"timestamp": "2018-11-15T12:00:00Z"
}
Example:
{
"product_service": [
2
],
"seller": 1,
"client": 1,
"timestamp": "2018-11-15T12:00:00Z"
}