Skip to main content
Version: 2025.003.000 (beta)

WebApi - IN

This is Swagger Docs for Integration WebApi Teamsystemn Enterprise Cloud, more detail at https://swagger.io.

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: v2025.1000
  • SDK version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.dotnet.CSharpClientCodegen For more information, please visit https://mysupport.teamsystem.com/

Frameworks supported

  • .NET 4.7.1 or later

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742

Installation

Run the following commands to generate the DLL

cd src/IO.Swagger
dotnet restore
dotnet build

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using Api;
using Client;
using Model;

Packaging

A .nuspec is included with the project. You can follow the Nuget quickstart to create and publish packages.

This .nuspec uses placeholders from the .csproj, so build the .csproj directly:

nuget pack -Build -OutputDirectory out csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

Getting Started

using System;
using System.Diagnostics;
using Api;
using Client;
using Model;

namespace Example
{
public class Example
{
public void main()
{
// Configure HTTP basic authorization: Basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";

var apiInstance = new AuthApi();
var authorizationScope = authorizationScope_example; // string | The environment where this operation will be executed. This must match with the environment in the url.
var username = username_example; // string | (optional)
var password = password_example; // string | (optional)
var grantType = grantType_example; // string | (optional)
var scope = scope_example; // string | (optional)
var token = token_example; // string | (optional)
var acceptLanguage = acceptLanguage_example; // string | Example for multilanguage (optional) (default to it-IT)

try
{
// Get token
JwtResponse result = apiInstance.ApiV1AuthTokenPost(authorizationScope, username, password, grantType, scope, token, acceptLanguage);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthApi.ApiV1AuthTokenPost: " + e.Message );
}
}
}
}

Documentation for API Endpoints

All URIs are relative to https://apicsdemo.teamsystem.io

ClassMethodHTTP requestDescription
AuthApiApiV1AuthTokenPostPOST /api/v1/auth/tokenGet token
AuthApiApiV1AuthTokenRefreshPostPOST /api/v1/auth/token/refreshRefresh token
AuthApiApiV1AuthTokenRevokePostPOST /api/v1/auth/token/revokeRevoke token operation
DlevelLookupApiApiV1EnvironmentFWDlevelEntityNameDtonameGetGET /api/v1/production/FW/DlevelEntityName/DtoNameList of internal and external entity names for deserialization (dlevel) of the requested DTO entity
DlevelLookupApiApiV1EnvironmentFWDlevelKeyDtonameGetGET /api/v1/production/FW/DlevelKey/DtoNameList of standard dlevelkey names for deserialization of the requested DTO entity
LookupApiApiV1EnvironmentFWLookupGetGET /api/v1/production/FW/LookupList of available Lookups
LookupApiApiV1EnvironmentModuleAcronLookupLookupNameGetGET /api/v1/production/ModuleAcron/Lookup/LookupNameGet lookup data
LookupApiApiV1EnvironmentModuleAcronLookupLookupNamePostPOST /api/v1/production/ModuleAcron/Lookup/LookupNamePost lookup data
MetadataDTOApiApiV1EnvironmentFWMetadataDTODtonameGetGET /api/v1/production/FW/MetadataDTO/DtoNameGet application domain metadata

Documentation for Models

Documentation for Authorization

Basic

  • Type: HTTP basic authentication

Bearer