API para calcular el tipo de cambio utilizando las tecnologías: NestJS, Typescript, JWT, Redis, MySQL y Docker.
$ docker-compose up -d
# Escuchar en http://localhost:3000
# unit tests
$ npm run test
GET
localhost:3000/api/exchange/calculate?moneda_origen=PEN&moneda_destino=USD&monto=10
POST
localhost:3000/api/exchange
Valores en el cuerpo de la solicitud:
{
"moneda_origen":"PEN",
"moneda_destino":"USD",
"tipo_cambio":0.27
}
PATCH
localhost:3000/api/exchange
Valores en el cuerpo de la solicitud:
{
"moneda_origen":"PEN",
"moneda_destino":"USD",
"tipo_cambio":0.31
}
Andrés Quispe.