ClientApi
| Method | Description |
|---|---|
| GetVersion | Get the IdeaStatica version |
GetVersion
string GetVersion ()
Get the IdeaStatica version
Parameters
This endpoint does not need any parameter.
Return type
string
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.RcsApi.Api;
using IdeaStatiCa.RcsApi.Client;
using IdeaStatiCa.RcsApi.Model;
namespace Example
{
public class GetVersionExample
{
public static void Main()
{
// Create the client which is connected to the service.
ConnectionApiClientFactory clientFactory = new ConnectionApiClientFactory("http://localhost:5000");
using (var conClient = await clientFactory.CreateConnectionApiClient())
{
try
{
// Get the IdeaStatica version
string result = conClient.Client.GetVersion();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Client.GetVersion: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
}
}
}
}
}
Code Samples
Warning
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/1/clients/idea-service-version
Using the GetVersionWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get the IdeaStatica version
ApiResponse<string> response = conClient.Client.GetVersionWithHttpInfo();
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 ClientApi.GetVersionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain, application/xml, text/xml, application/json, text/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]