curl -X GET\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"//asset?uuidsOnly=&start=&limit=&sort=&projection=&parentReferenceUuid=&includeAllChildren=&inputType=&includeDeleted=&includeScalarInfo=&includeScalarTypeInfo=&includeAssetGeometry=&includeRawGeometry=&bufferSize=&includeInternalName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetsApi;
import java.io.File;
import java.util.*;
public class AssetsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
AssetsApi apiInstance = new AssetsApi();
String xProfileId = xProfileId_example; // String | Profile Id
Boolean uuidsOnly = true; // Boolean | UUIDs Only - Return an array of subfield UUID's
Integer start = 56; // Integer | Start pagination offset
Integer limit = 56; // Integer | Results per page
String sort = sort_example; // String | Results sort order
Integer projection = 56; // Integer | Image Projection
UUID parentReferenceUuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Parent reference uuid
Boolean includeAllChildren = true; // Boolean | Include all eventual children of parent reference uuid
String inputType = inputType_example; // String | Input type
Boolean includeDeleted = true; // Boolean | Include deleted subfields
Boolean includeScalarInfo = true; // Boolean | Include scalar information
Boolean includeScalarTypeInfo = true; // Boolean | Include scalar type information
Boolean includeAssetGeometry = true; // Boolean | Include Asset GeoJson geometry in response
Boolean includeRawGeometry = true; // Boolean | Return original raw Geometry (if present) instead of Asset Geometry
Double bufferSize = 1.2; // Double | Buffer size around geometry
Boolean includeInternalName = true; // Boolean | Include Internal Name
try {
AssetFeature result = apiInstance.getAllAssets(xProfileId, uuidsOnly, start, limit, sort, projection, parentReferenceUuid, includeAllChildren, inputType, includeDeleted, includeScalarInfo, includeScalarTypeInfo, includeAssetGeometry, includeRawGeometry, bufferSize, includeInternalName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AssetsApi#getAllAssets");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AssetsApi;
public class AssetsApiExample {
public static void main(String[] args) {
AssetsApi apiInstance = new AssetsApi();
String xProfileId = xProfileId_example; // String | Profile Id
Boolean uuidsOnly = true; // Boolean | UUIDs Only - Return an array of subfield UUID's
Integer start = 56; // Integer | Start pagination offset
Integer limit = 56; // Integer | Results per page
String sort = sort_example; // String | Results sort order
Integer projection = 56; // Integer | Image Projection
UUID parentReferenceUuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Parent reference uuid
Boolean includeAllChildren = true; // Boolean | Include all eventual children of parent reference uuid
String inputType = inputType_example; // String | Input type
Boolean includeDeleted = true; // Boolean | Include deleted subfields
Boolean includeScalarInfo = true; // Boolean | Include scalar information
Boolean includeScalarTypeInfo = true; // Boolean | Include scalar type information
Boolean includeAssetGeometry = true; // Boolean | Include Asset GeoJson geometry in response
Boolean includeRawGeometry = true; // Boolean | Return original raw Geometry (if present) instead of Asset Geometry
Double bufferSize = 1.2; // Double | Buffer size around geometry
Boolean includeInternalName = true; // Boolean | Include Internal Name
try {
AssetFeature result = apiInstance.getAllAssets(xProfileId, uuidsOnly, start, limit, sort, projection, parentReferenceUuid, includeAllChildren, inputType, includeDeleted, includeScalarInfo, includeScalarTypeInfo, includeAssetGeometry, includeRawGeometry, bufferSize, includeInternalName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AssetsApi#getAllAssets");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
String *xProfileId = xProfileId_example; // Profile Id (optional)
Boolean *uuidsOnly = true; // UUIDs Only - Return an array of subfield UUID's (optional) (default to false)
Integer *start = 56; // Start pagination offset (optional) (default to 0)
Integer *limit = 56; // Results per page (optional) (default to 10)
String *sort = sort_example; // Results sort order (optional) (default to id)
Integer *projection = 56; // Image Projection (optional) (default to 4326)
UUID *parentReferenceUuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Parent reference uuid (optional)
Boolean *includeAllChildren = true; // Include all eventual children of parent reference uuid (optional) (default to false)
String *inputType = inputType_example; // Input type (optional)
Boolean *includeDeleted = true; // Include deleted subfields (optional) (default to false)
Boolean *includeScalarInfo = true; // Include scalar information (optional) (default to false)
Boolean *includeScalarTypeInfo = true; // Include scalar type information (optional) (default to true)
Boolean *includeAssetGeometry = true; // Include Asset GeoJson geometry in response (optional) (default to true)
Boolean *includeRawGeometry = true; // Return original raw Geometry (if present) instead of Asset Geometry (optional)
Double *bufferSize = 1.2; // Buffer size around geometry (optional)
Boolean *includeInternalName = true; // Include Internal Name (optional) (default to false)
AssetsApi *apiInstance = [[AssetsApi alloc] init];
// Returns a list of assets
[apiInstance getAllAssetsWith:xProfileId
uuidsOnly:uuidsOnly
start:start
limit:limit
sort:sort
projection:projection
parentReferenceUuid:parentReferenceUuid
includeAllChildren:includeAllChildren
inputType:inputType
includeDeleted:includeDeleted
includeScalarInfo:includeScalarInfo
includeScalarTypeInfo:includeScalarTypeInfo
includeAssetGeometry:includeAssetGeometry
includeRawGeometry:includeRawGeometry
bufferSize:bufferSize
includeInternalName:includeInternalName
completionHandler: ^(AssetFeature output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var IbmWatsonDecisionPlatformForAgriculture = require('ibm_watson_decision_platform_for_agriculture');
var defaultClient = IbmWatsonDecisionPlatformForAgriculture.ApiClient.instance;
var api = new IbmWatsonDecisionPlatformForAgriculture.AssetsApi()
var opts = {
'xProfileId': xProfileId_example, // {{String}} Profile Id
'uuidsOnly': true, // {{Boolean}} UUIDs Only - Return an array of subfield UUID's
'start': 56, // {{Integer}} Start pagination offset
'limit': 56, // {{Integer}} Results per page
'sort': sort_example, // {{String}} Results sort order
'projection': 56, // {{Integer}} Image Projection
'parentReferenceUuid': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {{UUID}} Parent reference uuid
'includeAllChildren': true, // {{Boolean}} Include all eventual children of parent reference uuid
'inputType': inputType_example, // {{String}} Input type
'includeDeleted': true, // {{Boolean}} Include deleted subfields
'includeScalarInfo': true, // {{Boolean}} Include scalar information
'includeScalarTypeInfo': true, // {{Boolean}} Include scalar type information
'includeAssetGeometry': true, // {{Boolean}} Include Asset GeoJson geometry in response
'includeRawGeometry': true, // {{Boolean}} Return original raw Geometry (if present) instead of Asset Geometry
'bufferSize': 1.2, // {{Double}} Buffer size around geometry
'includeInternalName': true // {{Boolean}} Include Internal Name
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getAllAssets(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getAllAssetsExample
{
public void main()
{
var apiInstance = new AssetsApi();
var xProfileId = xProfileId_example; // String | Profile Id (optional)
var uuidsOnly = true; // Boolean | UUIDs Only - Return an array of subfield UUID's (optional) (default to false)
var start = 56; // Integer | Start pagination offset (optional) (default to 0)
var limit = 56; // Integer | Results per page (optional) (default to 10)
var sort = sort_example; // String | Results sort order (optional) (default to id)
var projection = 56; // Integer | Image Projection (optional) (default to 4326)
var parentReferenceUuid = new UUID(); // UUID | Parent reference uuid (optional)
var includeAllChildren = true; // Boolean | Include all eventual children of parent reference uuid (optional) (default to false)
var inputType = inputType_example; // String | Input type (optional)
var includeDeleted = true; // Boolean | Include deleted subfields (optional) (default to false)
var includeScalarInfo = true; // Boolean | Include scalar information (optional) (default to false)
var includeScalarTypeInfo = true; // Boolean | Include scalar type information (optional) (default to true)
var includeAssetGeometry = true; // Boolean | Include Asset GeoJson geometry in response (optional) (default to true)
var includeRawGeometry = true; // Boolean | Return original raw Geometry (if present) instead of Asset Geometry (optional)
var bufferSize = 1.2; // Double | Buffer size around geometry (optional)
var includeInternalName = true; // Boolean | Include Internal Name (optional) (default to false)
try
{
// Returns a list of assets
AssetFeature result = apiInstance.getAllAssets(xProfileId, uuidsOnly, start, limit, sort, projection, parentReferenceUuid, includeAllChildren, inputType, includeDeleted, includeScalarInfo, includeScalarTypeInfo, includeAssetGeometry, includeRawGeometry, bufferSize, includeInternalName);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AssetsApi.getAllAssets: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAssetsApi();
$xProfileId = xProfileId_example; // String | Profile Id
$uuidsOnly = true; // Boolean | UUIDs Only - Return an array of subfield UUID's
$start = 56; // Integer | Start pagination offset
$limit = 56; // Integer | Results per page
$sort = sort_example; // String | Results sort order
$projection = 56; // Integer | Image Projection
$parentReferenceUuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Parent reference uuid
$includeAllChildren = true; // Boolean | Include all eventual children of parent reference uuid
$inputType = inputType_example; // String | Input type
$includeDeleted = true; // Boolean | Include deleted subfields
$includeScalarInfo = true; // Boolean | Include scalar information
$includeScalarTypeInfo = true; // Boolean | Include scalar type information
$includeAssetGeometry = true; // Boolean | Include Asset GeoJson geometry in response
$includeRawGeometry = true; // Boolean | Return original raw Geometry (if present) instead of Asset Geometry
$bufferSize = 1.2; // Double | Buffer size around geometry
$includeInternalName = true; // Boolean | Include Internal Name
try {
$result = $api_instance->getAllAssets($xProfileId, $uuidsOnly, $start, $limit, $sort, $projection, $parentReferenceUuid, $includeAllChildren, $inputType, $includeDeleted, $includeScalarInfo, $includeScalarTypeInfo, $includeAssetGeometry, $includeRawGeometry, $bufferSize, $includeInternalName);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AssetsApi->getAllAssets: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetsApi;
my $api_instance = WWW::SwaggerClient::AssetsApi->new();
my $xProfileId = xProfileId_example; # String | Profile Id
my $uuidsOnly = true; # Boolean | UUIDs Only - Return an array of subfield UUID's
my $start = 56; # Integer | Start pagination offset
my $limit = 56; # Integer | Results per page
my $sort = sort_example; # String | Results sort order
my $projection = 56; # Integer | Image Projection
my $parentReferenceUuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Parent reference uuid
my $includeAllChildren = true; # Boolean | Include all eventual children of parent reference uuid
my $inputType = inputType_example; # String | Input type
my $includeDeleted = true; # Boolean | Include deleted subfields
my $includeScalarInfo = true; # Boolean | Include scalar information
my $includeScalarTypeInfo = true; # Boolean | Include scalar type information
my $includeAssetGeometry = true; # Boolean | Include Asset GeoJson geometry in response
my $includeRawGeometry = true; # Boolean | Return original raw Geometry (if present) instead of Asset Geometry
my $bufferSize = 1.2; # Double | Buffer size around geometry
my $includeInternalName = true; # Boolean | Include Internal Name
eval {
my $result = $api_instance->getAllAssets(xProfileId => $xProfileId, uuidsOnly => $uuidsOnly, start => $start, limit => $limit, sort => $sort, projection => $projection, parentReferenceUuid => $parentReferenceUuid, includeAllChildren => $includeAllChildren, inputType => $inputType, includeDeleted => $includeDeleted, includeScalarInfo => $includeScalarInfo, includeScalarTypeInfo => $includeScalarTypeInfo, includeAssetGeometry => $includeAssetGeometry, includeRawGeometry => $includeRawGeometry, bufferSize => $bufferSize, includeInternalName => $includeInternalName);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AssetsApi->getAllAssets: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AssetsApi()
xProfileId = xProfileId_example # String | Profile Id (optional)
uuidsOnly = true # Boolean | UUIDs Only - Return an array of subfield UUID's (optional) (default to false)
start = 56 # Integer | Start pagination offset (optional) (default to 0)
limit = 56 # Integer | Results per page (optional) (default to 10)
sort = sort_example # String | Results sort order (optional) (default to id)
projection = 56 # Integer | Image Projection (optional) (default to 4326)
parentReferenceUuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Parent reference uuid (optional)
includeAllChildren = true # Boolean | Include all eventual children of parent reference uuid (optional) (default to false)
inputType = inputType_example # String | Input type (optional)
includeDeleted = true # Boolean | Include deleted subfields (optional) (default to false)
includeScalarInfo = true # Boolean | Include scalar information (optional) (default to false)
includeScalarTypeInfo = true # Boolean | Include scalar type information (optional) (default to true)
includeAssetGeometry = true # Boolean | Include Asset GeoJson geometry in response (optional) (default to true)
includeRawGeometry = true # Boolean | Return original raw Geometry (if present) instead of Asset Geometry (optional)
bufferSize = 1.2 # Double | Buffer size around geometry (optional)
includeInternalName = true # Boolean | Include Internal Name (optional) (default to false)
try:
# Returns a list of assets
api_response = api_instance.get_all_assets(xProfileId=xProfileId, uuidsOnly=uuidsOnly, start=start, limit=limit, sort=sort, projection=projection, parentReferenceUuid=parentReferenceUuid, includeAllChildren=includeAllChildren, inputType=inputType, includeDeleted=includeDeleted, includeScalarInfo=includeScalarInfo, includeScalarTypeInfo=includeScalarTypeInfo, includeAssetGeometry=includeAssetGeometry, includeRawGeometry=includeRawGeometry, bufferSize=bufferSize, includeInternalName=includeInternalName)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->getAllAssets: %s\n" % e)