Agravity.Public 8.3.0-usercontext

This is a prerelease version of Agravity.Public.
dotnet add package Agravity.Public --version 8.3.0-usercontext                
NuGet\Install-Package Agravity.Public -Version 8.3.0-usercontext                
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="8.3.0-usercontext" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Agravity.Public --version 8.3.0-usercontext                
#r "nuget: Agravity.Public, 8.3.0-usercontext"                
#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=8.3.0-usercontext&prerelease

// Install Agravity.Public as a Cake Tool
#tool nuget:?package=Agravity.Public&version=8.3.0-usercontext&prerelease                

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

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

  • API version: 8.3.0-usercontext
  • SDK version: 8.3.0-usercontext
  • Generator version: 7.8.0
  • Build package: org.openapitools.codegen.languages.CSharpClientCodegen For more information, please visit https://agravity.io

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

Frameworks supported

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

<a id="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 id="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 id="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 id="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 acceptLanguage = "acceptLanguage_example";  // string | The requested language of the response. If not matching it falls back to default language. (optional) 
            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) 
            var filename = "filename_example";  // string |  (optional) 
            var previewof = "previewof_example";  // string |  (optional) 

            try
            {
                Asset result = apiInstance.HttpAssetUploadFile(acceptLanguage, name, collectionid, file, filename, previewof);
                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 id="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 HttpAssetToCollection POST /assets/{id}/tocollection
PublicAssetOperationsApi HttpGetAssetBlob GET /assets/{id}/blobs
PublicAssetOperationsApi HttpGetAssetCollectionsById GET /assets/{id}/collections
PublicAssetOperationsApi HttpGetAssetDownload GET /assets/{id}/download
PublicAssetOperationsApi HttpGetSharedAssetBlob GET /assets/{id}/blob
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 HttpAuthGetContainerWriteSasToken GET /auth/containerwrite/{containerName}
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 HttpPublicCollectionsDeleteById DELETE /collections/{id}
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
PublicDownloadFormatManagementApi HttpDownloadFormatsGetAllFromShared GET /downloadformats-shared
PublicEndpointsApi HttpAssetGetViewForPortal GET /public/view
PublicGeneralManagementApi HttpAgravityVersionInfo GET /version
PublicGeneralManagementApi HttpGetDeletedEntities GET /deleted
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
PublicHelperToolsApi HttpPatchUpdateCachedUserDefinedLists PATCH /helper/userdefinedlists
PublicPortalManagementApi HttpPortalGetAllAssetIdsById GET /portals/{id}/assetids
PublicPortalManagementApi HttpPortalGetStatusZipById GET /portals/{id}/zip/{zipId}
PublicPortalManagementApi HttpPortalRequestZipById POST /portals/{id}/zip
PublicPortalManagementApi HttpPortalsConfigurationGetById GET /portals/{id}/config
PublicPortalManagementApi HttpPortalsEnhanceToken POST /portalsenhancetoken
PublicPortalManagementApi HttpPortalsGetById GET /portals/{id}
PublicPublishingApi HttpPublishedAssetsGetAll GET /publish
PublicSavedSearchApi HttpSavedSearchesGetAll GET /savedsearches
PublicSearchManagementApi HttpGetSearchFacetteByName GET /search/facette
PublicSearchManagementApi HttpGlobalSearch GET /search
PublicSearchManagementApi HttpSearchAdminGetStatus GET /searchadmin/status
PublicSharingManagementApi HttpQuickShareGetById GET /quickshares/{id}
PublicSharingManagementApi HttpSharedCollectionsGetById GET /shared/{id}
PublicSharingManagementApi HttpSharedCollectionsGetStatusZipById GET /shared/{id}/zip/{zipId}
PublicSharingManagementApi HttpSharedCollectionsRequestZipById POST /shared/{id}/zip
PublicSignalRConnectionManagementApi HttpSignalRNegotiate POST /signalr/negotiate
PublicStaticDefinedListManagementApi HttpStaticDefinedListsGetAll GET /staticdefinedlists
PublicStaticDefinedListManagementApi HttpStaticDefinedListsGetById GET /staticdefinedlists/{id}
PublicStaticDefinedListManagementApi HttpStaticDefinedListsUpdateById POST /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 id="documentation-for-models"></a>

Documentation for Models

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

Documentation for Authorization

Authentication schemes defined for the API: <a id="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 is compatible.  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 69 11/14/2024
8.2.0 72 11/13/2024
8.2.0-usercontext 75 11/4/2024
8.1.2 181 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 411 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

The change log for this SDK is made available at
https://github.com/agravity-philipp/Agravity.PublicCsharp/blob/main/changelog.md at the time
of release.