AbgeordnetenWatchDotNet 2.0.0

dotnet add package AbgeordnetenWatchDotNet --version 2.0.0
                    
NuGet\Install-Package AbgeordnetenWatchDotNet -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AbgeordnetenWatchDotNet" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AbgeordnetenWatchDotNet" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="AbgeordnetenWatchDotNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AbgeordnetenWatchDotNet --version 2.0.0
                    
#r "nuget: AbgeordnetenWatchDotNet, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AbgeordnetenWatchDotNet@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AbgeordnetenWatchDotNet&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=AbgeordnetenWatchDotNet&version=2.0.0
                    
Install as a Cake Tool

Installation

dotnet add package AbgeordnetenWatchDotNet

Usage

using AbgeordnetenWatchDotNet.Generated;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;

var authenticationProvider = new AnonymousAuthenticationProvider();
var adapter = new HttpClientRequestAdapter(authenticationProvider);
var client = new AbgeordnetenWatchApiClient(adapter);

var result = await client.Parliaments.GetAsync();

foreach (var parliament in result?.Data ?? [])
{
	Console.WriteLine(parliament.Label);
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Development

Setup

Code generation

This project relies heavily on code generation.

API Spec

Since the API spec is not available as an OpenAPI specification, we generate our own using typespec.

The spec is generated using MSBuild and the typespec compiler in the AbgeordnetenWatchDotNet.ApiSpec project. Building it causes the the spec to get generated.

API Client

The actual API client is also generated using kiota. It consumes the API Spec to generate a C# API client that is fully type-safe.

Watch

To make developing this library as easy as possible, the whole toolchain supports using dotnet watch.

This means using

dotnet watch --project ./AbgeordnetenWatchDotNet.Example/AbgeordnetenWatchDotNet.Example.csproj -- build

you can work on any of the files (including the .tsp-files) and changes cause the spec and the API client to get updated.

You can also run dotnet watch in any of the project directories.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AbgeordnetenWatchDotNet:

Package Downloads
AbgeordnetenWatchDotNet.Extensions.DependencyInjection

An API client for the abgeordnetenwatch.de website.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 171 3/5/2026
1.0.1 270 11/14/2025
1.0.0 260 11/14/2025

# Unreleased
* BREAKING: converted extension methods for query option builders to extension properties
* Added more query filters in the spec (which you can now filter for)
* Support for AbgeordnetenWatch API 2.8.2
# 1.0.1
* No changes (just a version bump)
# 1.0.0
* Initial release
* Support for AbgeordnetenWatch API 2.7
* `Extensions.DependencyInjection`: Initial release