Agravity.Public 4.9.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Agravity.Public --version 4.9.3                
NuGet\Install-Package Agravity.Public -Version 4.9.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Agravity.Public" Version="4.9.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Agravity.Public --version 4.9.3                
#r "nuget: Agravity.Public, 4.9.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Agravity.Public as a Cake Addin
#addin nuget:?package=Agravity.Public&version=4.9.3

// Install Agravity.Public as a Cake Tool
#tool nuget:?package=Agravity.Public&version=4.9.3                

Agravity.Public - the C# library for the Agravity OpenAPI Documentation - Public Functions

<h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2022. All Rights Reserved

This C# SDK is automatically generated by the OpenAPI Generator project:

  • API version: 4.9.3
  • SDK version: 4.9.3
  • Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen For more information, please visit https://agravity.io

<a name="frameworks-supported"></a>

Frameworks supported

  • .NET Core >=1.0
  • .NET Framework >=4.6
  • Mono/Xamarin >=vNext

<a name="dependencies"></a>

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
Install-Package System.ComponentModel.Annotations

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742. NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See RestSharp#1406.

<a name="installation"></a>

Installation

Generate the DLL using your preferred tool (e.g. dotnet build)

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using Agravity.Public.Api;
using Agravity.Public.Client;
using Agravity.Public.Model;

<a name="usage"></a>

Usage

To use the API client with a HTTP proxy, setup a System.Net.WebProxy

Configuration c = new Configuration();
System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;

<a name="getting-started"></a>

Getting Started

using System.Collections.Generic;
using System.Diagnostics;
using Agravity.Public.Api;
using Agravity.Public.Client;
using Agravity.Public.Model;

namespace Example
{
    public class Example
    {
        public static void Main()
        {

            Configuration config = new Configuration();
            config.BasePath = "http://localhost:7072/api";
            // Configure API key authorization: function_key
            config.ApiKey.Add("x-functions-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.ApiKeyPrefix.Add("x-functions-key", "Bearer");

            var apiInstance = new PublicAssetManagementApi(config);
            var name = "name_example";  // string |  (optional) 
            var collectionId = "collectionId_example";  // string |  (optional) 
            var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt"));  // System.IO.Stream |  (optional) 

            try
            {
                Asset result = apiInstance.HttpAssetUploadFile(name, collectionId, file);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling PublicAssetManagementApi.HttpAssetUploadFile: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }

        }
    }
}

<a name="documentation-for-api-endpoints"></a>

Documentation for API Endpoints

All URIs are relative to http://localhost:7072/api

Class Method HTTP request Description
PublicAssetManagementApi HttpAssetUploadFile POST /assetsupload
PublicAssetManagementApi HttpAssetsCreate POST /assets
PublicAssetManagementApi HttpAssetsGet GET /assets
PublicAssetManagementApi HttpAssetsGetById GET /assets/{id}
PublicAssetManagementApi HttpPublicAssetsUpdateById POST /assets/{id}
PublicAssetOperationsApi HttpAssetImageEdit GET /assets/{id}/imageedit
PublicAssetOperationsApi HttpAssetResize GET /assets/{id}/resize
PublicAssetOperationsApi HttpAssetsGetSimilarById GET /assets/{id}/similar
PublicAssetOperationsApi HttpGetAssetBlob GET /assets/{id}/blobs
PublicAssetOperationsApi HttpGetAssetCollectionsById GET /assets/{id}/collections
PublicAssetOperationsApi HttpGetAssetDownload GET /assets/{id}/download
PublicAssetOperationsApi HttpImageDynamicEdit POST /assets/{id}/imageedit
PublicAssetOperationsApi HttpImageDynamicGetFromDownloadId GET /assets/{id}/imageedit/{download_format_id}
PublicAssetPublishingApi HttpPublishedAssetsCreate POST /assets/{id}/publish
PublicAssetPublishingApi HttpPublishedAssetsGet GET /assets/{id}/publish
PublicAssetPublishingApi HttpPublishedAssetsGetById GET /assets/{id}/publish/{pid}
PublicAuthenticationManagementApi HttpAuthGetInboxContainerWriteSasToken GET /auth/inbox
PublicCollectionManagementApi HttpCollectionsCreate POST /collections
PublicCollectionManagementApi HttpCollectionsGet GET /collections
PublicCollectionManagementApi HttpCollectionsGetById GET /collections/{id}
PublicCollectionManagementApi HttpCollectionsGetDescendantsTreeOfId GET /collections/{id}/descendants
PublicCollectionManagementApi HttpCollectionsGetTreeAncestorsOfId GET /collections/{id}/ancestors
PublicCollectionManagementApi HttpGetCollectionPreviewsById GET /collections/{id}/previews
PublicCollectionManagementApi HttpPublicCollectionsUpdateById POST /collections/{id}
PublicCollectionSecureUploadApi HttpSecureUploadEntityCheckById GET /secureupload/{id}
PublicCollectionSecureUploadApi HttpSecureUploadFileById POST /secureupload/{id}/upload
PublicCollectionSharingApi HttpSharedCollectionsGetById GET /shared/{id}
PublicCollectionTypeManagementApi HttpCollectionTypesGet GET /collectiontypes
PublicCollectionTypeManagementApi HttpCollectionTypesGetById GET /collectiontypes/{id}
PublicCollectionTypeManagementApi HttpGetCollectionTypeItems GET /collectiontypesitems
PublicConfigurationManagementApi HttpConfigGetFrontendAll GET /config/frontend
PublicDownloadFormatManagementApi HttpDownloadFormatsGetAll GET /downloadformats
PublicGeneralManagementApi HttpAgravityVersionInfo GET /version
PublicGeneralManagementApi HttpTriggerDurableContinue GET /durable/{instanceId}
PublicGeneralManagementApi HttpTriggerDurableScchTrainingDone GET /durable/scch/{instanceId}
PublicHelperToolsApi HttpGetAllUserDefinedLists GET /helper/userdefinedlists
PublicHelperToolsApi HttpGetAllowedFilterableItems GET /helper/filterableitems
PublicHelperToolsApi HttpGetAllowedSearchableItemNames GET /helper/searchableitemnames
PublicHelperToolsApi HttpGetAllowedSearchableItems GET /helper/searchableitems
PublicPublishingApi HttpPublishedAssetsGetAll GET /publish
PublicSavedSearchApi HttpSavedSearchesGetAll GET /savedsearches
PublicSearchManagementApi HttpGlobalSearch GET /search
PublicStaticDefinedListManagementApi HttpStaticDefinedListsGetAll GET /staticdefinedlists
PublicStaticDefinedListManagementApi HttpStaticDefinedListsGetById GET /staticdefinedlists/{id}
PublicTranslationManagementApi HttpTranslationsById GET /translations/{id}
PublicTranslationManagementApi HttpTranslationsByIdFilterByCustomField GET /translations/{id}/custom/{customField}
PublicTranslationManagementApi HttpTranslationsByIdFilterByProperty GET /translations/{id}/{property}
PublicWebAppDataApi HttpGetDataCollectionType GET /data/collectiontype/{id}
PublicWebAppDataApi HttpGetWebAppData GET /webappdata/{id}
PublicWorkspaceManagementApi HttpWorkspacesGet GET /workspaces
PublicWorkspaceManagementApi HttpWorkspacesGetById GET /workspaces/{id}
SignalRConnectionManagementApi HttpSignalRNegotiate POST /signalr/negotiate

<a name="documentation-for-models"></a>

Documentation for Models

<a name="documentation-for-authorization"></a>

Documentation for Authorization

<a name="function_key"></a>

function_key

  • Type: API key
  • API key parameter name: x-functions-key
  • Location: HTTP header
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.0-preview.1 47 9/3/2024
7.3.1 112 8/18/2024
7.3.0 62 8/1/2024
7.2.2 79 6/10/2024
7.2.1 84 6/3/2024
7.2.0 85 5/31/2024
7.1.0 123 5/7/2024
7.0.1 101 4/7/2024
7.0.0 114 3/23/2024
6.1.6 273 1/31/2024
6.1.5 262 1/28/2024
6.1.4 315 1/16/2024
6.1.3 262 1/14/2024
6.1.2 395 12/18/2023
6.1.1 322 12/15/2023
6.1.0 355 12/13/2023
6.0.4 410 11/6/2023
6.0.3 391 11/4/2023
6.0.2 390 10/23/2023
6.0.1 388 10/19/2023
6.0.0 454 10/2/2023
5.3.6 459 9/18/2023
5.3.5 449 9/17/2023
5.3.4 440 9/10/2023
5.3.3 462 8/27/2023
5.3.2 529 8/17/2023
5.3.1 582 8/1/2023
5.3.1-UpdateSDL2 583 7/25/2023
5.3.1-UpdateSDL 561 7/24/2023
5.3.0 605 7/21/2023
5.2.2 577 7/6/2023
5.2.1 563 7/4/2023
5.2.0 564 6/6/2023
5.1.6 558 5/23/2023
5.1.5 546 5/3/2023
5.1.4 572 4/27/2023
5.1.3 581 4/23/2023
5.1.2 625 3/23/2023
5.1.0 688 2/18/2023
5.0.2 679 2/6/2023
5.0.1 714 1/27/2023
5.0.1-RC1 529 1/22/2023
5.0.0 737 1/11/2023
5.0.0-signed 583 1/11/2023
4.9.3 709 12/15/2022
4.9.2 691 12/5/2022
4.9.1 737 12/1/2022
4.9.0 751 11/28/2022
4.8.1 779 11/18/2022
4.7.3 796 11/11/2022