Skip to content

Latest commit

 

History

History
608 lines (408 loc) · 20.3 KB

AssetApi.md

File metadata and controls

608 lines (408 loc) · 20.3 KB

core_openapi.api.AssetApi

Load the API package

import 'package:pieces_os_client/api.dart';

All URIs are relative to http://localhost:3000

Method HTTP request Description
assetAssociateTag POST /asset/{asset}/tags/associate/{tag} /asset/{asset}/tags/associate/{tag} [POST]
assetAssociateWebsite POST /asset/{asset}/websites/associate/{website} /asset/{asset}/websites/associate/{website} [POST]
assetDisassociateTag POST /asset/{asset}/tags/disassociate/{tag} /asset/{asset}/tags/disassociate/{tag} [POST]
assetDisassociateWebsite POST /asset/{asset}/websites/disassociate/{website} /asset/{asset}/websites/disassociate/{website} [POST]
assetFormats GET /asset/{asset}/formats /asset/{asset}/formats [GET] Scoped To Asset
assetReclassify POST /asset/reclassify /asset/reclassify [POST]
assetScoresIncrement POST /asset/{asset}/scores/increment '/asset/{asset}/scores/increment' [POST]
assetSnapshot GET /asset/{asset} /asset/{asset} [GET] Scoped To Asset
assetSnapshotPost POST /asset/{asset} /asset/{asset} [POST] Scoped to an Asset
assetSpecificAssetActivities GET /asset/{asset}/activities /asset/{asset}/activities [GET]
assetSpecificAssetConversations GET /asset/{asset}/conversations /asset/{asset}/conversations [GET]
assetSpecificAssetExport GET /asset/{asset}/export [GET] /asset/{asset}/export
assetUpdate POST /asset/update /asset/update [POST] Scoped to Asset

assetAssociateTag

assetAssociateTag(asset, tag)

/asset/{asset}/tags/associate/{tag} [POST]

This will associate a tag with a asset. This will do the same thing as the tag equivilant.

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.
final tag = tag_example; // String | tag id

try {
    api_instance.assetAssociateTag(asset, tag);
} catch (e) {
    print('Exception when calling AssetApi->assetAssociateTag: $e\n');
}

Parameters

Name Type Description Notes
asset String The id (uuid) of the asset that you are trying to access.
tag String tag id

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetAssociateWebsite

assetAssociateWebsite(asset, website)

/asset/{asset}/websites/associate/{website} [POST]

This will associate a website with a asset. This will do the same thing as the website equivilant.

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.
final website = website_example; // String | website id

try {
    api_instance.assetAssociateWebsite(asset, website);
} catch (e) {
    print('Exception when calling AssetApi->assetAssociateWebsite: $e\n');
}

Parameters

Name Type Description Notes
asset String The id (uuid) of the asset that you are trying to access.
website String website id

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetDisassociateTag

assetDisassociateTag(tag, asset)

/asset/{asset}/tags/disassociate/{tag} [POST]

This will enable us to dissassociate a tag from a asset. This will do the same thing as the tag equivilant.

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final tag = tag_example; // String | tag id
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.

try {
    api_instance.assetDisassociateTag(tag, asset);
} catch (e) {
    print('Exception when calling AssetApi->assetDisassociateTag: $e\n');
}

Parameters

Name Type Description Notes
tag String tag id
asset String The id (uuid) of the asset that you are trying to access.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetDisassociateWebsite

assetDisassociateWebsite(website, asset)

/asset/{asset}/websites/disassociate/{website} [POST]

This will enable us to dissassociate a website from a asset. This will do the same thing as the website equivilant.

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final website = website_example; // String | website id
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.

try {
    api_instance.assetDisassociateWebsite(website, asset);
} catch (e) {
    print('Exception when calling AssetApi->assetDisassociateWebsite: $e\n');
}

Parameters

Name Type Description Notes
website String website id
asset String The id (uuid) of the asset that you are trying to access.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetFormats

Formats assetFormats(asset, transferables)

/asset/{asset}/formats [GET] Scoped To Asset

Get the formats for a given asset.

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)

try {
    final result = api_instance.assetFormats(asset, transferables);
    print(result);
} catch (e) {
    print('Exception when calling AssetApi->assetFormats: $e\n');
}

Parameters

Name Type Description Notes
asset String The id (uuid) of the asset that you are trying to access.
transferables bool This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) [optional]

Return type

Formats

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetReclassify

Asset assetReclassify(transferables, assetReclassification)

/asset/reclassify [POST]

This will update the classification of this asset to the proper classification.

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
final assetReclassification = AssetReclassification(); // AssetReclassification | This will accept a Reclassification that includeds and assetand a language that this assets needs to be reclassified to. We will just return an Asset that has been reclassified.

try {
    final result = api_instance.assetReclassify(transferables, assetReclassification);
    print(result);
} catch (e) {
    print('Exception when calling AssetApi->assetReclassify: $e\n');
}

Parameters

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]
assetReclassification AssetReclassification This will accept a Reclassification that includeds and assetand a language that this assets needs to be reclassified to. We will just return an Asset that has been reclassified. [optional]

Return type

Asset

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetScoresIncrement

assetScoresIncrement(asset, seededScoreIncrement)

'/asset/{asset}/scores/increment' [POST]

This will take in a SeededScoreIncrement and will increment the material relative to the incoming body.

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.
final seededScoreIncrement = SeededScoreIncrement(); // SeededScoreIncrement | 

try {
    api_instance.assetScoresIncrement(asset, seededScoreIncrement);
} catch (e) {
    print('Exception when calling AssetApi->assetScoresIncrement: $e\n');
}

Parameters

Name Type Description Notes
asset String The id (uuid) of the asset that you are trying to access.
seededScoreIncrement SeededScoreIncrement [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetSnapshot

Asset assetSnapshot(asset, transferables)

/asset/{asset} [GET] Scoped To Asset

Get the snapshot of a specific asset.

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)

try {
    final result = api_instance.assetSnapshot(asset, transferables);
    print(result);
} catch (e) {
    print('Exception when calling AssetApi->assetSnapshot: $e\n');
}

Parameters

Name Type Description Notes
asset String The id (uuid) of the asset that you are trying to access.
transferables bool This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) [optional]

Return type

Asset

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetSnapshotPost

Asset assetSnapshotPost(asset, transferables, seededAccessor)

/asset/{asset} [POST] Scoped to an Asset

Get the snapshot of a specific asset. by passing over as well the user who is getting the snapshot.

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
final seededAccessor = SeededAccessor(); // SeededAccessor | 

try {
    final result = api_instance.assetSnapshotPost(asset, transferables, seededAccessor);
    print(result);
} catch (e) {
    print('Exception when calling AssetApi->assetSnapshotPost: $e\n');
}

Parameters

Name Type Description Notes
asset String The id (uuid) of the asset that you are trying to access.
transferables bool This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) [optional]
seededAccessor SeededAccessor [optional]

Return type

Asset

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetSpecificAssetActivities

Activities assetSpecificAssetActivities(asset, transferables)

/asset/{asset}/activities [GET]

This will get a specific asset's activity events

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)

try {
    final result = api_instance.assetSpecificAssetActivities(asset, transferables);
    print(result);
} catch (e) {
    print('Exception when calling AssetApi->assetSpecificAssetActivities: $e\n');
}

Parameters

Name Type Description Notes
asset String The id (uuid) of the asset that you are trying to access.
transferables bool This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) [optional]

Return type

Activities

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetSpecificAssetConversations

Conversations assetSpecificAssetConversations(asset, transferables)

/asset/{asset}/conversations [GET]

This will get a specific asset's conversations

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)

try {
    final result = api_instance.assetSpecificAssetConversations(asset, transferables);
    print(result);
} catch (e) {
    print('Exception when calling AssetApi->assetSpecificAssetConversations: $e\n');
}

Parameters

Name Type Description Notes
asset String The id (uuid) of the asset that you are trying to access.
transferables bool This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) [optional]

Return type

Conversations

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetSpecificAssetExport

ExportedAsset assetSpecificAssetExport(asset, exportType)

[GET] /asset/{asset}/export

This will return a export version of your asset.

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.
final exportType = exportType_example; // String | This specifies the type of export the user wants.

try {
    final result = api_instance.assetSpecificAssetExport(asset, exportType);
    print(result);
} catch (e) {
    print('Exception when calling AssetApi->assetSpecificAssetExport: $e\n');
}

Parameters

Name Type Description Notes
asset String The id (uuid) of the asset that you are trying to access.
exportType String This specifies the type of export the user wants.

Return type

ExportedAsset

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

assetUpdate

Asset assetUpdate(transferables, asset)

/asset/update [POST] Scoped to Asset

This endpoint will accept an Asset that the user wants to update, and will return the a full Asset that was updated!

Example

import 'package:pieces_os_client/api.dart';

final api_instance = AssetApi();
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
final asset = Asset(); // Asset | This is the updated Asset that needs to be updated in our db.

try {
    final result = api_instance.assetUpdate(transferables, asset);
    print(result);
} catch (e) {
    print('Exception when calling AssetApi->assetUpdate: $e\n');
}

Parameters

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]
asset Asset This is the updated Asset that needs to be updated in our db. [optional]

Return type

Asset

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]