All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateSetting | POST /settings | Create Setting |
DeleteSetting | DELETE /settings/{settingId} | Delete Setting |
GetSetting | GET /settings/{settingId} | Get Setting |
GetSettings | GET /settings | Get Settings |
UpdateSetting | PUT /settings/{settingId} | Update Setting |
Setting CreateSetting (SettingBody settingBody)
Create Setting
Create a new setting in the database
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class CreateSettingExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new SettingsApi(config);
var settingBody = new SettingBody(); // SettingBody |
try
{
// Create Setting
Setting result = apiInstance.CreateSetting(settingBody);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SettingsApi.CreateSetting: " + 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 Setting
ApiResponse<Setting> response = apiInstance.CreateSettingWithHttpInfo(settingBody);
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 SettingsApi.CreateSettingWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
settingBody | SettingBody |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object DeleteSetting (string settingId)
Delete Setting
Delete a specific setting in the database
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class DeleteSettingExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new SettingsApi(config);
var settingId = "settingId_example"; // string |
try
{
// Delete Setting
Object result = apiInstance.DeleteSetting(settingId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SettingsApi.DeleteSetting: " + 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 Setting
ApiResponse<Object> response = apiInstance.DeleteSettingWithHttpInfo(settingId);
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 SettingsApi.DeleteSettingWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
settingId | string |
Object
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Setting GetSetting (string settingId)
Get Setting
Get the a specific setting from the database
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class GetSettingExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new SettingsApi(config);
var settingId = "settingId_example"; // string |
try
{
// Get Setting
Setting result = apiInstance.GetSetting(settingId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SettingsApi.GetSetting: " + 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 Setting
ApiResponse<Setting> response = apiInstance.GetSettingWithHttpInfo(settingId);
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 SettingsApi.GetSettingWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
settingId | string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SettingsResponse GetSettings (string? search = null)
Get Settings
Get the entire list of settings available in the database
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class GetSettingsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new SettingsApi(config);
var search = "\"\""; // string? | The setting to search (optional) (default to "")
try
{
// Get Settings
SettingsResponse result = apiInstance.GetSettings(search);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SettingsApi.GetSettings: " + 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 Settings
ApiResponse<SettingsResponse> response = apiInstance.GetSettingsWithHttpInfo(search);
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 SettingsApi.GetSettingsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
search | string? | The setting to search | [optional] [default to ""] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Setting UpdateSetting (string settingId, SettingBody settingBody)
Update Setting
Update a specific setting in the database if it exists
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class UpdateSettingExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new SettingsApi(config);
var settingId = "settingId_example"; // string |
var settingBody = new SettingBody(); // SettingBody |
try
{
// Update Setting
Setting result = apiInstance.UpdateSetting(settingId, settingBody);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SettingsApi.UpdateSetting: " + 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 Setting
ApiResponse<Setting> response = apiInstance.UpdateSettingWithHttpInfo(settingId, settingBody);
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 SettingsApi.UpdateSettingWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
settingId | string | ||
settingBody | SettingBody |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]