this project created with Nest framework.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
A api contém três endpoints:
endpoint para realizar o cadastro das taxas
{
"prefixOrigin": "011",
"prefixDestiny": "016",
"price": "1.90"
}
endpoint para realizar o cadastro dos planos
{
"name": "FaleMais 30",
"minutes": 20,
"initialCost": "0.0"
}
endpoint para realizar o cadastro de consulta
{
"minutesSpent": 30,
"rate": {
"id": "e94f80c8-3604-4fb1-aea2-e9b08de79348"
},
"phonePlan": {
"id": "bd0a8485-24ac-478b-a51a-15219aa02e2a"
}
}
# unit tests
$ npm run test
# test coverage
$ npm run test:cov
Author - Tiago Almeida
Project is MIT licensed.