GithubHelp home page GithubHelp logo

pmonfared / opendatardwnl Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 53 KB

Dot Net Core Library to communicate with OpenDataRWD Netherland Get Car Detail

C# 100.00%
apicontroller sdk-library car dotnetcore nuget-package netherlands kenteken

opendatardwnl's Introduction

OpenDataRdwNL

.net core SDK library

This library offer services include:

Get Car detail by license plate number in Netherland you must signup and get your specially token from https://opendata.rdw.nl/profile/edit/developer_settings

Install NugetPackage:

Install-Package OpenDataRdwNL.Sdk -Version 1.1.3

Add to Startup.cs

public void ConfigureServices(IServiceCollection services)
{
  services.AddOpenDataRdwNlServices(opt =>
  {
      opt.AppToken = "<Add_YOUR_APP_TOKEN>";
      opt.OpenDataRdwNlServiceAddress = "https://opendata.rdw.nl";
  });
  
  services.AddMvc();
}

use (English version) in apiController:

[ApiController]
[Route("/api/[controller]")]
[Produces("application/json")]
public class OpenDataRdwController : ControllerBase
{
    private readonly IOpenDataRdwEnService _dataRdwEnService;
        
    public OpenDataRdwController(IOpenDataRdwEnService dataRdwEnService)
    {
       _dataRdwEnService = dataRdwEnService;
    }
        
    [HttpGet("[action]")]
    [ProducesResponseType(typeof(List<CarDetailEnServiceResult>), 200)]
    public async Task<IActionResult> CarDetail([FromQuery] string licensePlate)
    {
        var models = await _dataRdwEnService.GetCarDetailByLicensePlate(licensePlate);
        return Ok(models);
     }
}

use (Dutch version) in apiController:

[ApiController]
[Route("/api/[controller]")]
[Produces("application/json")]
public class OpenDataRdwController : ControllerBase
{
    private readonly IOpenDataRdwNlService _dataRdwNlService;
        
    public OpenDataRdwController(IOpenDataRdwNlService dataRdwNlService)
    {
       _dataRdwNlService = dataRdwNlService;
    }
        
    [HttpGet("[action]")]
    [ProducesResponseType(typeof(List<CarDetailNlServiceResult>), 200)]
    public async Task<IActionResult> CarDetail([FromQuery] string licensePlate)
    {
        var models = await _dataRdwNlService.GetCarDetailByLicensePlate(licensePlate);
        return Ok(models);
     }
}

After that you can use this library in your .Net core Projects

Good luck!

opendatardwnl's People

Contributors

cavanzadelhoff avatar pmonfared avatar

Watchers

 avatar  avatar  avatar

Forkers

cavanzadelhoff

opendatardwnl's Issues

Missing fields

Nice project, missing 2 fields
catalogusprijs
cilinderinhoud

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.