Kubis1982.Atlassian.RestClient 1.0.0

dotnet add package Kubis1982.Atlassian.RestClient --version 1.0.0
                    
NuGet\Install-Package Kubis1982.Atlassian.RestClient -Version 1.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="Kubis1982.Atlassian.RestClient" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kubis1982.Atlassian.RestClient" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Kubis1982.Atlassian.RestClient" />
                    
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 Kubis1982.Atlassian.RestClient --version 1.0.0
                    
#r "nuget: Kubis1982.Atlassian.RestClient, 1.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 Kubis1982.Atlassian.RestClient@1.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=Kubis1982.Atlassian.RestClient&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Kubis1982.Atlassian.RestClient&version=1.0.0
                    
Install as a Cake Tool

Atlassian REST Client - Core Library

Core shared components for Atlassian REST API Clients, providing common authentication, serialization, and HTTP client configuration utilities for Jira, Confluence, and Bitbucket API clients.

Package Information

  • Package ID: Kubis1982.Atlassian.RestClient
  • NuGet: NuGet

Features

  • BasicAuthProvider - Simple Basic Authentication implementation for Atlassian Cloud APIs
  • HttpClientRequestAdapterFactory - Factory for creating pre-configured HTTP adapters
  • DateTimeOffsetConverter - Custom JSON converter for Atlassian-specific date-time formats
  • ✅ Built on Microsoft Kiota
  • ✅ Support for .NET 10.0+

Installation

Via NuGet Package Manager

dotnet add package Kubis1982.Atlassian.RestClient

Via Package Manager Console

Install-Package Kubis1982.Atlassian.RestClient

Via .csproj

<ItemGroup>
    <PackageReference Include="Kubis1982.Atlassian.RestClient" Version="1.0.0" />
</ItemGroup>

Components

BasicAuthProvider

Implements IAuthenticationProvider for Basic Authentication using username/email and password/API token.

Usage:

using Kubis1982.Atlassian.RestClient;

// Create with email and API token (recommended for Atlassian Cloud)
var authProvider = new BasicAuthProvider("your-email@company.com", "your-api-token");

// Or with username and app password (Bitbucket)
var authProvider = new BasicAuthProvider("username", "app-password");

Parameters:

  • username - Email address (for Jira/Confluence) or username (for Bitbucket)
  • password - API token or app password

HttpClientRequestAdapterFactory

Factory for creating HttpClientRequestAdapter instances with pre-configured JSON serialization that handles Atlassian's specific date-time formats.

Usage:

using Kubis1982.Atlassian.RestClient;
using Microsoft.Kiota.Abstractions.Authentication;

var authProvider = new BasicAuthProvider("email@company.com", "api-token");
var baseUrl = "https://your-domain.atlassian.net";

// Create adapter with default HttpClient
var adapter = HttpClientRequestAdapterFactory.Create(baseUrl, authProvider);

// Or with custom HttpClient
var httpClient = new HttpClient { Timeout = TimeSpan.FromSeconds(60) };
var adapter = HttpClientRequestAdapterFactory.Create(baseUrl, authProvider, httpClient);

Parameters:

  • baseUrl - Base URL for the API (e.g., https://your-domain.atlassian.net)
  • authenticationProvider - Authentication provider instance
  • httpClient - Optional custom HttpClient instance

Features:

  • Automatic configuration of custom DateTimeOffset converters
  • Pre-configured JSON serialization options
  • Support for custom HttpClient instances

DateTimeOffsetConverter

Custom JSON converter that handles Atlassian's specific date-time format: 2026-04-18T09:04:00.1182+0000

Features:

  • Reads multiple date-time format variations
  • Writes dates in Atlassian-compatible format (ISO 8601 with timezone offset without colon)
  • Handles up to 4 millisecond digits
  • Automatic UTC conversion

Format Specification:

  • Format: yyyy-MM-ddTHH:mm:ss.ffff+0000
  • Timezone: Always +0000 (UTC)
  • Milliseconds: Up to 4 digits, trailing zeros removed

API Token Generation

Jira & Confluence

Generate API tokens from: https://id.atlassian.com/manage-profile/security/api-tokens

Bitbucket

Generate app passwords from: Bitbucket Settings > App passwords

Repository

For more information, visit the Atlassian REST Client repository.

License

MIT - See LICENSE for details.

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 (4)

Showing the top 4 NuGet packages that depend on Kubis1982.Atlassian.RestClient:

Package Downloads
Kubis1982.Atlassian.Bitbucket.RestClient.v2

Strongly-typed REST client for Atlassian Bitbucket Cloud API v2, generated using Microsoft Kiota from official OpenAPI specification.

Kubis1982.Atlassian.Jira.RestClient.v3

Strongly-typed REST client for Atlassian Jira Cloud API v3, generated using Microsoft Kiota from official OpenAPI specification.

Kubis1982.Atlassian.Confluense.RestClient.v2

Strongly-typed REST client for Atlassian Confluence Cloud API v2, generated using Microsoft Kiota from official OpenAPI specification.

Kubis1982.Atlassian.Jira.RestClient.v2

Strongly-typed REST client for Atlassian Jira Cloud API v2, generated using Microsoft Kiota from official OpenAPI specification.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 172 4/19/2026