getActions
All ODM2 actions retrieval
/actions
Usage and SDK Samples
curl -X GET "http://odm2sandbox.uwrl.usu.edu:8000/v1/actions?actionID=&actionType=&samplingFeatureID="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ActionsApi;
import java.io.File;
import java.util.*;
public class ActionsApiExample {
public static void main(String[] args) {
ActionsApi apiInstance = new ActionsApi();
String actionID = actionID_example; // String | Action ID(s)
String actionType = actionType_example; // String | Action Type (Name).
See all available Action Types [here](http://vocabulary.odm2.org/actiontype/).
Integer samplingFeatureID = 56; // Integer | Sampling Feature ID
try {
apiInstance.getActions(actionID, actionType, samplingFeatureID);
} catch (ApiException e) {
System.err.println("Exception when calling ActionsApi#getActions");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ActionsApi;
public class ActionsApiExample {
public static void main(String[] args) {
ActionsApi apiInstance = new ActionsApi();
String actionID = actionID_example; // String | Action ID(s)
String actionType = actionType_example; // String | Action Type (Name).
See all available Action Types [here](http://vocabulary.odm2.org/actiontype/).
Integer samplingFeatureID = 56; // Integer | Sampling Feature ID
try {
apiInstance.getActions(actionID, actionType, samplingFeatureID);
} catch (ApiException e) {
System.err.println("Exception when calling ActionsApi#getActions");
e.printStackTrace();
}
}
}
String *actionID = actionID_example; // Action ID(s) (optional)
String *actionType = actionType_example; // Action Type (Name).
See all available Action Types [here](http://vocabulary.odm2.org/actiontype/). (optional)
Integer *samplingFeatureID = 56; // Sampling Feature ID (optional)
ActionsApi *apiInstance = [[ActionsApi alloc] init];
// All ODM2 actions retrieval
[apiInstance getActionsWith:actionID
actionType:actionType
samplingFeatureID:samplingFeatureID
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Odm2RestApi = require('odm2_rest_api');
var api = new Odm2RestApi.ActionsApi()
var opts = {
'actionID': actionID_example, // {String} Action ID(s)
'actionType': actionType_example, // {String} Action Type (Name).
See all available Action Types [here](http://vocabulary.odm2.org/actiontype/).
'samplingFeatureID': 56 // {Integer} Sampling Feature ID
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.getActions(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getActionsExample
{
public void main()
{
var apiInstance = new ActionsApi();
var actionID = actionID_example; // String | Action ID(s) (optional)
var actionType = actionType_example; // String | Action Type (Name).
See all available Action Types [here](http://vocabulary.odm2.org/actiontype/). (optional)
var samplingFeatureID = 56; // Integer | Sampling Feature ID (optional)
try
{
// All ODM2 actions retrieval
apiInstance.getActions(actionID, actionType, samplingFeatureID);
}
catch (Exception e)
{
Debug.Print("Exception when calling ActionsApi.getActions: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\ActionsApi();
$actionID = actionID_example; // String | Action ID(s)
$actionType = actionType_example; // String | Action Type (Name).
See all available Action Types [here](http://vocabulary.odm2.org/actiontype/).
$samplingFeatureID = 56; // Integer | Sampling Feature ID
try {
$api_instance->getActions($actionID, $actionType, $samplingFeatureID);
} catch (Exception $e) {
echo 'Exception when calling ActionsApi->getActions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ActionsApi;
my $api_instance = WWW::SwaggerClient::ActionsApi->new();
my $actionID = actionID_example; # String | Action ID(s)
my $actionType = actionType_example; # String | Action Type (Name).
See all available Action Types [here](http://vocabulary.odm2.org/actiontype/).
my $samplingFeatureID = 56; # Integer | Sampling Feature ID
eval {
$api_instance->getActions(actionID => $actionID, actionType => $actionType, samplingFeatureID => $samplingFeatureID);
};
if ($@) {
warn "Exception when calling ActionsApi->getActions: $@\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.ActionsApi()
actionID = actionID_example # String | Action ID(s) (optional)
actionType = actionType_example # String | Action Type (Name).
See all available Action Types [here](http://vocabulary.odm2.org/actiontype/). (optional)
samplingFeatureID = 56 # Integer | Sampling Feature ID (optional)
try:
# All ODM2 actions retrieval
api_instance.get_actions(actionID=actionID, actionType=actionType, samplingFeatureID=samplingFeatureID)
except ApiException as e:
print("Exception when calling ActionsApi->getActions: %s\n" % e)
Parameters
Name | Description |
---|---|
actionID |
String
Action ID(s)
|
actionType |
String
Action Type (Name). <br> See all available Action Types [here](http://vocabulary.odm2.org/actiontype/).
|
samplingFeatureID |
Integer
Sampling Feature ID
|