- Build and tests
- NancyFX - Lightweight, low-ceremony, framework for building HTTP based services
- FluentAssertions - Fluent Assertions is a set of .NET extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style test
- FluentValidation - A small validation library for .NET that uses a fluent interface and lambda expressions for building validation rules.
- LightInject - An ultra lightweight IoC container
- NUnit - Unit-testing framework for all .Net languages
- RestSharp - Simple REST and HTTP API Client
Através do recurso "routes", realizar ação POST e informar lista de endereços e tipo da rota (shortest ou fastest) a ser calculada.
/routes
{
"addresses": [{
"street": "av paulista",
"number": "1",
"city": "sao paulo",
"state": "sp"
}, {
"street": "av paulista",
"number": "200",
"city": "sp",
"state": "sp"
}],
"type": "shortest"
}
{
"data": [{
"totalTime": 5646,
"totalDistance": 76408,
"fuelCost": 0,
"totalCostWithToll": 0
}],
"errors": [],
"success": true
}
{
"data": [],
"errors": [
"street information should be informed",
"entry state information is not valid"
],
"success": false
}
{
"data": [],
"errors": [
"an error occurred"
],
"success": false
}