All URIs are relative to https://api.wall.et
| Method | HTTP request | Description |
|---|---|---|
| CreateRole | POST /v2/system/roles | Create role |
| DeleteRole | DELETE /v2/system/roles/{roleID} | Delete role |
| FetchAuditLogOfRoles | GET /v2/system/roles/auditLog | Get role's audit log |
| FetchEmployeesWithRole | GET /v2/system/roles/employees/{roleID} | Get employees with role |
| FetchWebpagesForRole | GET /v2/system/roles/webpages/{roleID} | Get webpages for role |
| LoadRole | GET /v2/system/roles/{roleID} | Get role |
| SaveRole | PUT /v2/system/roles/{roleID} | Update role |
Role CreateRole (WTSystemRoleCreate wTSystemRoleCreate)
Create role
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class CreateRoleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new SystemApi(httpClient, config, httpClientHandler);
var wTSystemRoleCreate = new WTSystemRoleCreate(); // WTSystemRoleCreate |
try
{
// Create role
Role result = apiInstance.CreateRole(wTSystemRoleCreate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SystemApi.CreateRole: " + 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
{
// Create role
ApiResponse<Role> response = apiInstance.CreateRoleWithHttpInfo(wTSystemRoleCreate);
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 SystemApi.CreateRoleWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| wTSystemRoleCreate | WTSystemRoleCreate |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool DeleteRole (string roleID)
Delete role
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class DeleteRoleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new SystemApi(httpClient, config, httpClientHandler);
var roleID = "roleID_example"; // string |
try
{
// Delete role
bool result = apiInstance.DeleteRole(roleID);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SystemApi.DeleteRole: " + 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
{
// Delete role
ApiResponse<bool> response = apiInstance.DeleteRoleWithHttpInfo(roleID);
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 SystemApi.DeleteRoleWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| roleID | string |
bool
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<RoleAuditLog> FetchAuditLogOfRoles (DateTime startDateTime, DateTime endDateTime)
Get role's audit log
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class FetchAuditLogOfRolesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new SystemApi(httpClient, config, httpClientHandler);
var startDateTime = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime |
var endDateTime = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime |
try
{
// Get role's audit log
List<RoleAuditLog> result = apiInstance.FetchAuditLogOfRoles(startDateTime, endDateTime);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SystemApi.FetchAuditLogOfRoles: " + 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
{
// Get role's audit log
ApiResponse<List<RoleAuditLog>> response = apiInstance.FetchAuditLogOfRolesWithHttpInfo(startDateTime, endDateTime);
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 SystemApi.FetchAuditLogOfRolesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| startDateTime | DateTime | ||
| endDateTime | DateTime |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Employee> FetchEmployeesWithRole (string roleID)
Get employees with role
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class FetchEmployeesWithRoleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new SystemApi(httpClient, config, httpClientHandler);
var roleID = "roleID_example"; // string |
try
{
// Get employees with role
List<Employee> result = apiInstance.FetchEmployeesWithRole(roleID);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SystemApi.FetchEmployeesWithRole: " + 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
{
// Get employees with role
ApiResponse<List<Employee>> response = apiInstance.FetchEmployeesWithRoleWithHttpInfo(roleID);
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 SystemApi.FetchEmployeesWithRoleWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| roleID | string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Webpage> FetchWebpagesForRole (string roleID)
Get webpages for role
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class FetchWebpagesForRoleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new SystemApi(httpClient, config, httpClientHandler);
var roleID = "roleID_example"; // string |
try
{
// Get webpages for role
List<Webpage> result = apiInstance.FetchWebpagesForRole(roleID);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SystemApi.FetchWebpagesForRole: " + 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
{
// Get webpages for role
ApiResponse<List<Webpage>> response = apiInstance.FetchWebpagesForRoleWithHttpInfo(roleID);
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 SystemApi.FetchWebpagesForRoleWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| roleID | string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WTRole LoadRole (string roleID)
Get role
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class LoadRoleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new SystemApi(httpClient, config, httpClientHandler);
var roleID = "roleID_example"; // string |
try
{
// Get role
WTRole result = apiInstance.LoadRole(roleID);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SystemApi.LoadRole: " + 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
{
// Get role
ApiResponse<WTRole> response = apiInstance.LoadRoleWithHttpInfo(roleID);
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 SystemApi.LoadRoleWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| roleID | string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Role SaveRole (string roleID, WTSystemRoleCreate wTSystemRoleCreate)
Update role
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class SaveRoleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new SystemApi(httpClient, config, httpClientHandler);
var roleID = "roleID_example"; // string |
var wTSystemRoleCreate = new WTSystemRoleCreate(); // WTSystemRoleCreate |
try
{
// Update role
Role result = apiInstance.SaveRole(roleID, wTSystemRoleCreate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SystemApi.SaveRole: " + 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
{
// Update role
ApiResponse<Role> response = apiInstance.SaveRoleWithHttpInfo(roleID, wTSystemRoleCreate);
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 SystemApi.SaveRoleWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| roleID | string | ||
| wTSystemRoleCreate | WTSystemRoleCreate |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]