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
- RestSharp - 111.4.1 or later
- Json.NET - 7.0.0 or later
- JsonSubTypes - 1.2.0 or later
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
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AuthApi | ApiV1AuthTokenPost | POST /api/v1/auth/token | Get token |
| AuthApi | ApiV1AuthTokenRefreshPost | POST /api/v1/auth/token/refresh | Refresh token |
| AuthApi | ApiV1AuthTokenRevokePost | POST /api/v1/auth/token/revoke | Revoke token operation |
| DlevelLookupApi | ApiV1EnvironmentFWDlevelEntityNameDtonameGet | GET /api/v1/production/FW/DlevelEntityName/DtoName | List of internal and external entity names for deserialization (dlevel) of the requested DTO entity |
| DlevelLookupApi | ApiV1EnvironmentFWDlevelKeyDtonameGet | GET /api/v1/production/FW/DlevelKey/DtoName | List of standard dlevelkey names for deserialization of the requested DTO entity |
| LookupApi | ApiV1EnvironmentFWLookupGet | GET /api/v1/production/FW/Lookup | List of available Lookups |
| LookupApi | ApiV1EnvironmentModuleAcronLookupLookupNameGet | GET /api/v1/production/ModuleAcron/Lookup/LookupName | Get lookup data |
| LookupApi | ApiV1EnvironmentModuleAcronLookupLookupNamePost | POST /api/v1/production/ModuleAcron/Lookup/LookupName | Post lookup data |
| MetadataDTOApi | ApiV1EnvironmentFWMetadataDTODtonameGet | GET /api/v1/production/FW/MetadataDTO/DtoName | Get application domain metadata |
Documentation for Models
- Model.AuthResponse
- Model.AuthTokenBody
- Model.DlevelEntityNameDTO
- Model.DlevelKeyDTO
- Model.JwtResponse
- Model.LookupItemDTO
- Model.RefreshTokenRequest
- Model.ResourceMetaDTO
- Model.ResourceMetaPropertyDTO
- Model.ResourceMetaRangeValueDTO
- Model.ResourceMetaRelationDTO
- Model.RevokeTokenRequest
- Model.RevokeTokenResponse
- Model.StringObjectKeyValuePair
Documentation for Authorization
Basic
- Type: HTTP basic authentication