All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
ApiConfigI18nGet | GET /api/config/i18n | Returns the user specific locale configuration |
ApiConfigTimesheetGet | GET /api/config/timesheet | Returns the timesheet configuration |
ApiPingGet | GET /api/ping | A testing route for the API |
ApiVersionGet | GET /api/version | Returns information about the Kimai release |
I18nConfig ApiConfigI18nGet ()
Returns the user specific locale configuration
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class ApiConfigI18nGetExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("X-AUTH-TOKEN", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-AUTH-TOKEN", "Bearer");
// Configure API key authorization: apiUser
Configuration.Default.ApiKey.Add("X-AUTH-USER", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-AUTH-USER", "Bearer");
var apiInstance = new DefaultApi();
try
{
// Returns the user specific locale configuration
I18nConfig result = apiInstance.ApiConfigI18nGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.ApiConfigI18nGet: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TimesheetConfig ApiConfigTimesheetGet ()
Returns the timesheet configuration
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class ApiConfigTimesheetGetExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("X-AUTH-TOKEN", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-AUTH-TOKEN", "Bearer");
// Configure API key authorization: apiUser
Configuration.Default.ApiKey.Add("X-AUTH-USER", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-AUTH-USER", "Bearer");
var apiInstance = new DefaultApi();
try
{
// Returns the timesheet configuration
TimesheetConfig result = apiInstance.ApiConfigTimesheetGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.ApiConfigTimesheetGet: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ApiPingGet ()
A testing route for the API
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class ApiPingGetExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("X-AUTH-TOKEN", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-AUTH-TOKEN", "Bearer");
// Configure API key authorization: apiUser
Configuration.Default.ApiKey.Add("X-AUTH-USER", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-AUTH-USER", "Bearer");
var apiInstance = new DefaultApi();
try
{
// A testing route for the API
apiInstance.ApiPingGet();
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.ApiPingGet: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Version ApiVersionGet ()
Returns information about the Kimai release
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class ApiVersionGetExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("X-AUTH-TOKEN", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-AUTH-TOKEN", "Bearer");
// Configure API key authorization: apiUser
Configuration.Default.ApiKey.Add("X-AUTH-USER", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-AUTH-USER", "Bearer");
var apiInstance = new DefaultApi();
try
{
// Returns information about the Kimai release
Version result = apiInstance.ApiVersionGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.ApiVersionGet: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]