All URIs are relative to http://localhost:1000
Method | HTTP request | Description |
---|---|---|
AnalysesSnapshot | GET /analyses | Your GET endpoint |
Analyses AnalysesSnapshot (bool? transferables = null)
Your GET endpoint
This will get a snapshot of all of your analyses, that are all attached to formats. An analysis can optionally have an codeAnalysis or an optional imageAnalysis.
using System.Collections.Generic;
using System.Diagnostics;
using Pieces.Os.Core.Api;
using Pieces.Os.Core.Client;
using Pieces.Os.Core.SdkModel;
namespace Example
{
public class AnalysesSnapshotExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost:1000";
// Configure API key authorization: application
config.AddApiKey("X-Application-ID", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-Application-ID", "Bearer");
var apiInstance = new AnalysesApi(config);
var transferables = true; // bool? | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) (optional)
try
{
// Your GET endpoint
Analyses result = apiInstance.AnalysesSnapshot(transferables);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AnalysesApi.AnalysesSnapshot: " + 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
{
// Your GET endpoint
ApiResponse<Analyses> response = apiInstance.AnalysesSnapshotWithHttpInfo(transferables);
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 AnalysesApi.AnalysesSnapshotWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
transferables | bool? | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/plain
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]