All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DeletePlugin | DELETE /plugins/{plugin_id} | Delete Plugin |
GetPluginDetails | GET /plugins/{plugin_id} | Get Plugin Details |
GetPluginSettings | GET /plugins/settings/{plugin_id} | Get Plugin Settings |
GetPluginsSettings | GET /plugins/settings | Get Plugins Settings |
InstallPlugin | POST /plugins/upload | Install Plugin |
InstallPluginFromRegistry | POST /plugins/upload/registry | Install Plugin From Registry |
ListAvailablePlugins | GET /plugins | List Available Plugins |
TogglePlugin | PUT /plugins/toggle/{plugin_id} | Toggle Plugin |
UpsertPluginSettings | PUT /plugins/settings/{plugin_id} | Upsert Plugin Settings |
List<string> DeletePlugin (string pluginId)
Delete Plugin
Physically remove a plugin
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class DeletePluginExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new PluginsApi(config);
var pluginId = "pluginId_example"; // string |
try
{
// Delete Plugin
List<string> result = apiInstance.DeletePlugin(pluginId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PluginsApi.DeletePlugin: " + 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 Plugin
ApiResponse<List<string>> response = apiInstance.DeletePluginWithHttpInfo(pluginId);
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 PluginsApi.DeletePluginWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
pluginId | string |
List
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]
Plugin GetPluginDetails (string pluginId)
Get Plugin Details
Returns information on a single plugin
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class GetPluginDetailsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new PluginsApi(config);
var pluginId = "pluginId_example"; // string |
try
{
// Get Plugin Details
Plugin result = apiInstance.GetPluginDetails(pluginId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PluginsApi.GetPluginDetails: " + 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 Plugin Details
ApiResponse<Plugin> response = apiInstance.GetPluginDetailsWithHttpInfo(pluginId);
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 PluginsApi.GetPluginDetailsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
pluginId | 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]
GetPluginSettings200Response GetPluginSettings (string pluginId)
Get Plugin Settings
Returns the settings of a specific plugin
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class GetPluginSettingsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new PluginsApi(config);
var pluginId = "pluginId_example"; // string |
try
{
// Get Plugin Settings
GetPluginSettings200Response result = apiInstance.GetPluginSettings(pluginId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PluginsApi.GetPluginSettings: " + 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 Plugin Settings
ApiResponse<GetPluginSettings200Response> response = apiInstance.GetPluginSettingsWithHttpInfo(pluginId);
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 PluginsApi.GetPluginSettingsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
pluginId | 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 GetPluginsSettings ()
Get Plugins Settings
Returns the settings of all the plugins
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class GetPluginsSettingsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new PluginsApi(config);
try
{
// Get Plugins Settings
SettingsResponse result = apiInstance.GetPluginsSettings();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PluginsApi.GetPluginsSettings: " + 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 Plugins Settings
ApiResponse<SettingsResponse> response = apiInstance.GetPluginsSettingsWithHttpInfo();
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 PluginsApi.GetPluginsSettingsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FileResponse InstallPlugin (System.IO.Stream file)
Install Plugin
Install a new plugin from a zip file
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class InstallPluginExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new PluginsApi(config);
var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream |
try
{
// Install Plugin
FileResponse result = apiInstance.InstallPlugin(file);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PluginsApi.InstallPlugin: " + 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
{
// Install Plugin
ApiResponse<FileResponse> response = apiInstance.InstallPluginWithHttpInfo(file);
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 PluginsApi.InstallPluginWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
file | System.IO.Stream****System.IO.Stream |
No authorization required
- Content-Type: multipart/form-data
- 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]
FileResponse InstallPluginFromRegistry (BodyUploadUrl bodyUploadUrl)
Install Plugin From Registry
Install a new plugin from external repository
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class InstallPluginFromRegistryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new PluginsApi(config);
var bodyUploadUrl = new BodyUploadUrl(); // BodyUploadUrl |
try
{
// Install Plugin From Registry
FileResponse result = apiInstance.InstallPluginFromRegistry(bodyUploadUrl);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PluginsApi.InstallPluginFromRegistry: " + 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
{
// Install Plugin From Registry
ApiResponse<FileResponse> response = apiInstance.InstallPluginFromRegistryWithHttpInfo(bodyUploadUrl);
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 PluginsApi.InstallPluginFromRegistryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
bodyUploadUrl | BodyUploadUrl |
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]
PluginsList ListAvailablePlugins (string? query = null)
List Available Plugins
List both installed and registry plugins
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class ListAvailablePluginsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new PluginsApi(config);
var query = "query_example"; // string? | (optional)
try
{
// List Available Plugins
PluginsList result = apiInstance.ListAvailablePlugins(query);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PluginsApi.ListAvailablePlugins: " + 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
{
// List Available Plugins
ApiResponse<PluginsList> response = apiInstance.ListAvailablePluginsWithHttpInfo(query);
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 PluginsApi.ListAvailablePluginsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
query | string? | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ToggleResponse TogglePlugin (string pluginId)
Toggle Plugin
Enable or disable a single plugin
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class TogglePluginExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new PluginsApi(config);
var pluginId = "pluginId_example"; // string |
try
{
// Toggle Plugin
ToggleResponse result = apiInstance.TogglePlugin(pluginId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PluginsApi.TogglePlugin: " + 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
{
// Toggle Plugin
ApiResponse<ToggleResponse> response = apiInstance.TogglePluginWithHttpInfo(pluginId);
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 PluginsApi.TogglePluginWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
pluginId | 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]
Setting UpsertPluginSettings (string pluginId, Object body)
Upsert Plugin Settings
Updates the settings of a specific plugin
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class UpsertPluginSettingsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new PluginsApi(config);
var pluginId = "pluginId_example"; // string |
var body = {"setting_a":"some value","setting_b":"another value"}; // Object |
try
{
// Upsert Plugin Settings
Setting result = apiInstance.UpsertPluginSettings(pluginId, body);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PluginsApi.UpsertPluginSettings: " + 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
{
// Upsert Plugin Settings
ApiResponse<Setting> response = apiInstance.UpsertPluginSettingsWithHttpInfo(pluginId, body);
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 PluginsApi.UpsertPluginSettingsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
pluginId | string | ||
body | Object |
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]