Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 855 Bytes

README.MD

File metadata and controls

31 lines (23 loc) · 855 Bytes

CongestionTaxCalculator

CongestionTaxCalculator is a system for configurating and providing congestion tax rates for Gothenburg traffic.

Installation

Clone the project and open it with Visual Studio, it should automatically download the dependencies.

Usage

Launch the API by starting the CongestionTaxCalculator.API service. You can then make requests with your client of choice, for example Postman like this:

POST
https://localhost:44341/calculate/tax?api-version=1.0

{
    "vehicletype": 6,
    "passagedatetimes": [
        "2013-02-08 06:00:00",
        "2013-02-08 06:16:00",
        "2013-02-08 07:30:00"
    ]
}

Or use your webbrowser and navigate to the index where the swagger is hosted:

https://localhost:44341/index.html

You can also run the provided unit tests in the CongestionTaxCalculator.Test project