Agravity.Public
6.1.6
See the version list below for details.
dotnet add package Agravity.Public --version 6.1.6
NuGet\Install-Package Agravity.Public -Version 6.1.6
<PackageReference Include="Agravity.Public" Version="6.1.6" />
paket add Agravity.Public --version 6.1.6
#r "nuget: Agravity.Public, 6.1.6"
// Install Agravity.Public as a Cake Addin #addin nuget:?package=Agravity.Public&version=6.1.6 // Install Agravity.Public as a Cake Tool #tool nuget:?package=Agravity.Public&version=6.1.6
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: 6.1.6
- SDK version: 6.1.6
- 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
- RestSharp - 106.13.0 or later
- Json.NET - 13.0.1 or later
- JsonSubTypes - 1.8.0 or later
- System.ComponentModel.Annotations - 5.0.0 or later
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)
var filename = "filename_example"; // string | (optional)
var previewof = "previewof_example"; // string | (optional)
try
{
Asset result = apiInstance.HttpAssetUploadFile(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 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 | 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 | 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 | |
PublicDownloadFormatManagementApi | HttpDownloadFormatsGetAllFromShared | GET /downloadformats-shared | |
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} | |
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 name="documentation-for-models"></a>
Documentation for Models
- Model.AgravityErrorResponse
- Model.AgravityVersion
- Model.AllWebAppData
- Model.ArtificialIntelligenceGroup
- Model.Asset
- Model.AssetAvailability
- Model.AssetBlob
- Model.AssetIdFormat
- Model.AssetPageResult
- Model.AzSearchOptions
- Model.BadRequestResult
- Model.CollTypeItem
- Model.Collection
- Model.CollectionType
- Model.CollectionUDL
- Model.CreateSftpUserResult
- Model.DataResult
- Model.DistZipResponse
- Model.DownloadFormat
- Model.DynamicImageOperation
- Model.EntityId
- Model.EntityIdName
- Model.FrontendAppConfig
- Model.GroupAllAppData
- Model.Metadata
- Model.OkResult
- Model.PermissionEntity
- Model.PublishEntity
- Model.PublishedAsset
- Model.QuickShareFull
- Model.SasToken
- Model.SavedSearch
- Model.SearchFacet
- Model.SearchFacetEntity
- Model.SearchResult
- Model.SearchableItem
- Model.SecureUploadEntity
- Model.SharedAllowedFormat
- Model.SharedAsset
- Model.SharedCollectionFull
- Model.SharedCollectionZipRequest
- Model.SignalRConnectionInfo
- Model.StaticDefinedList
- Model.VersionEntity
- Model.VersionedAsset
- Model.WhereParam
- Model.Workspace
<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 | Versions 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. |
-
.NETStandard 2.0
- JsonSubTypes (>= 2.0.1)
- NewtonSoft.Json (>= 13.0.1)
- Polly (>= 7.2.3)
- RestSharp (>= 108.0.2)
- System.ComponentModel.Annotations (>= 5.0.0)
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.2.0-usercontext | 64 | 11/4/2024 |
8.1.2 | 144 | 10/11/2024 |
8.1.1 | 89 | 10/9/2024 |
8.1.0 | 81 | 10/8/2024 |
8.0.0 | 130 | 9/30/2024 |
8.0.0-preview.1 | 85 | 9/3/2024 |
7.3.1 | 168 | 8/18/2024 |
7.3.0 | 86 | 8/1/2024 |
7.2.2 | 99 | 6/10/2024 |
7.2.1 | 104 | 6/3/2024 |
7.2.0 | 102 | 5/31/2024 |
7.1.0 | 148 | 5/7/2024 |
7.0.1 | 119 | 4/7/2024 |
7.0.0 | 126 | 3/23/2024 |
6.1.6 | 284 | 1/31/2024 |
6.1.5 | 283 | 1/28/2024 |
6.1.4 | 333 | 1/16/2024 |
6.1.3 | 281 | 1/14/2024 |
6.1.2 | 406 | 12/18/2023 |
6.1.1 | 338 | 12/15/2023 |
6.1.0 | 374 | 12/13/2023 |
6.0.4 | 421 | 11/6/2023 |
6.0.3 | 407 | 11/4/2023 |
6.0.2 | 406 | 10/23/2023 |
6.0.1 | 406 | 10/19/2023 |
6.0.0 | 465 | 10/2/2023 |
5.3.6 | 481 | 9/18/2023 |
5.3.5 | 472 | 9/17/2023 |
5.3.4 | 452 | 9/10/2023 |
5.3.3 | 482 | 8/27/2023 |
5.3.2 | 541 | 8/17/2023 |
5.3.1 | 602 | 8/1/2023 |
5.3.1-UpdateSDL2 | 603 | 7/25/2023 |
5.3.1-UpdateSDL | 583 | 7/24/2023 |
5.3.0 | 617 | 7/21/2023 |
5.2.2 | 589 | 7/6/2023 |
5.2.1 | 575 | 7/4/2023 |
5.2.0 | 584 | 6/6/2023 |
5.1.6 | 573 | 5/23/2023 |
5.1.5 | 565 | 5/3/2023 |
5.1.4 | 589 | 4/27/2023 |
5.1.3 | 602 | 4/23/2023 |
5.1.2 | 646 | 3/23/2023 |
5.1.0 | 708 | 2/18/2023 |
5.0.2 | 698 | 2/6/2023 |
5.0.1 | 732 | 1/27/2023 |
5.0.1-RC1 | 540 | 1/22/2023 |
5.0.0 | 748 | 1/11/2023 |
5.0.0-signed | 594 | 1/11/2023 |
4.9.3 | 722 | 12/15/2022 |
4.9.2 | 710 | 12/5/2022 |
4.9.1 | 748 | 12/1/2022 |
4.9.0 | 762 | 11/28/2022 |
4.8.1 | 790 | 11/18/2022 |
4.7.3 | 807 | 11/11/2022 |