All URIs are relative to https://smac-poc.mcs-group.com.my/
Method | HTTP request | Description |
---|---|---|
ApiUtilitiesPingGet | GET /api/Utilities/ping | Checks if the service is alive. |
ApiUtilitiesVersionGet | GET /api/Utilities/version | Retrieve the service version. |
PingResponse ApiUtilitiesPingGet ()
Checks if the service is alive.
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ApiUtilitiesPingGetExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://smac-poc.mcs-group.com.my/";
// Configure API key authorization: apiKey
config.AddApiKey("X-SMAC-PLATFORM-API-KEY", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-SMAC-PLATFORM-API-KEY", "Bearer");
var apiInstance = new UtilitiesApi(config);
try
{
// Checks if the service is alive.
PingResponse result = apiInstance.ApiUtilitiesPingGet();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling UtilitiesApi.ApiUtilitiesPingGet: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Checks if the service is alive.
ApiResponse<PingResponse> response = apiInstance.ApiUtilitiesPingGetWithHttpInfo();
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 UtilitiesApi.ApiUtilitiesPingGetWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VersionResponse ApiUtilitiesVersionGet ()
Retrieve the service version.
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ApiUtilitiesVersionGetExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://smac-poc.mcs-group.com.my/";
// Configure API key authorization: apiKey
config.AddApiKey("X-SMAC-PLATFORM-API-KEY", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-SMAC-PLATFORM-API-KEY", "Bearer");
var apiInstance = new UtilitiesApi(config);
try
{
// Retrieve the service version.
VersionResponse result = apiInstance.ApiUtilitiesVersionGet();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling UtilitiesApi.ApiUtilitiesVersionGet: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Retrieve the service version.
ApiResponse<VersionResponse> response = apiInstance.ApiUtilitiesVersionGetWithHttpInfo();
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 UtilitiesApi.ApiUtilitiesVersionGetWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]