Agravity.Public 5.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Agravity.Public --version 5.2.1                
NuGet\Install-Package Agravity.Public -Version 5.2.1                
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="5.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Agravity.Public --version 5.2.1                
#r "nuget: Agravity.Public, 5.2.1"                
#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=5.2.1

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

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 2023. All Rights Reserved

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

  • API version: 5.2.1
  • SDK version: 5.2.1
  • 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 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}
PublicAssetOperationsApi HttpPutAssetAvailability PUT /assets/{id}/availability
PublicAssetPublishingApi HttpPublishedAssetsCreate POST /assets/{id}/publish
PublicAssetPublishingApi HttpPublishedAssetsGet GET /assets/{id}/publish
PublicAssetPublishingApi HttpPublishedAssetsGetById GET /assets/{id}/publish/{pid}
PublicAssetVersioningApi HttpAssetCreateUploadVersion POST /assets/{id}/versionsupload
PublicAssetVersioningApi HttpAssetCreateVersion POST /assets/{id}/versions
PublicAssetVersioningApi HttpDeleteVersionedAssetsById DELETE /assets/{id}/versions/{vNr}
PublicAssetVersioningApi HttpGetVersionedAssetBlobById GET /assets/{id}/versions/{vNr}/blobs
PublicAssetVersioningApi HttpRestoreVersionedAssetsById POST /assets/{id}/versions/{vNr}/restore
PublicAssetVersioningApi HttpUpdateVersionedAssetsById POST /assets/{id}/versions/{vNr}
PublicAssetVersioningApi HttpVersionedAssetsGet GET /assets/{id}/versions
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
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
PublicSharingManagementApi HttpQuickShareGetById GET /quickshares/{id}
PublicSharingManagementApi HttpSharedCollectionsGetById GET /shared/{id}
PublicSignalRConnectionManagementApi HttpSignalRNegotiate POST /signalr/negotiate
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}

<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.3.0-usercontext 71 11/14/2024
8.2.1 40 11/22/2024
8.2.0 74 11/13/2024
8.2.0-usercontext 75 11/4/2024
8.1.2 183 10/11/2024
8.1.1 98 10/9/2024
8.1.0 90 10/8/2024
8.0.0 135 9/30/2024
8.0.0-preview.1 89 9/3/2024
7.3.1 173 8/18/2024
7.3.0 89 8/1/2024
7.2.2 102 6/10/2024
7.2.1 107 6/3/2024
7.2.0 105 5/31/2024
7.1.0 151 5/7/2024
7.0.1 124 4/7/2024
7.0.0 129 3/23/2024
6.1.6 287 1/31/2024
6.1.5 286 1/28/2024
6.1.4 336 1/16/2024
6.1.3 284 1/14/2024
6.1.2 409 12/18/2023
6.1.1 343 12/15/2023
6.1.0 377 12/13/2023
6.0.4 424 11/6/2023
6.0.3 427 11/4/2023
6.0.2 409 10/23/2023
6.0.1 413 10/19/2023
6.0.0 468 10/2/2023
5.3.6 484 9/18/2023
5.3.5 477 9/17/2023
5.3.4 455 9/10/2023
5.3.3 485 8/27/2023
5.3.2 544 8/17/2023
5.3.1 605 8/1/2023
5.3.1-UpdateSDL2 606 7/25/2023
5.3.1-UpdateSDL 586 7/24/2023
5.3.0 620 7/21/2023
5.2.2 592 7/6/2023
5.2.1 580 7/4/2023
5.2.0 587 6/6/2023
5.1.6 576 5/23/2023
5.1.5 568 5/3/2023
5.1.4 592 4/27/2023
5.1.3 605 4/23/2023
5.1.2 649 3/23/2023
5.1.0 711 2/18/2023
5.0.2 701 2/6/2023
5.0.1 735 1/27/2023
5.0.1-RC1 543 1/22/2023
5.0.0 753 1/11/2023
5.0.0-signed 599 1/11/2023
4.9.3 725 12/15/2022
4.9.2 713 12/5/2022
4.9.1 751 12/1/2022
4.9.0 765 11/28/2022
4.8.1 793 11/18/2022
4.7.3 810 11/11/2022