A progressive Node.js framework for building efficient and scalable server-side applications.
API desenvolvido em Nest para realizar a integração entre as plataformas Pipedrive e Bling.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
- Banco de dados: MongoDB
- Local: MongoDB Atlas
- ODM: Mongoose
GET
/api/v1/opportunitiesDescrição: Retorna todos as oportunidades cadastradas no banco.
Response: 200 Lista de oportunidades
[
{
"_id": "611d80df970e76874c4ac298",
"date": "0000-00-00 00:00:00.000",
"totalValue": 10.4,
"items": [
{
"_id": "611d80df970e76874c4ac299",
"pipedriveId": 1,
"customerName": "Customer Name",
"description": "Product Description",
"qtde": 1,
"unitValue": 6.4
},
{
"_id": "611d88c60a091b31240edc6a",
"pipedriveId": 2,
"customerName": "Customer Name #02",
"description": "Product Description",
"qtde": 1,
"unitValue": 4
}
],
"createdAt": "2021-08-18 18:51:27.575",
"updatedAt": "2021-08-18 19:25:10.089",
"__v": 1
}
]
PUT
/api/v1/opportunitiesDescrição: Realiza a busca de negócios ganhos na plataforma Pipedrive, persiste no banco e criar um novo pedido na plataforma Bling.
Response: 200 No body
Nest is MIT licensed.