diff --git a/Source/Clients/CSharp/Topica.Client/.gitignore b/Source/Clients/CSharp/Topica.Client/.gitignore
new file mode 100644
index 0000000..1ee5385
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/.gitignore
@@ -0,0 +1,362 @@
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
+
+# User-specific files
+*.rsuser
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Mono auto generated files
+mono_crash.*
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+[Ww][Ii][Nn]32/
+[Aa][Rr][Mm]/
+[Aa][Rr][Mm]64/
+bld/
+[Bb]in/
+[Oo]bj/
+[Ll]og/
+[Ll]ogs/
+
+# Visual Studio 2015/2017 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# Visual Studio 2017 auto generated files
+Generated\ Files/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUnit
+*.VisualState.xml
+TestResult.xml
+nunit-*.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# Benchmark Results
+BenchmarkDotNet.Artifacts/
+
+# .NET Core
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+# ASP.NET Scaffolding
+ScaffoldingReadMe.txt
+
+# StyleCop
+StyleCopReport.xml
+
+# Files built by Visual Studio
+*_i.c
+*_p.c
+*_h.h
+*.ilk
+*.meta
+*.obj
+*.iobj
+*.pch
+*.pdb
+*.ipdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*_wpftmp.csproj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# Visual Studio Trace Files
+*.e2e
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# AxoCover is a Code Coverage Tool
+.axoCover/*
+!.axoCover/settings.json
+
+# Coverlet is a free, cross platform Code Coverage Tool
+coverage*.json
+coverage*.xml
+coverage*.info
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
+**/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+!**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+*.appx
+*.appxbundle
+*.appxupload
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!?*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+#*.snk
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+ServiceFabricBackup/
+*.rptproj.bak
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+*.rptproj.rsuser
+*- [Bb]ackup.rdl
+*- [Bb]ackup ([0-9]).rdl
+*- [Bb]ackup ([0-9][0-9]).rdl
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# CodeRush personal settings
+.cr/personal
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+*.tss
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+# OpenCover UI analysis results
+OpenCover/
+
+# Azure Stream Analytics local run output
+ASALocalRun/
+
+# MSBuild Binary and Structured Log
+*.binlog
+
+# NVidia Nsight GPU debugger configuration file
+*.nvuser
+
+# MFractors (Xamarin productivity tool) working folder
+.mfractor/
+
+# Local History for Visual Studio
+.localhistory/
+
+# BeatPulse healthcheck temp database
+healthchecksdb
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+MigrationBackup/
+
+# Ionide (cross platform F# VS Code tools) working folder
+.ionide/
+
+# Fody - auto-generated XML schema
+FodyWeavers.xsd
diff --git a/Source/Clients/CSharp/Topica.Client/.openapi-generator-ignore b/Source/Clients/CSharp/Topica.Client/.openapi-generator-ignore
new file mode 100644
index 0000000..7484ee5
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/.openapi-generator-ignore
@@ -0,0 +1,23 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
diff --git a/Source/Clients/CSharp/Topica.Client/.openapi-generator/FILES b/Source/Clients/CSharp/Topica.Client/.openapi-generator/FILES
new file mode 100644
index 0000000..3e6319f
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/.openapi-generator/FILES
@@ -0,0 +1,53 @@
+.gitignore
+.openapi-generator-ignore
+README.md
+Topica.Client.sln
+api/openapi.yaml
+appveyor.yml
+docs/Entry.md
+docs/LoginApi.md
+docs/LoginModel.md
+docs/MessagesApi.md
+docs/ProblemDetails.md
+docs/Topic.md
+docs/TopicMeta.md
+docs/TopicMetaPaginatedResponse.md
+docs/TopicsApi.md
+git_push.sh
+src/Topica.Client.Test/Api/LoginApiTests.cs
+src/Topica.Client.Test/Api/MessagesApiTests.cs
+src/Topica.Client.Test/Api/TopicsApiTests.cs
+src/Topica.Client.Test/Model/EntryTests.cs
+src/Topica.Client.Test/Model/LoginModelTests.cs
+src/Topica.Client.Test/Model/ProblemDetailsTests.cs
+src/Topica.Client.Test/Model/TopicMetaPaginatedResponseTests.cs
+src/Topica.Client.Test/Model/TopicMetaTests.cs
+src/Topica.Client.Test/Model/TopicTests.cs
+src/Topica.Client.Test/Topica.Client.Test.csproj
+src/Topica.Client/Api/LoginApi.cs
+src/Topica.Client/Api/MessagesApi.cs
+src/Topica.Client/Api/TopicsApi.cs
+src/Topica.Client/Client/ApiClient.cs
+src/Topica.Client/Client/ApiException.cs
+src/Topica.Client/Client/ApiResponse.cs
+src/Topica.Client/Client/ClientUtils.cs
+src/Topica.Client/Client/Configuration.cs
+src/Topica.Client/Client/ExceptionFactory.cs
+src/Topica.Client/Client/GlobalConfiguration.cs
+src/Topica.Client/Client/HttpMethod.cs
+src/Topica.Client/Client/IApiAccessor.cs
+src/Topica.Client/Client/IAsynchronousClient.cs
+src/Topica.Client/Client/IReadableConfiguration.cs
+src/Topica.Client/Client/ISynchronousClient.cs
+src/Topica.Client/Client/Multimap.cs
+src/Topica.Client/Client/OpenAPIDateConverter.cs
+src/Topica.Client/Client/RequestOptions.cs
+src/Topica.Client/Client/RetryConfiguration.cs
+src/Topica.Client/Model/AbstractOpenAPISchema.cs
+src/Topica.Client/Model/Entry.cs
+src/Topica.Client/Model/LoginModel.cs
+src/Topica.Client/Model/ProblemDetails.cs
+src/Topica.Client/Model/Topic.cs
+src/Topica.Client/Model/TopicMeta.cs
+src/Topica.Client/Model/TopicMetaPaginatedResponse.cs
+src/Topica.Client/Topica.Client.csproj
diff --git a/Source/Clients/CSharp/Topica.Client/.openapi-generator/VERSION b/Source/Clients/CSharp/Topica.Client/.openapi-generator/VERSION
new file mode 100644
index 0000000..4b49d9b
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/.openapi-generator/VERSION
@@ -0,0 +1 @@
+7.2.0
\ No newline at end of file
diff --git a/Source/Clients/CSharp/Topica.Client/README.md b/Source/Clients/CSharp/Topica.Client/README.md
new file mode 100644
index 0000000..65d4e08
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/README.md
@@ -0,0 +1,171 @@
+# Topica.Client - the C# library for the Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+
+No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
+
+- API version: 1.0
+- SDK version: 0.0.1
+- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
+
+
+## Frameworks supported
+
+
+## Dependencies
+
+- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later
+- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.2 or later
+- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later
+- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later
+
+The DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
+```
+Install-Package RestSharp
+Install-Package Newtonsoft.Json
+Install-Package JsonSubTypes
+Install-Package System.ComponentModel.Annotations
+```
+
+NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742).
+NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See [RestSharp#1406](https://github.com/restsharp/RestSharp/issues/1406).
+
+
+## Installation
+Run the following command to generate the DLL
+- [Mac/Linux] `/bin/sh build.sh`
+- [Windows] `build.bat`
+
+Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
+```csharp
+using Topica.Client.Api;
+using Topica.Client.Client;
+using Topica.Client.Model;
+```
+
+## Packaging
+
+A `.nuspec` is included with the project. You can follow the Nuget quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#create-the-package) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#publish-the-package) packages.
+
+This `.nuspec` uses placeholders from the `.csproj`, so build the `.csproj` directly:
+
+```
+nuget pack -Build -OutputDirectory out Topica.Client.csproj
+```
+
+Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual.
+
+
+## Usage
+
+To use the API client with a HTTP proxy, setup a `System.Net.WebProxy`
+```csharp
+Configuration c = new Configuration();
+System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
+webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
+c.Proxy = webProxy;
+```
+
+
+## Getting Started
+
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Topica.Client.Api;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Example
+{
+ public class Example
+ {
+ public static void Main()
+ {
+
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ // Configure HTTP basic authorization: Basic
+ config.Username = "YOUR_USERNAME";
+ config.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: ApiKey
+ config.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
+ // Configure API key authorization: Bearer
+ config.ApiKey.Add("Authorization", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.ApiKeyPrefix.Add("Authorization", "Bearer");
+
+ var apiInstance = new LoginApi(config);
+ var loginModel = new LoginModel?(); // LoginModel? | (optional)
+
+ try
+ {
+ string result = apiInstance.Login(loginModel);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling LoginApi.Login: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+
+ }
+ }
+}
+```
+
+
+## Documentation for API Endpoints
+
+All URIs are relative to *http://localhost*
+
+Class | Method | HTTP request | Description
+------------ | ------------- | ------------- | -------------
+*LoginApi* | [**Login**](docs/LoginApi.md#login) | **POST** /api/Login |
+*MessagesApi* | [**AddMessage**](docs/MessagesApi.md#addmessage) | **POST** /api/Messages | Creates a message under topic id.
+*TopicsApi* | [**CreateTopic**](docs/TopicsApi.md#createtopic) | **PUT** /api/Topics |
+*TopicsApi* | [**DeleteMessage**](docs/TopicsApi.md#deletemessage) | **DELETE** /api/Topics/{topicId}/messages/{messageId} |
+*TopicsApi* | [**DeleteTopic**](docs/TopicsApi.md#deletetopic) | **DELETE** /api/Topics/{topicId} |
+*TopicsApi* | [**GetTopic**](docs/TopicsApi.md#gettopic) | **GET** /api/Topics/{topicId} |
+*TopicsApi* | [**GetTopics**](docs/TopicsApi.md#gettopics) | **GET** /api/Topics |
+*TopicsApi* | [**GetTotal**](docs/TopicsApi.md#gettotal) | **GET** /api/Topics/Total |
+
+
+
+## Documentation for Models
+
+ - [Model.Entry](docs/Entry.md)
+ - [Model.LoginModel](docs/LoginModel.md)
+ - [Model.ProblemDetails](docs/ProblemDetails.md)
+ - [Model.Topic](docs/Topic.md)
+ - [Model.TopicMeta](docs/TopicMeta.md)
+ - [Model.TopicMetaPaginatedResponse](docs/TopicMetaPaginatedResponse.md)
+
+
+
+## Documentation for Authorization
+
+
+Authentication schemes defined for the API:
+
+### Basic
+
+- **Type**: HTTP basic authentication
+
+
+### ApiKey
+
+- **Type**: API key
+- **API key parameter name**: X-API-KEY
+- **Location**: HTTP header
+
+
+### Bearer
+
+- **Type**: API key
+- **API key parameter name**: Authorization
+- **Location**: HTTP header
+
diff --git a/Source/Clients/CSharp/Topica.Client/Topica.Client.sln b/Source/Clients/CSharp/Topica.Client/Topica.Client.sln
new file mode 100644
index 0000000..90be967
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/Topica.Client.sln
@@ -0,0 +1,27 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+VisualStudioVersion = 12.0.0.0
+MinimumVisualStudioVersion = 10.0.0.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Topica.Client", "src\Topica.Client\Topica.Client.csproj", "{012DBA44-E1FB-47C3-B755-9BC9373901A6}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Topica.Client.Test", "src\Topica.Client.Test\Topica.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {012DBA44-E1FB-47C3-B755-9BC9373901A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {012DBA44-E1FB-47C3-B755-9BC9373901A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {012DBA44-E1FB-47C3-B755-9BC9373901A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {012DBA44-E1FB-47C3-B755-9BC9373901A6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
\ No newline at end of file
diff --git a/Source/Clients/CSharp/Topica.Client/api/openapi.yaml b/Source/Clients/CSharp/Topica.Client/api/openapi.yaml
new file mode 100644
index 0000000..88ba946
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/api/openapi.yaml
@@ -0,0 +1,416 @@
+openapi: 3.0.1
+info:
+ title: "Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
+ version: "1.0"
+servers:
+- url: /
+security:
+- Basic: []
+ ApiKey: []
+ Bearer: []
+paths:
+ /api/Login:
+ post:
+ operationId: Login
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/LoginModel'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/LoginModel'
+ application/*+json:
+ schema:
+ $ref: '#/components/schemas/LoginModel'
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ application/json:
+ schema:
+ type: string
+ text/json:
+ schema:
+ type: string
+ description: Success
+ tags:
+ - Login
+ /api/Messages:
+ post:
+ operationId: AddMessage
+ parameters:
+ - description: "If topicId is null, a new Topic will be generated with a random\
+ \ GUID"
+ explode: true
+ in: query
+ name: topicId
+ required: false
+ schema:
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: string
+ text/json:
+ schema:
+ type: string
+ application/*+json:
+ schema:
+ type: string
+ description: ""
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ application/json:
+ schema:
+ type: string
+ text/json:
+ schema:
+ type: string
+ description: Success
+ summary: Creates a message under topic id.
+ tags:
+ - Messages
+ /api/Topics:
+ get:
+ operationId: GetTopics
+ parameters:
+ - explode: true
+ in: query
+ name: page
+ required: false
+ schema:
+ default: 0
+ format: int32
+ type: integer
+ style: form
+ - explode: true
+ in: query
+ name: pageSize
+ required: false
+ schema:
+ default: 25
+ format: int32
+ type: integer
+ style: form
+ - explode: true
+ in: query
+ name: search
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "404":
+ content:
+ text/plain:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "200":
+ content:
+ text/plain:
+ schema:
+ $ref: '#/components/schemas/TopicMetaPaginatedResponse'
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TopicMetaPaginatedResponse'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/TopicMetaPaginatedResponse'
+ description: Success
+ tags:
+ - Topics
+ put:
+ operationId: CreateTopic
+ parameters:
+ - explode: true
+ in: query
+ name: topicId
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "400":
+ content:
+ text/plain:
+ schema:
+ type: string
+ application/json:
+ schema:
+ type: string
+ text/json:
+ schema:
+ type: string
+ description: Bad Request
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ application/json:
+ schema:
+ type: string
+ text/json:
+ schema:
+ type: string
+ description: Success
+ tags:
+ - Topics
+ /api/Topics/Total:
+ get:
+ operationId: GetTotal
+ responses:
+ "404":
+ content:
+ text/plain:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "200":
+ content:
+ text/plain:
+ schema:
+ format: int32
+ type: integer
+ application/json:
+ schema:
+ format: int32
+ type: integer
+ text/json:
+ schema:
+ format: int32
+ type: integer
+ description: Success
+ tags:
+ - Topics
+ /api/Topics/{topicId}:
+ delete:
+ operationId: DeleteTopic
+ parameters:
+ - explode: false
+ in: path
+ name: topicId
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ description: Success
+ tags:
+ - Topics
+ get:
+ operationId: GetTopic
+ parameters:
+ - explode: false
+ in: path
+ name: topicId
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "404":
+ content:
+ text/plain:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "200":
+ content:
+ text/plain:
+ schema:
+ $ref: '#/components/schemas/Topic'
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Topic'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/Topic'
+ description: Success
+ tags:
+ - Topics
+ /api/Topics/{topicId}/messages/{messageId}:
+ delete:
+ operationId: DeleteMessage
+ parameters:
+ - explode: false
+ in: path
+ name: topicId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - explode: false
+ in: path
+ name: messageId
+ required: true
+ schema:
+ format: uuid
+ type: string
+ style: simple
+ responses:
+ "200":
+ description: Success
+ tags:
+ - Topics
+components:
+ schemas:
+ Entry:
+ additionalProperties: false
+ example:
+ createdOn: 2000-01-23T04:56:07.000+00:00
+ content: content
+ entryId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ properties:
+ createdOn:
+ format: date-time
+ type: string
+ content:
+ nullable: true
+ type: string
+ entryId:
+ format: uuid
+ type: string
+ type: object
+ LoginModel:
+ additionalProperties: false
+ example:
+ password: password
+ username: username
+ properties:
+ username:
+ nullable: true
+ type: string
+ password:
+ nullable: true
+ type: string
+ type: object
+ ProblemDetails:
+ additionalProperties: {}
+ properties:
+ type:
+ nullable: true
+ type: string
+ title:
+ nullable: true
+ type: string
+ status:
+ format: int32
+ nullable: true
+ type: integer
+ detail:
+ nullable: true
+ type: string
+ instance:
+ nullable: true
+ type: string
+ type: object
+ Topic:
+ additionalProperties: false
+ example:
+ id: id
+ history:
+ - createdOn: 2000-01-23T04:56:07.000+00:00
+ content: content
+ entryId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ - createdOn: 2000-01-23T04:56:07.000+00:00
+ content: content
+ entryId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
+ createdOn: 2000-01-23T04:56:07.000+00:00
+ properties:
+ id:
+ nullable: true
+ type: string
+ createdOn:
+ format: date-time
+ type: string
+ history:
+ items:
+ $ref: '#/components/schemas/Entry'
+ nullable: true
+ type: array
+ type: object
+ TopicMeta:
+ additionalProperties: false
+ example:
+ id: id
+ createdOn: 2000-01-23T04:56:07.000+00:00
+ properties:
+ id:
+ nullable: true
+ type: string
+ createdOn:
+ format: date-time
+ type: string
+ type: object
+ TopicMetaPaginatedResponse:
+ additionalProperties: false
+ example:
+ total: 1
+ data:
+ - id: id
+ createdOn: 2000-01-23T04:56:07.000+00:00
+ - id: id
+ createdOn: 2000-01-23T04:56:07.000+00:00
+ pageSize: 6
+ page: 0
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/TopicMeta'
+ nullable: true
+ type: array
+ page:
+ format: int32
+ type: integer
+ pageSize:
+ format: int32
+ type: integer
+ total:
+ format: int32
+ type: integer
+ type: object
+ securitySchemes:
+ Basic:
+ description: Basic Authorization header
+ scheme: Basic
+ type: http
+ ApiKey:
+ in: header
+ name: X-API-KEY
+ type: apiKey
+ Bearer:
+ description: JWT Authorization header using the Bearer scheme.
+ in: header
+ name: Authorization
+ type: apiKey
+
diff --git a/Source/Clients/CSharp/Topica.Client/appveyor.yml b/Source/Clients/CSharp/Topica.Client/appveyor.yml
new file mode 100644
index 0000000..4bca600
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/appveyor.yml
@@ -0,0 +1,9 @@
+# auto-generated by OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator)
+#
+image: Visual Studio 2019
+clone_depth: 1
+build_script:
+- dotnet build -c Release
+- dotnet test -c Release
+after_build:
+- dotnet pack .\src\Topica.Client\Topica.Client.csproj -o ../../output -c Release --no-build
diff --git a/Source/Clients/CSharp/Topica.Client/docs/Entry.md b/Source/Clients/CSharp/Topica.Client/docs/Entry.md
new file mode 100644
index 0000000..16581ae
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/docs/Entry.md
@@ -0,0 +1,12 @@
+# Topica.Client.Model.Entry
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**CreatedOn** | **DateTime** | | [optional]
+**Content** | **string** | | [optional]
+**EntryId** | **Guid** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/Source/Clients/CSharp/Topica.Client/docs/LoginApi.md b/Source/Clients/CSharp/Topica.Client/docs/LoginApi.md
new file mode 100644
index 0000000..c72e3b7
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/docs/LoginApi.md
@@ -0,0 +1,107 @@
+# Topica.Client.Api.LoginApi
+
+All URIs are relative to *http://localhost*
+
+| Method | HTTP request | Description |
+|--------|--------------|-------------|
+| [**Login**](LoginApi.md#login) | **POST** /api/Login | |
+
+
+# **Login**
+> string Login (LoginModel? loginModel = null)
+
+
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Topica.Client.Api;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Example
+{
+ public class LoginExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ // Configure HTTP basic authorization: Basic
+ config.Username = "YOUR_USERNAME";
+ config.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: ApiKey
+ config.AddApiKey("X-API-KEY", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("X-API-KEY", "Bearer");
+ // Configure API key authorization: Bearer
+ config.AddApiKey("Authorization", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("Authorization", "Bearer");
+
+ var apiInstance = new LoginApi(config);
+ var loginModel = new LoginModel?(); // LoginModel? | (optional)
+
+ try
+ {
+ string result = apiInstance.Login(loginModel);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling LoginApi.Login: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the LoginWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ ApiResponse response = apiInstance.LoginWithHttpInfo(loginModel);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling LoginApi.LoginWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **loginModel** | [**LoginModel?**](LoginModel?.md) | | [optional] |
+
+### Return type
+
+**string**
+
+### Authorization
+
+[Basic](../README.md#Basic), [ApiKey](../README.md#ApiKey), [Bearer](../README.md#Bearer)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/json, application/*+json
+ - **Accept**: text/plain, application/json, text/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Success | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/Source/Clients/CSharp/Topica.Client/docs/LoginModel.md b/Source/Clients/CSharp/Topica.Client/docs/LoginModel.md
new file mode 100644
index 0000000..cd4ab9c
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/docs/LoginModel.md
@@ -0,0 +1,11 @@
+# Topica.Client.Model.LoginModel
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Username** | **string** | | [optional]
+**Password** | **string** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/Source/Clients/CSharp/Topica.Client/docs/MessagesApi.md b/Source/Clients/CSharp/Topica.Client/docs/MessagesApi.md
new file mode 100644
index 0000000..0582c52
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/docs/MessagesApi.md
@@ -0,0 +1,111 @@
+# Topica.Client.Api.MessagesApi
+
+All URIs are relative to *http://localhost*
+
+| Method | HTTP request | Description |
+|--------|--------------|-------------|
+| [**AddMessage**](MessagesApi.md#addmessage) | **POST** /api/Messages | Creates a message under topic id. |
+
+
+# **AddMessage**
+> string AddMessage (string? topicId = null, string? body = null)
+
+Creates a message under topic id.
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Topica.Client.Api;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Example
+{
+ public class AddMessageExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ // Configure HTTP basic authorization: Basic
+ config.Username = "YOUR_USERNAME";
+ config.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: ApiKey
+ config.AddApiKey("X-API-KEY", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("X-API-KEY", "Bearer");
+ // Configure API key authorization: Bearer
+ config.AddApiKey("Authorization", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("Authorization", "Bearer");
+
+ var apiInstance = new MessagesApi(config);
+ var topicId = "topicId_example"; // string? | If topicId is null, a new Topic will be generated with a random GUID (optional)
+ var body = "body_example"; // string? | (optional)
+
+ try
+ {
+ // Creates a message under topic id.
+ string result = apiInstance.AddMessage(topicId, body);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling MessagesApi.AddMessage: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the AddMessageWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Creates a message under topic id.
+ ApiResponse response = apiInstance.AddMessageWithHttpInfo(topicId, body);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling MessagesApi.AddMessageWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **topicId** | **string?** | If topicId is null, a new Topic will be generated with a random GUID | [optional] |
+| **body** | **string?** | | [optional] |
+
+### Return type
+
+**string**
+
+### Authorization
+
+[Basic](../README.md#Basic), [ApiKey](../README.md#ApiKey), [Bearer](../README.md#Bearer)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, text/json, application/*+json
+ - **Accept**: text/plain, application/json, text/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Success | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/Source/Clients/CSharp/Topica.Client/docs/ProblemDetails.md b/Source/Clients/CSharp/Topica.Client/docs/ProblemDetails.md
new file mode 100644
index 0000000..8b615cd
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/docs/ProblemDetails.md
@@ -0,0 +1,14 @@
+# Topica.Client.Model.ProblemDetails
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Type** | **string** | | [optional]
+**Title** | **string** | | [optional]
+**Status** | **int?** | | [optional]
+**Detail** | **string** | | [optional]
+**Instance** | **string** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/Source/Clients/CSharp/Topica.Client/docs/Topic.md b/Source/Clients/CSharp/Topica.Client/docs/Topic.md
new file mode 100644
index 0000000..9912e23
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/docs/Topic.md
@@ -0,0 +1,12 @@
+# Topica.Client.Model.Topic
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **string** | | [optional]
+**CreatedOn** | **DateTime** | | [optional]
+**History** | [**List<Entry>**](Entry.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/Source/Clients/CSharp/Topica.Client/docs/TopicMeta.md b/Source/Clients/CSharp/Topica.Client/docs/TopicMeta.md
new file mode 100644
index 0000000..b3c2472
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/docs/TopicMeta.md
@@ -0,0 +1,11 @@
+# Topica.Client.Model.TopicMeta
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **string** | | [optional]
+**CreatedOn** | **DateTime** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/Source/Clients/CSharp/Topica.Client/docs/TopicMetaPaginatedResponse.md b/Source/Clients/CSharp/Topica.Client/docs/TopicMetaPaginatedResponse.md
new file mode 100644
index 0000000..0b621c0
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/docs/TopicMetaPaginatedResponse.md
@@ -0,0 +1,13 @@
+# Topica.Client.Model.TopicMetaPaginatedResponse
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Data** | [**List<TopicMeta>**](TopicMeta.md) | | [optional]
+**Page** | **int** | | [optional]
+**PageSize** | **int** | | [optional]
+**Total** | **int** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/Source/Clients/CSharp/Topica.Client/docs/TopicsApi.md b/Source/Clients/CSharp/Topica.Client/docs/TopicsApi.md
new file mode 100644
index 0000000..07c4aaa
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/docs/TopicsApi.md
@@ -0,0 +1,604 @@
+# Topica.Client.Api.TopicsApi
+
+All URIs are relative to *http://localhost*
+
+| Method | HTTP request | Description |
+|--------|--------------|-------------|
+| [**CreateTopic**](TopicsApi.md#createtopic) | **PUT** /api/Topics | |
+| [**DeleteMessage**](TopicsApi.md#deletemessage) | **DELETE** /api/Topics/{topicId}/messages/{messageId} | |
+| [**DeleteTopic**](TopicsApi.md#deletetopic) | **DELETE** /api/Topics/{topicId} | |
+| [**GetTopic**](TopicsApi.md#gettopic) | **GET** /api/Topics/{topicId} | |
+| [**GetTopics**](TopicsApi.md#gettopics) | **GET** /api/Topics | |
+| [**GetTotal**](TopicsApi.md#gettotal) | **GET** /api/Topics/Total | |
+
+
+# **CreateTopic**
+> string CreateTopic (string? topicId = null)
+
+
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Topica.Client.Api;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Example
+{
+ public class CreateTopicExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ // Configure HTTP basic authorization: Basic
+ config.Username = "YOUR_USERNAME";
+ config.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: ApiKey
+ config.AddApiKey("X-API-KEY", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("X-API-KEY", "Bearer");
+ // Configure API key authorization: Bearer
+ config.AddApiKey("Authorization", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("Authorization", "Bearer");
+
+ var apiInstance = new TopicsApi(config);
+ var topicId = "topicId_example"; // string? | (optional)
+
+ try
+ {
+ string result = apiInstance.CreateTopic(topicId);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling TopicsApi.CreateTopic: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the CreateTopicWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ ApiResponse response = apiInstance.CreateTopicWithHttpInfo(topicId);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling TopicsApi.CreateTopicWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **topicId** | **string?** | | [optional] |
+
+### Return type
+
+**string**
+
+### Authorization
+
+[Basic](../README.md#Basic), [ApiKey](../README.md#ApiKey), [Bearer](../README.md#Bearer)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain, application/json, text/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **400** | Bad Request | - |
+| **200** | Success | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **DeleteMessage**
+> void DeleteMessage (string topicId, Guid messageId)
+
+
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Topica.Client.Api;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Example
+{
+ public class DeleteMessageExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ // Configure HTTP basic authorization: Basic
+ config.Username = "YOUR_USERNAME";
+ config.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: ApiKey
+ config.AddApiKey("X-API-KEY", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("X-API-KEY", "Bearer");
+ // Configure API key authorization: Bearer
+ config.AddApiKey("Authorization", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("Authorization", "Bearer");
+
+ var apiInstance = new TopicsApi(config);
+ var topicId = "topicId_example"; // string |
+ var messageId = "messageId_example"; // Guid |
+
+ try
+ {
+ apiInstance.DeleteMessage(topicId, messageId);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling TopicsApi.DeleteMessage: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the DeleteMessageWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ apiInstance.DeleteMessageWithHttpInfo(topicId, messageId);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling TopicsApi.DeleteMessageWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **topicId** | **string** | | |
+| **messageId** | **Guid** | | |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[Basic](../README.md#Basic), [ApiKey](../README.md#ApiKey), [Bearer](../README.md#Bearer)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Success | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **DeleteTopic**
+> void DeleteTopic (string topicId)
+
+
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Topica.Client.Api;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Example
+{
+ public class DeleteTopicExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ // Configure HTTP basic authorization: Basic
+ config.Username = "YOUR_USERNAME";
+ config.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: ApiKey
+ config.AddApiKey("X-API-KEY", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("X-API-KEY", "Bearer");
+ // Configure API key authorization: Bearer
+ config.AddApiKey("Authorization", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("Authorization", "Bearer");
+
+ var apiInstance = new TopicsApi(config);
+ var topicId = "topicId_example"; // string |
+
+ try
+ {
+ apiInstance.DeleteTopic(topicId);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling TopicsApi.DeleteTopic: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the DeleteTopicWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ apiInstance.DeleteTopicWithHttpInfo(topicId);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling TopicsApi.DeleteTopicWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **topicId** | **string** | | |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[Basic](../README.md#Basic), [ApiKey](../README.md#ApiKey), [Bearer](../README.md#Bearer)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Success | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **GetTopic**
+> Topic GetTopic (string topicId)
+
+
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Topica.Client.Api;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Example
+{
+ public class GetTopicExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ // Configure HTTP basic authorization: Basic
+ config.Username = "YOUR_USERNAME";
+ config.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: ApiKey
+ config.AddApiKey("X-API-KEY", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("X-API-KEY", "Bearer");
+ // Configure API key authorization: Bearer
+ config.AddApiKey("Authorization", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("Authorization", "Bearer");
+
+ var apiInstance = new TopicsApi(config);
+ var topicId = "topicId_example"; // string |
+
+ try
+ {
+ Topic result = apiInstance.GetTopic(topicId);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling TopicsApi.GetTopic: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the GetTopicWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ ApiResponse response = apiInstance.GetTopicWithHttpInfo(topicId);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling TopicsApi.GetTopicWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **topicId** | **string** | | |
+
+### Return type
+
+[**Topic**](Topic.md)
+
+### Authorization
+
+[Basic](../README.md#Basic), [ApiKey](../README.md#ApiKey), [Bearer](../README.md#Bearer)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain, application/json, text/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **404** | Not Found | - |
+| **200** | Success | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **GetTopics**
+> TopicMetaPaginatedResponse GetTopics (int? page = null, int? pageSize = null, string? search = null)
+
+
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Topica.Client.Api;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Example
+{
+ public class GetTopicsExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ // Configure HTTP basic authorization: Basic
+ config.Username = "YOUR_USERNAME";
+ config.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: ApiKey
+ config.AddApiKey("X-API-KEY", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("X-API-KEY", "Bearer");
+ // Configure API key authorization: Bearer
+ config.AddApiKey("Authorization", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("Authorization", "Bearer");
+
+ var apiInstance = new TopicsApi(config);
+ var page = 0; // int? | (optional) (default to 0)
+ var pageSize = 25; // int? | (optional) (default to 25)
+ var search = "search_example"; // string? | (optional)
+
+ try
+ {
+ TopicMetaPaginatedResponse result = apiInstance.GetTopics(page, pageSize, search);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling TopicsApi.GetTopics: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the GetTopicsWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ ApiResponse response = apiInstance.GetTopicsWithHttpInfo(page, pageSize, search);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling TopicsApi.GetTopicsWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **page** | **int?** | | [optional] [default to 0] |
+| **pageSize** | **int?** | | [optional] [default to 25] |
+| **search** | **string?** | | [optional] |
+
+### Return type
+
+[**TopicMetaPaginatedResponse**](TopicMetaPaginatedResponse.md)
+
+### Authorization
+
+[Basic](../README.md#Basic), [ApiKey](../README.md#ApiKey), [Bearer](../README.md#Bearer)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain, application/json, text/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **404** | Not Found | - |
+| **200** | Success | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **GetTotal**
+> int GetTotal ()
+
+
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Topica.Client.Api;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Example
+{
+ public class GetTotalExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://localhost";
+ // Configure HTTP basic authorization: Basic
+ config.Username = "YOUR_USERNAME";
+ config.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: ApiKey
+ config.AddApiKey("X-API-KEY", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("X-API-KEY", "Bearer");
+ // Configure API key authorization: Bearer
+ config.AddApiKey("Authorization", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // config.AddApiKeyPrefix("Authorization", "Bearer");
+
+ var apiInstance = new TopicsApi(config);
+
+ try
+ {
+ int result = apiInstance.GetTotal();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling TopicsApi.GetTotal: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the GetTotalWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ ApiResponse response = apiInstance.GetTotalWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling TopicsApi.GetTotalWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+**int**
+
+### Authorization
+
+[Basic](../README.md#Basic), [ApiKey](../README.md#ApiKey), [Bearer](../README.md#Bearer)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: text/plain, application/json, text/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **404** | Not Found | - |
+| **200** | Success | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/Source/Clients/CSharp/Topica.Client/git_push.sh b/Source/Clients/CSharp/Topica.Client/git_push.sh
new file mode 100644
index 0000000..f53a75d
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/git_push.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
+#
+# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
+
+git_user_id=$1
+git_repo_id=$2
+release_note=$3
+git_host=$4
+
+if [ "$git_host" = "" ]; then
+ git_host="github.com"
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
+fi
+
+if [ "$git_user_id" = "" ]; then
+ git_user_id="GIT_USER_ID"
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
+fi
+
+if [ "$git_repo_id" = "" ]; then
+ git_repo_id="GIT_REPO_ID"
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
+fi
+
+if [ "$release_note" = "" ]; then
+ release_note="Minor update"
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
+fi
+
+# Initialize the local directory as a Git repository
+git init
+
+# Adds the files in the local repository and stages them for commit.
+git add .
+
+# Commits the tracked changes and prepares them to be pushed to a remote repository.
+git commit -m "$release_note"
+
+# Sets the new remote
+git_remote=$(git remote)
+if [ "$git_remote" = "" ]; then # git remote not defined
+
+ if [ "$GIT_TOKEN" = "" ]; then
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
+ else
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
+ fi
+
+fi
+
+git pull origin master
+
+# Pushes (Forces) the changes in the local repository up to the remote repository
+echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
+git push origin master 2>&1 | grep -v 'To https'
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Api/LoginApiTests.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Api/LoginApiTests.cs
new file mode 100644
index 0000000..8cb199f
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Api/LoginApiTests.cs
@@ -0,0 +1,69 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+using System;
+using System.IO;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Reflection;
+using RestSharp;
+using Xunit;
+
+using Topica.Client.Client;
+using Topica.Client.Api;
+// uncomment below to import models
+//using Topica.Client.Model;
+
+namespace Topica.Client.Test.Api
+{
+ ///
+ /// Class for testing LoginApi
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the API endpoint.
+ ///
+ public class LoginApiTests : IDisposable
+ {
+ private LoginApi instance;
+
+ public LoginApiTests()
+ {
+ instance = new LoginApi();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of LoginApi
+ ///
+ [Fact]
+ public void InstanceTest()
+ {
+ // TODO uncomment below to test 'IsType' LoginApi
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test Login
+ ///
+ [Fact]
+ public void LoginTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //LoginModel? loginModel = null;
+ //var response = instance.Login(loginModel);
+ //Assert.IsType(response);
+ }
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Api/MessagesApiTests.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Api/MessagesApiTests.cs
new file mode 100644
index 0000000..9d83499
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Api/MessagesApiTests.cs
@@ -0,0 +1,68 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+using System;
+using System.IO;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Reflection;
+using RestSharp;
+using Xunit;
+
+using Topica.Client.Client;
+using Topica.Client.Api;
+
+namespace Topica.Client.Test.Api
+{
+ ///
+ /// Class for testing MessagesApi
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the API endpoint.
+ ///
+ public class MessagesApiTests : IDisposable
+ {
+ private MessagesApi instance;
+
+ public MessagesApiTests()
+ {
+ instance = new MessagesApi();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of MessagesApi
+ ///
+ [Fact]
+ public void InstanceTest()
+ {
+ // TODO uncomment below to test 'IsType' MessagesApi
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test AddMessage
+ ///
+ [Fact]
+ public void AddMessageTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string? topicId = null;
+ //string? body = null;
+ //var response = instance.AddMessage(topicId, body);
+ //Assert.IsType(response);
+ }
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Api/TopicsApiTests.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Api/TopicsApiTests.cs
new file mode 100644
index 0000000..89c10ac
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Api/TopicsApiTests.cs
@@ -0,0 +1,129 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+using System;
+using System.IO;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Reflection;
+using RestSharp;
+using Xunit;
+
+using Topica.Client.Client;
+using Topica.Client.Api;
+// uncomment below to import models
+//using Topica.Client.Model;
+
+namespace Topica.Client.Test.Api
+{
+ ///
+ /// Class for testing TopicsApi
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the API endpoint.
+ ///
+ public class TopicsApiTests : IDisposable
+ {
+ private TopicsApi instance;
+
+ public TopicsApiTests()
+ {
+ instance = new TopicsApi();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of TopicsApi
+ ///
+ [Fact]
+ public void InstanceTest()
+ {
+ // TODO uncomment below to test 'IsType' TopicsApi
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test CreateTopic
+ ///
+ [Fact]
+ public void CreateTopicTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string? topicId = null;
+ //var response = instance.CreateTopic(topicId);
+ //Assert.IsType(response);
+ }
+
+ ///
+ /// Test DeleteMessage
+ ///
+ [Fact]
+ public void DeleteMessageTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string topicId = null;
+ //Guid messageId = null;
+ //instance.DeleteMessage(topicId, messageId);
+ }
+
+ ///
+ /// Test DeleteTopic
+ ///
+ [Fact]
+ public void DeleteTopicTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string topicId = null;
+ //instance.DeleteTopic(topicId);
+ }
+
+ ///
+ /// Test GetTopic
+ ///
+ [Fact]
+ public void GetTopicTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string topicId = null;
+ //var response = instance.GetTopic(topicId);
+ //Assert.IsType(response);
+ }
+
+ ///
+ /// Test GetTopics
+ ///
+ [Fact]
+ public void GetTopicsTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //int? page = null;
+ //int? pageSize = null;
+ //string? search = null;
+ //var response = instance.GetTopics(page, pageSize, search);
+ //Assert.IsType(response);
+ }
+
+ ///
+ /// Test GetTotal
+ ///
+ [Fact]
+ public void GetTotalTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //var response = instance.GetTotal();
+ //Assert.IsType(response);
+ }
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/EntryTests.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/EntryTests.cs
new file mode 100644
index 0000000..0499b4a
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/EntryTests.cs
@@ -0,0 +1,84 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Topica.Client.Model;
+using Topica.Client.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Topica.Client.Test.Model
+{
+ ///
+ /// Class for testing Entry
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class EntryTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for Entry
+ //private Entry instance;
+
+ public EntryTests()
+ {
+ // TODO uncomment below to create an instance of Entry
+ //instance = new Entry();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of Entry
+ ///
+ [Fact]
+ public void EntryInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Entry
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'CreatedOn'
+ ///
+ [Fact]
+ public void CreatedOnTest()
+ {
+ // TODO unit test for the property 'CreatedOn'
+ }
+
+ ///
+ /// Test the property 'Content'
+ ///
+ [Fact]
+ public void ContentTest()
+ {
+ // TODO unit test for the property 'Content'
+ }
+
+ ///
+ /// Test the property 'EntryId'
+ ///
+ [Fact]
+ public void EntryIdTest()
+ {
+ // TODO unit test for the property 'EntryId'
+ }
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/LoginModelTests.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/LoginModelTests.cs
new file mode 100644
index 0000000..9994575
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/LoginModelTests.cs
@@ -0,0 +1,75 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Topica.Client.Model;
+using Topica.Client.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Topica.Client.Test.Model
+{
+ ///
+ /// Class for testing LoginModel
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class LoginModelTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for LoginModel
+ //private LoginModel instance;
+
+ public LoginModelTests()
+ {
+ // TODO uncomment below to create an instance of LoginModel
+ //instance = new LoginModel();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of LoginModel
+ ///
+ [Fact]
+ public void LoginModelInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" LoginModel
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'Username'
+ ///
+ [Fact]
+ public void UsernameTest()
+ {
+ // TODO unit test for the property 'Username'
+ }
+
+ ///
+ /// Test the property 'Password'
+ ///
+ [Fact]
+ public void PasswordTest()
+ {
+ // TODO unit test for the property 'Password'
+ }
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/ProblemDetailsTests.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/ProblemDetailsTests.cs
new file mode 100644
index 0000000..1084b83
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/ProblemDetailsTests.cs
@@ -0,0 +1,102 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Topica.Client.Model;
+using Topica.Client.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Topica.Client.Test.Model
+{
+ ///
+ /// Class for testing ProblemDetails
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class ProblemDetailsTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for ProblemDetails
+ //private ProblemDetails instance;
+
+ public ProblemDetailsTests()
+ {
+ // TODO uncomment below to create an instance of ProblemDetails
+ //instance = new ProblemDetails();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of ProblemDetails
+ ///
+ [Fact]
+ public void ProblemDetailsInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" ProblemDetails
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'Type'
+ ///
+ [Fact]
+ public void TypeTest()
+ {
+ // TODO unit test for the property 'Type'
+ }
+
+ ///
+ /// Test the property 'Title'
+ ///
+ [Fact]
+ public void TitleTest()
+ {
+ // TODO unit test for the property 'Title'
+ }
+
+ ///
+ /// Test the property 'Status'
+ ///
+ [Fact]
+ public void StatusTest()
+ {
+ // TODO unit test for the property 'Status'
+ }
+
+ ///
+ /// Test the property 'Detail'
+ ///
+ [Fact]
+ public void DetailTest()
+ {
+ // TODO unit test for the property 'Detail'
+ }
+
+ ///
+ /// Test the property 'Instance'
+ ///
+ [Fact]
+ public void InstanceTest()
+ {
+ // TODO unit test for the property 'Instance'
+ }
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/TopicMetaPaginatedResponseTests.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/TopicMetaPaginatedResponseTests.cs
new file mode 100644
index 0000000..402811c
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/TopicMetaPaginatedResponseTests.cs
@@ -0,0 +1,93 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Topica.Client.Model;
+using Topica.Client.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Topica.Client.Test.Model
+{
+ ///
+ /// Class for testing TopicMetaPaginatedResponse
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class TopicMetaPaginatedResponseTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for TopicMetaPaginatedResponse
+ //private TopicMetaPaginatedResponse instance;
+
+ public TopicMetaPaginatedResponseTests()
+ {
+ // TODO uncomment below to create an instance of TopicMetaPaginatedResponse
+ //instance = new TopicMetaPaginatedResponse();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of TopicMetaPaginatedResponse
+ ///
+ [Fact]
+ public void TopicMetaPaginatedResponseInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" TopicMetaPaginatedResponse
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'Data'
+ ///
+ [Fact]
+ public void DataTest()
+ {
+ // TODO unit test for the property 'Data'
+ }
+
+ ///
+ /// Test the property 'Page'
+ ///
+ [Fact]
+ public void PageTest()
+ {
+ // TODO unit test for the property 'Page'
+ }
+
+ ///
+ /// Test the property 'PageSize'
+ ///
+ [Fact]
+ public void PageSizeTest()
+ {
+ // TODO unit test for the property 'PageSize'
+ }
+
+ ///
+ /// Test the property 'Total'
+ ///
+ [Fact]
+ public void TotalTest()
+ {
+ // TODO unit test for the property 'Total'
+ }
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/TopicMetaTests.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/TopicMetaTests.cs
new file mode 100644
index 0000000..abd5de7
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/TopicMetaTests.cs
@@ -0,0 +1,75 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Topica.Client.Model;
+using Topica.Client.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Topica.Client.Test.Model
+{
+ ///
+ /// Class for testing TopicMeta
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class TopicMetaTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for TopicMeta
+ //private TopicMeta instance;
+
+ public TopicMetaTests()
+ {
+ // TODO uncomment below to create an instance of TopicMeta
+ //instance = new TopicMeta();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of TopicMeta
+ ///
+ [Fact]
+ public void TopicMetaInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" TopicMeta
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'Id'
+ ///
+ [Fact]
+ public void IdTest()
+ {
+ // TODO unit test for the property 'Id'
+ }
+
+ ///
+ /// Test the property 'CreatedOn'
+ ///
+ [Fact]
+ public void CreatedOnTest()
+ {
+ // TODO unit test for the property 'CreatedOn'
+ }
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/TopicTests.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/TopicTests.cs
new file mode 100644
index 0000000..7d925df
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Model/TopicTests.cs
@@ -0,0 +1,84 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Topica.Client.Model;
+using Topica.Client.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Topica.Client.Test.Model
+{
+ ///
+ /// Class for testing Topic
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class TopicTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for Topic
+ //private Topic instance;
+
+ public TopicTests()
+ {
+ // TODO uncomment below to create an instance of Topic
+ //instance = new Topic();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of Topic
+ ///
+ [Fact]
+ public void TopicInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" Topic
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'Id'
+ ///
+ [Fact]
+ public void IdTest()
+ {
+ // TODO unit test for the property 'Id'
+ }
+
+ ///
+ /// Test the property 'CreatedOn'
+ ///
+ [Fact]
+ public void CreatedOnTest()
+ {
+ // TODO unit test for the property 'CreatedOn'
+ }
+
+ ///
+ /// Test the property 'History'
+ ///
+ [Fact]
+ public void HistoryTest()
+ {
+ // TODO unit test for the property 'History'
+ }
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Topica.Client.Test.csproj b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Topica.Client.Test.csproj
new file mode 100644
index 0000000..1b1ffaf
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client.Test/Topica.Client.Test.csproj
@@ -0,0 +1,20 @@
+
+
+
+ Topica.Client.Test
+ Topica.Client.Test
+ net8.0
+ false
+ annotations
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client/Api/LoginApi.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client/Api/LoginApi.cs
new file mode 100644
index 0000000..cf9ad94
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client/Api/LoginApi.cs
@@ -0,0 +1,378 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Net;
+using System.Net.Mime;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Topica.Client.Api
+{
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface ILoginApiSync : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// (optional)
+ /// Index associated with the operation.
+ /// string
+ string Login(LoginModel? loginModel = default(LoginModel?), int operationIndex = 0);
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// (optional)
+ /// Index associated with the operation.
+ /// ApiResponse of string
+ ApiResponse LoginWithHttpInfo(LoginModel? loginModel = default(LoginModel?), int operationIndex = 0);
+ #endregion Synchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface ILoginApiAsync : IApiAccessor
+ {
+ #region Asynchronous Operations
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// (optional)
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of string
+ System.Threading.Tasks.Task LoginAsync(LoginModel? loginModel = default(LoginModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// (optional)
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (string)
+ System.Threading.Tasks.Task> LoginWithHttpInfoAsync(LoginModel? loginModel = default(LoginModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ #endregion Asynchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface ILoginApi : ILoginApiSync, ILoginApiAsync
+ {
+
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public partial class LoginApi : ILoginApi
+ {
+ private Topica.Client.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public LoginApi() : this((string)null)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public LoginApi(string basePath)
+ {
+ this.Configuration = Topica.Client.Client.Configuration.MergeConfigurations(
+ Topica.Client.Client.GlobalConfiguration.Instance,
+ new Topica.Client.Client.Configuration { BasePath = basePath }
+ );
+ this.Client = new Topica.Client.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new Topica.Client.Client.ApiClient(this.Configuration.BasePath);
+ this.ExceptionFactory = Topica.Client.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// using Configuration object
+ ///
+ /// An instance of Configuration
+ ///
+ public LoginApi(Topica.Client.Client.Configuration configuration)
+ {
+ if (configuration == null) throw new ArgumentNullException("configuration");
+
+ this.Configuration = Topica.Client.Client.Configuration.MergeConfigurations(
+ Topica.Client.Client.GlobalConfiguration.Instance,
+ configuration
+ );
+ this.Client = new Topica.Client.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new Topica.Client.Client.ApiClient(this.Configuration.BasePath);
+ ExceptionFactory = Topica.Client.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// using a Configuration object and client instance.
+ ///
+ /// The client interface for synchronous API access.
+ /// The client interface for asynchronous API access.
+ /// The configuration object.
+ public LoginApi(Topica.Client.Client.ISynchronousClient client, Topica.Client.Client.IAsynchronousClient asyncClient, Topica.Client.Client.IReadableConfiguration configuration)
+ {
+ if (client == null) throw new ArgumentNullException("client");
+ if (asyncClient == null) throw new ArgumentNullException("asyncClient");
+ if (configuration == null) throw new ArgumentNullException("configuration");
+
+ this.Client = client;
+ this.AsynchronousClient = asyncClient;
+ this.Configuration = configuration;
+ this.ExceptionFactory = Topica.Client.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// The client for accessing this underlying API asynchronously.
+ ///
+ public Topica.Client.Client.IAsynchronousClient AsynchronousClient { get; set; }
+
+ ///
+ /// The client for accessing this underlying API synchronously.
+ ///
+ public Topica.Client.Client.ISynchronousClient Client { get; set; }
+
+ ///
+ /// Gets the base path of the API client.
+ ///
+ /// The base path
+ public string GetBasePath()
+ {
+ return this.Configuration.BasePath;
+ }
+
+ ///
+ /// Gets or sets the configuration object
+ ///
+ /// An instance of the Configuration
+ public Topica.Client.Client.IReadableConfiguration Configuration { get; set; }
+
+ ///
+ /// Provides a factory method hook for the creation of exceptions.
+ ///
+ public Topica.Client.Client.ExceptionFactory ExceptionFactory
+ {
+ get
+ {
+ if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
+ {
+ throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
+ }
+ return _exceptionFactory;
+ }
+ set { _exceptionFactory = value; }
+ }
+
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// (optional)
+ /// Index associated with the operation.
+ /// string
+ public string Login(LoginModel? loginModel = default(LoginModel?), int operationIndex = 0)
+ {
+ Topica.Client.Client.ApiResponse localVarResponse = LoginWithHttpInfo(loginModel);
+ return localVarResponse.Data;
+ }
+
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// (optional)
+ /// Index associated with the operation.
+ /// ApiResponse of string
+ public Topica.Client.Client.ApiResponse LoginWithHttpInfo(LoginModel? loginModel = default(LoginModel?), int operationIndex = 0)
+ {
+ Topica.Client.Client.RequestOptions localVarRequestOptions = new Topica.Client.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ "application/json",
+ "text/json",
+ "application/*+json"
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "text/plain",
+ "application/json",
+ "text/json"
+ };
+
+ var localVarContentType = Topica.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Topica.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+ localVarRequestOptions.Data = loginModel;
+
+ localVarRequestOptions.Operation = "LoginApi.Login";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+ // authentication (Basic) required
+ // http basic authentication required
+ if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization"))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Topica.Client.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
+ }
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("X-API-KEY")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("X-API-KEY", this.Configuration.GetApiKeyWithPrefix("X-API-KEY"));
+ }
+ // authentication (Bearer) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Post("/api/Login", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Login", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// (optional)
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of string
+ public async System.Threading.Tasks.Task LoginAsync(LoginModel? loginModel = default(LoginModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Topica.Client.Client.ApiResponse localVarResponse = await LoginWithHttpInfoAsync(loginModel, operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// (optional)
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (string)
+ public async System.Threading.Tasks.Task> LoginWithHttpInfoAsync(LoginModel? loginModel = default(LoginModel?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ Topica.Client.Client.RequestOptions localVarRequestOptions = new Topica.Client.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ "application/json",
+ "text/json",
+ "application/*+json"
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "text/plain",
+ "application/json",
+ "text/json"
+ };
+
+ var localVarContentType = Topica.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Topica.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+ localVarRequestOptions.Data = loginModel;
+
+ localVarRequestOptions.Operation = "LoginApi.Login";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+ // authentication (Basic) required
+ // http basic authentication required
+ if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization"))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Topica.Client.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
+ }
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("X-API-KEY")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("X-API-KEY", this.Configuration.GetApiKeyWithPrefix("X-API-KEY"));
+ }
+ // authentication (Bearer) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.PostAsync("/api/Login", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Login", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client/Api/MessagesApi.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client/Api/MessagesApi.cs
new file mode 100644
index 0000000..229b166
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client/Api/MessagesApi.cs
@@ -0,0 +1,393 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Net;
+using System.Net.Mime;
+using Topica.Client.Client;
+
+namespace Topica.Client.Api
+{
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IMessagesApiSync : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ /// Creates a message under topic id.
+ ///
+ /// Thrown when fails to make API call
+ /// If topicId is null, a new Topic will be generated with a random GUID (optional)
+ /// (optional)
+ /// Index associated with the operation.
+ /// string
+ string AddMessage(string? topicId = default(string?), string? body = default(string?), int operationIndex = 0);
+
+ ///
+ /// Creates a message under topic id.
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// If topicId is null, a new Topic will be generated with a random GUID (optional)
+ /// (optional)
+ /// Index associated with the operation.
+ /// ApiResponse of string
+ ApiResponse AddMessageWithHttpInfo(string? topicId = default(string?), string? body = default(string?), int operationIndex = 0);
+ #endregion Synchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IMessagesApiAsync : IApiAccessor
+ {
+ #region Asynchronous Operations
+ ///
+ /// Creates a message under topic id.
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// If topicId is null, a new Topic will be generated with a random GUID (optional)
+ /// (optional)
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of string
+ System.Threading.Tasks.Task AddMessageAsync(string? topicId = default(string?), string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Creates a message under topic id.
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// If topicId is null, a new Topic will be generated with a random GUID (optional)
+ /// (optional)
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (string)
+ System.Threading.Tasks.Task> AddMessageWithHttpInfoAsync(string? topicId = default(string?), string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ #endregion Asynchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IMessagesApi : IMessagesApiSync, IMessagesApiAsync
+ {
+
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public partial class MessagesApi : IMessagesApi
+ {
+ private Topica.Client.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public MessagesApi() : this((string)null)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public MessagesApi(string basePath)
+ {
+ this.Configuration = Topica.Client.Client.Configuration.MergeConfigurations(
+ Topica.Client.Client.GlobalConfiguration.Instance,
+ new Topica.Client.Client.Configuration { BasePath = basePath }
+ );
+ this.Client = new Topica.Client.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new Topica.Client.Client.ApiClient(this.Configuration.BasePath);
+ this.ExceptionFactory = Topica.Client.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// using Configuration object
+ ///
+ /// An instance of Configuration
+ ///
+ public MessagesApi(Topica.Client.Client.Configuration configuration)
+ {
+ if (configuration == null) throw new ArgumentNullException("configuration");
+
+ this.Configuration = Topica.Client.Client.Configuration.MergeConfigurations(
+ Topica.Client.Client.GlobalConfiguration.Instance,
+ configuration
+ );
+ this.Client = new Topica.Client.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new Topica.Client.Client.ApiClient(this.Configuration.BasePath);
+ ExceptionFactory = Topica.Client.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// using a Configuration object and client instance.
+ ///
+ /// The client interface for synchronous API access.
+ /// The client interface for asynchronous API access.
+ /// The configuration object.
+ public MessagesApi(Topica.Client.Client.ISynchronousClient client, Topica.Client.Client.IAsynchronousClient asyncClient, Topica.Client.Client.IReadableConfiguration configuration)
+ {
+ if (client == null) throw new ArgumentNullException("client");
+ if (asyncClient == null) throw new ArgumentNullException("asyncClient");
+ if (configuration == null) throw new ArgumentNullException("configuration");
+
+ this.Client = client;
+ this.AsynchronousClient = asyncClient;
+ this.Configuration = configuration;
+ this.ExceptionFactory = Topica.Client.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// The client for accessing this underlying API asynchronously.
+ ///
+ public Topica.Client.Client.IAsynchronousClient AsynchronousClient { get; set; }
+
+ ///
+ /// The client for accessing this underlying API synchronously.
+ ///
+ public Topica.Client.Client.ISynchronousClient Client { get; set; }
+
+ ///
+ /// Gets the base path of the API client.
+ ///
+ /// The base path
+ public string GetBasePath()
+ {
+ return this.Configuration.BasePath;
+ }
+
+ ///
+ /// Gets or sets the configuration object
+ ///
+ /// An instance of the Configuration
+ public Topica.Client.Client.IReadableConfiguration Configuration { get; set; }
+
+ ///
+ /// Provides a factory method hook for the creation of exceptions.
+ ///
+ public Topica.Client.Client.ExceptionFactory ExceptionFactory
+ {
+ get
+ {
+ if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
+ {
+ throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
+ }
+ return _exceptionFactory;
+ }
+ set { _exceptionFactory = value; }
+ }
+
+ ///
+ /// Creates a message under topic id.
+ ///
+ /// Thrown when fails to make API call
+ /// If topicId is null, a new Topic will be generated with a random GUID (optional)
+ /// (optional)
+ /// Index associated with the operation.
+ /// string
+ public string AddMessage(string? topicId = default(string?), string? body = default(string?), int operationIndex = 0)
+ {
+ Topica.Client.Client.ApiResponse localVarResponse = AddMessageWithHttpInfo(topicId, body);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Creates a message under topic id.
+ ///
+ /// Thrown when fails to make API call
+ /// If topicId is null, a new Topic will be generated with a random GUID (optional)
+ /// (optional)
+ /// Index associated with the operation.
+ /// ApiResponse of string
+ public Topica.Client.Client.ApiResponse AddMessageWithHttpInfo(string? topicId = default(string?), string? body = default(string?), int operationIndex = 0)
+ {
+ Topica.Client.Client.RequestOptions localVarRequestOptions = new Topica.Client.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ "application/json",
+ "text/json",
+ "application/*+json"
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "text/plain",
+ "application/json",
+ "text/json"
+ };
+
+ var localVarContentType = Topica.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Topica.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+ if (topicId != null)
+ {
+ localVarRequestOptions.QueryParameters.Add(Topica.Client.Client.ClientUtils.ParameterToMultiMap("", "topicId", topicId));
+ }
+ localVarRequestOptions.Data = body;
+
+ localVarRequestOptions.Operation = "MessagesApi.AddMessage";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+ // authentication (Basic) required
+ // http basic authentication required
+ if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization"))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Topica.Client.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
+ }
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("X-API-KEY")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("X-API-KEY", this.Configuration.GetApiKeyWithPrefix("X-API-KEY"));
+ }
+ // authentication (Bearer) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Post("/api/Messages", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("AddMessage", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// Creates a message under topic id.
+ ///
+ /// Thrown when fails to make API call
+ /// If topicId is null, a new Topic will be generated with a random GUID (optional)
+ /// (optional)
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of string
+ public async System.Threading.Tasks.Task AddMessageAsync(string? topicId = default(string?), string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Topica.Client.Client.ApiResponse localVarResponse = await AddMessageWithHttpInfoAsync(topicId, body, operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Creates a message under topic id.
+ ///
+ /// Thrown when fails to make API call
+ /// If topicId is null, a new Topic will be generated with a random GUID (optional)
+ /// (optional)
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (string)
+ public async System.Threading.Tasks.Task> AddMessageWithHttpInfoAsync(string? topicId = default(string?), string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ Topica.Client.Client.RequestOptions localVarRequestOptions = new Topica.Client.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ "application/json",
+ "text/json",
+ "application/*+json"
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "text/plain",
+ "application/json",
+ "text/json"
+ };
+
+ var localVarContentType = Topica.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Topica.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+ if (topicId != null)
+ {
+ localVarRequestOptions.QueryParameters.Add(Topica.Client.Client.ClientUtils.ParameterToMultiMap("", "topicId", topicId));
+ }
+ localVarRequestOptions.Data = body;
+
+ localVarRequestOptions.Operation = "MessagesApi.AddMessage";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+ // authentication (Basic) required
+ // http basic authentication required
+ if (!string.IsNullOrEmpty(this.Configuration.Username) || !string.IsNullOrEmpty(this.Configuration.Password) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization"))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + Topica.Client.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password));
+ }
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("X-API-KEY")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("X-API-KEY", this.Configuration.GetApiKeyWithPrefix("X-API-KEY"));
+ }
+ // authentication (Bearer) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.PostAsync("/api/Messages", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("AddMessage", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ }
+}
diff --git a/Source/Clients/CSharp/Topica.Client/src/Topica.Client/Api/TopicsApi.cs b/Source/Clients/CSharp/Topica.Client/src/Topica.Client/Api/TopicsApi.cs
new file mode 100644
index 0000000..552a97c
--- /dev/null
+++ b/Source/Clients/CSharp/Topica.Client/src/Topica.Client/Api/TopicsApi.cs
@@ -0,0 +1,1501 @@
+/*
+ * Topica.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ *
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Net;
+using System.Net.Mime;
+using Topica.Client.Client;
+using Topica.Client.Model;
+
+namespace Topica.Client.Api
+{
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface ITopicsApiSync : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// (optional)
+ /// Index associated with the operation.
+ /// string
+ string CreateTopic(string? topicId = default(string?), int operationIndex = 0);
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// (optional)
+ /// Index associated with the operation.
+ /// ApiResponse of string
+ ApiResponse CreateTopicWithHttpInfo(string? topicId = default(string?), int operationIndex = 0);
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ ///
+ ///
+ /// Index associated with the operation.
+ ///
+ void DeleteMessage(string topicId, Guid messageId, int operationIndex = 0);
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ ///
+ ///
+ /// Index associated with the operation.
+ /// ApiResponse of Object(void)
+ ApiResponse