Skip to content

AaronSadlerUK/DVSA.MOT.SDK

Repository files navigation

DVSA.MOT.SDK

nuget badge

A simple SDK for access to the DVSA MOT history API

Installation

To be able to use this SDK, you will require an Api Key, which you can apply for from the DVSA.

DVSA.MOT.SDK is available from NuGet or as a manual download directly from GitHub.

Usage

You will need to add the following key to your appsettings.json or secrets.json:

  {
    "MotApi": {
      "DVSAApiKey": "YOUR KEY HERE"
    }
  }

Then you will then need to register the apikey and SDK in your Startup.cs file

  services.Configure<ApiKey>(Configuration.GetSection("MotApi"));
  services.AddDvlaMotSdk();
  services.AddOptions();
  services.AddLogging();

Documentation

Documentation and examples on how the parameters are used to access the api can be found on the dvsa api history website: https://dvsa.github.io/mot-history-api-documentation/

Contribution guidelines

To raise a new bug, create an issue on the GitHub repository. To fix a bug or add new features, fork the repository and send a pull request with your changes. Feel free to add ideas to the repository's issues list if you would to discuss anything related to the package.

License

Copyright © 2020 Aaron Sadler.

Licensed under the MIT License.

The DVSA API is Licensed under the Open Government Licence v3.0