LEMO2 MongoDB data backend API

LearningData

get a list of all learning activities


/learning_data/activities

Usage and SDK Samples

curl -X GET "https://localhost/learning_data/activities"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LearningDataApi;

import java.io.File;
import java.util.*;

public class LearningDataApiExample {

    public static void main(String[] args) {
        
        LearningDataApi apiInstance = new LearningDataApi();
        try {
            array[Contexts] result = apiInstance.get a list of all learning activities();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get a list of all learning activities");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LearningDataApi;

public class LearningDataApiExample {

    public static void main(String[] args) {
        LearningDataApi apiInstance = new LearningDataApi();
        try {
            array[Contexts] result = apiInstance.get a list of all learning activities();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get a list of all learning activities");
            e.printStackTrace();
        }
    }
}

LearningDataApi *apiInstance = [[LearningDataApi alloc] init];

[apiInstance get a list of all learning activitiesWithCompletionHandler: 
              ^(array[Contexts] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.LearningDataApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.get a list of all learning activities(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get a list of all learning activitiesExample
    {
        public void main()
        {
            
            var apiInstance = new LearningDataApi();

            try
            {
                array[Contexts] result = apiInstance.get a list of all learning activities();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LearningDataApi.get a list of all learning activities: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LearningDataApi();

try {
    $result = $api_instance->get a list of all learning activities();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LearningDataApi->get a list of all learning activities: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LearningDataApi;

my $api_instance = WWW::SwaggerClient::LearningDataApi->new();

eval { 
    my $result = $api_instance->get a list of all learning activities();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LearningDataApi->get a list of all learning activities: $@\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.LearningDataApi()

try: 
    api_response = api_instance.get_a_list_of_all_learning_activities()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LearningDataApi->get a list of all learning activities: %s\n" % e)

Parameters

Responses

Status: 200 - Success


get a list of all learning contexts


/learning_data/contexts

Usage and SDK Samples

curl -X GET "https://localhost/learning_data/contexts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LearningDataApi;

import java.io.File;
import java.util.*;

public class LearningDataApiExample {

    public static void main(String[] args) {
        
        LearningDataApi apiInstance = new LearningDataApi();
        try {
            array[Contexts] result = apiInstance.get a list of all learning contexts();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get a list of all learning contexts");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LearningDataApi;

public class LearningDataApiExample {

    public static void main(String[] args) {
        LearningDataApi apiInstance = new LearningDataApi();
        try {
            array[Contexts] result = apiInstance.get a list of all learning contexts();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get a list of all learning contexts");
            e.printStackTrace();
        }
    }
}

LearningDataApi *apiInstance = [[LearningDataApi alloc] init];

[apiInstance get a list of all learning contextsWithCompletionHandler: 
              ^(array[Contexts] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.LearningDataApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.get a list of all learning contexts(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get a list of all learning contextsExample
    {
        public void main()
        {
            
            var apiInstance = new LearningDataApi();

            try
            {
                array[Contexts] result = apiInstance.get a list of all learning contexts();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LearningDataApi.get a list of all learning contexts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LearningDataApi();

try {
    $result = $api_instance->get a list of all learning contexts();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LearningDataApi->get a list of all learning contexts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LearningDataApi;

my $api_instance = WWW::SwaggerClient::LearningDataApi->new();

eval { 
    my $result = $api_instance->get a list of all learning contexts();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LearningDataApi->get a list of all learning contexts: $@\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.LearningDataApi()

try: 
    api_response = api_instance.get_a_list_of_all_learning_contexts()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LearningDataApi->get a list of all learning contexts: %s\n" % e)

Parameters

Responses

Status: 200 - Success


get a list of all learning objects


/learning_data/objects

Usage and SDK Samples

curl -X GET "https://localhost/learning_data/objects"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LearningDataApi;

import java.io.File;
import java.util.*;

public class LearningDataApiExample {

    public static void main(String[] args) {
        
        LearningDataApi apiInstance = new LearningDataApi();
        try {
            Object result = apiInstance.get a list of all learning objects();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get a list of all learning objects");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LearningDataApi;

public class LearningDataApiExample {

    public static void main(String[] args) {
        LearningDataApi apiInstance = new LearningDataApi();
        try {
            Object result = apiInstance.get a list of all learning objects();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get a list of all learning objects");
            e.printStackTrace();
        }
    }
}

LearningDataApi *apiInstance = [[LearningDataApi alloc] init];

[apiInstance get a list of all learning objectsWithCompletionHandler: 
              ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.LearningDataApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.get a list of all learning objects(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get a list of all learning objectsExample
    {
        public void main()
        {
            
            var apiInstance = new LearningDataApi();

            try
            {
                Object result = apiInstance.get a list of all learning objects();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LearningDataApi.get a list of all learning objects: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LearningDataApi();

try {
    $result = $api_instance->get a list of all learning objects();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LearningDataApi->get a list of all learning objects: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LearningDataApi;

my $api_instance = WWW::SwaggerClient::LearningDataApi->new();

eval { 
    my $result = $api_instance->get a list of all learning objects();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LearningDataApi->get a list of all learning objects: $@\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.LearningDataApi()

try: 
    api_response = api_instance.get_a_list_of_all_learning_objects()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LearningDataApi->get a list of all learning objects: %s\n" % e)

Parameters

Responses

Status: 200 - Success


get a list of all persons


/learning_data/persons

Usage and SDK Samples

curl -X GET "https://localhost/learning_data/persons"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LearningDataApi;

import java.io.File;
import java.util.*;

public class LearningDataApiExample {

    public static void main(String[] args) {
        
        LearningDataApi apiInstance = new LearningDataApi();
        try {
            apiInstance.get a list of all persons();
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get a list of all persons");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LearningDataApi;

public class LearningDataApiExample {

    public static void main(String[] args) {
        LearningDataApi apiInstance = new LearningDataApi();
        try {
            apiInstance.get a list of all persons();
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get a list of all persons");
            e.printStackTrace();
        }
    }
}

LearningDataApi *apiInstance = [[LearningDataApi alloc] init];

[apiInstance get a list of all personsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.LearningDataApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.get a list of all persons(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get a list of all personsExample
    {
        public void main()
        {
            
            var apiInstance = new LearningDataApi();

            try
            {
                apiInstance.get a list of all persons();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LearningDataApi.get a list of all persons: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LearningDataApi();

try {
    $api_instance->get a list of all persons();
} catch (Exception $e) {
    echo 'Exception when calling LearningDataApi->get a list of all persons: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LearningDataApi;

my $api_instance = WWW::SwaggerClient::LearningDataApi->new();

eval { 
    $api_instance->get a list of all persons();
};
if ($@) {
    warn "Exception when calling LearningDataApi->get a list of all persons: $@\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.LearningDataApi()

try: 
    api_instance.get_a_list_of_all_persons()
except ApiException as e:
    print("Exception when calling LearningDataApi->get a list of all persons: %s\n" % e)

Parameters

Responses

Status: 200 - Success


get the specified learning activity


/learning_data/activities/{id}

Usage and SDK Samples

curl -X GET "https://localhost/learning_data/activities/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LearningDataApi;

import java.io.File;
import java.util.*;

public class LearningDataApiExample {

    public static void main(String[] args) {
        
        LearningDataApi apiInstance = new LearningDataApi();
        String id = id_example; // String | ObjectId of the Activity
        try {
            Activities result = apiInstance.get the specified learning activity(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get the specified learning activity");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LearningDataApi;

public class LearningDataApiExample {

    public static void main(String[] args) {
        LearningDataApi apiInstance = new LearningDataApi();
        String id = id_example; // String | ObjectId of the Activity
        try {
            Activities result = apiInstance.get the specified learning activity(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get the specified learning activity");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ObjectId of the Activity

LearningDataApi *apiInstance = [[LearningDataApi alloc] init];

[apiInstance get the specified learning activityWith:id
              completionHandler: ^(Activities output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.LearningDataApi()

var id = id_example; // {String} ObjectId of the Activity


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.get the specified learning activity(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get the specified learning activityExample
    {
        public void main()
        {
            
            var apiInstance = new LearningDataApi();
            var id = id_example;  // String | ObjectId of the Activity

            try
            {
                Activities result = apiInstance.get the specified learning activity(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LearningDataApi.get the specified learning activity: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LearningDataApi();
$id = id_example; // String | ObjectId of the Activity

try {
    $result = $api_instance->get the specified learning activity($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LearningDataApi->get the specified learning activity: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LearningDataApi;

my $api_instance = WWW::SwaggerClient::LearningDataApi->new();
my $id = id_example; # String | ObjectId of the Activity

eval { 
    my $result = $api_instance->get the specified learning activity(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LearningDataApi->get the specified learning activity: $@\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.LearningDataApi()
id = id_example # String | ObjectId of the Activity

try: 
    api_response = api_instance.get_the_specified_learning_activity(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LearningDataApi->get the specified learning activity: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ObjectId of the Activity
Required

Responses

Status: 200 - Success

Status: 404 - Not Found


get the specified learning context


/learning_data/contexts/{id}

Usage and SDK Samples

curl -X GET "https://localhost/learning_data/contexts/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LearningDataApi;

import java.io.File;
import java.util.*;

public class LearningDataApiExample {

    public static void main(String[] args) {
        
        LearningDataApi apiInstance = new LearningDataApi();
        String id = id_example; // String | ObjectId of the context
        try {
            Contexts result = apiInstance.get the specified learning context(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get the specified learning context");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LearningDataApi;

public class LearningDataApiExample {

    public static void main(String[] args) {
        LearningDataApi apiInstance = new LearningDataApi();
        String id = id_example; // String | ObjectId of the context
        try {
            Contexts result = apiInstance.get the specified learning context(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get the specified learning context");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ObjectId of the context

LearningDataApi *apiInstance = [[LearningDataApi alloc] init];

[apiInstance get the specified learning contextWith:id
              completionHandler: ^(Contexts output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.LearningDataApi()

var id = id_example; // {String} ObjectId of the context


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.get the specified learning context(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get the specified learning contextExample
    {
        public void main()
        {
            
            var apiInstance = new LearningDataApi();
            var id = id_example;  // String | ObjectId of the context

            try
            {
                Contexts result = apiInstance.get the specified learning context(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LearningDataApi.get the specified learning context: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LearningDataApi();
$id = id_example; // String | ObjectId of the context

try {
    $result = $api_instance->get the specified learning context($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LearningDataApi->get the specified learning context: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LearningDataApi;

my $api_instance = WWW::SwaggerClient::LearningDataApi->new();
my $id = id_example; # String | ObjectId of the context

eval { 
    my $result = $api_instance->get the specified learning context(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LearningDataApi->get the specified learning context: $@\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.LearningDataApi()
id = id_example # String | ObjectId of the context

try: 
    api_response = api_instance.get_the_specified_learning_context(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LearningDataApi->get the specified learning context: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ObjectId of the context
Required

Responses

Status: 200 - Success

Status: 404 - Not Found


get the specified learning object


/learning_data/objects/{id}

Usage and SDK Samples

curl -X GET "https://localhost/learning_data/objects/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LearningDataApi;

import java.io.File;
import java.util.*;

public class LearningDataApiExample {

    public static void main(String[] args) {
        
        LearningDataApi apiInstance = new LearningDataApi();
        String id = id_example; // String | ObjectId of the object
        try {
            Person result = apiInstance.get the specified learning object(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get the specified learning object");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LearningDataApi;

public class LearningDataApiExample {

    public static void main(String[] args) {
        LearningDataApi apiInstance = new LearningDataApi();
        String id = id_example; // String | ObjectId of the object
        try {
            Person result = apiInstance.get the specified learning object(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get the specified learning object");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ObjectId of the object

LearningDataApi *apiInstance = [[LearningDataApi alloc] init];

[apiInstance get the specified learning objectWith:id
              completionHandler: ^(Person output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.LearningDataApi()

var id = id_example; // {String} ObjectId of the object


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.get the specified learning object(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get the specified learning objectExample
    {
        public void main()
        {
            
            var apiInstance = new LearningDataApi();
            var id = id_example;  // String | ObjectId of the object

            try
            {
                Person result = apiInstance.get the specified learning object(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LearningDataApi.get the specified learning object: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LearningDataApi();
$id = id_example; // String | ObjectId of the object

try {
    $result = $api_instance->get the specified learning object($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LearningDataApi->get the specified learning object: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LearningDataApi;

my $api_instance = WWW::SwaggerClient::LearningDataApi->new();
my $id = id_example; # String | ObjectId of the object

eval { 
    my $result = $api_instance->get the specified learning object(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LearningDataApi->get the specified learning object: $@\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.LearningDataApi()
id = id_example # String | ObjectId of the object

try: 
    api_response = api_instance.get_the_specified_learning_object(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LearningDataApi->get the specified learning object: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ObjectId of the object
Required

Responses

Status: 200 - Success

Status: 404 - Not Found


get the specified person


/learning_data/persons/{id}

Usage and SDK Samples

curl -X GET "https://localhost/learning_data/persons/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LearningDataApi;

import java.io.File;
import java.util.*;

public class LearningDataApiExample {

    public static void main(String[] args) {
        
        LearningDataApi apiInstance = new LearningDataApi();
        String id = id_example; // String | ObjectId of the person
        try {
            Person result = apiInstance.get the specified person(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get the specified person");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LearningDataApi;

public class LearningDataApiExample {

    public static void main(String[] args) {
        LearningDataApi apiInstance = new LearningDataApi();
        String id = id_example; // String | ObjectId of the person
        try {
            Person result = apiInstance.get the specified person(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LearningDataApi#get the specified person");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ObjectId of the person

LearningDataApi *apiInstance = [[LearningDataApi alloc] init];

[apiInstance get the specified personWith:id
              completionHandler: ^(Person output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.LearningDataApi()

var id = id_example; // {String} ObjectId of the person


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.get the specified person(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get the specified personExample
    {
        public void main()
        {
            
            var apiInstance = new LearningDataApi();
            var id = id_example;  // String | ObjectId of the person

            try
            {
                Person result = apiInstance.get the specified person(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LearningDataApi.get the specified person: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LearningDataApi();
$id = id_example; // String | ObjectId of the person

try {
    $result = $api_instance->get the specified person($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LearningDataApi->get the specified person: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LearningDataApi;

my $api_instance = WWW::SwaggerClient::LearningDataApi->new();
my $id = id_example; # String | ObjectId of the person

eval { 
    my $result = $api_instance->get the specified person(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LearningDataApi->get the specified person: $@\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.LearningDataApi()
id = id_example # String | ObjectId of the person

try: 
    api_response = api_instance.get_the_specified_person(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LearningDataApi->get the specified person: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ObjectId of the person
Required

Responses

Status: 200 - Success

Status: 404 - Not Found


Metadata

get autoGenerated test cases/patterns for import in Postman for testing


/metadata/postman

Usage and SDK Samples

curl -X GET "https://localhost/metadata/postman"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MetadataApi;

import java.io.File;
import java.util.*;

public class MetadataApiExample {

    public static void main(String[] args) {
        
        MetadataApi apiInstance = new MetadataApi();
        try {
            apiInstance.get autoGenerated test cases/patterns for import in Postman for testing();
        } catch (ApiException e) {
            System.err.println("Exception when calling MetadataApi#get autoGenerated test cases/patterns for import in Postman for testing");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MetadataApi;

public class MetadataApiExample {

    public static void main(String[] args) {
        MetadataApi apiInstance = new MetadataApi();
        try {
            apiInstance.get autoGenerated test cases/patterns for import in Postman for testing();
        } catch (ApiException e) {
            System.err.println("Exception when calling MetadataApi#get autoGenerated test cases/patterns for import in Postman for testing");
            e.printStackTrace();
        }
    }
}

MetadataApi *apiInstance = [[MetadataApi alloc] init];

[apiInstance get autoGenerated test cases/patterns for import in Postman for testingWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.MetadataApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.get autoGenerated test cases/patterns for import in Postman for testing(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get autoGenerated test cases/patterns for import in Postman for testingExample
    {
        public void main()
        {
            
            var apiInstance = new MetadataApi();

            try
            {
                apiInstance.get autoGenerated test cases/patterns for import in Postman for testing();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MetadataApi.get autoGenerated test cases/patterns for import in Postman for testing: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MetadataApi();

try {
    $api_instance->get autoGenerated test cases/patterns for import in Postman for testing();
} catch (Exception $e) {
    echo 'Exception when calling MetadataApi->get autoGenerated test cases/patterns for import in Postman for testing: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MetadataApi;

my $api_instance = WWW::SwaggerClient::MetadataApi->new();

eval { 
    $api_instance->get autoGenerated test cases/patterns for import in Postman for testing();
};
if ($@) {
    warn "Exception when calling MetadataApi->get autoGenerated test cases/patterns for import in Postman for testing: $@\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.MetadataApi()

try: 
    api_instance.get_auto_generated_test_cases/patterns_for_import_in_postman_for_testing()
except ApiException as e:
    print("Exception when calling MetadataApi->get autoGenerated test cases/patterns for import in Postman for testing: %s\n" % e)

Parameters

Responses

Status: 200 - Success


Sensordata

a complete recording of sensor data including values


/sensordata/sensordata/{id}

Usage and SDK Samples

curl -X GET "https://localhost/sensordata/sensordata/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SensordataApi;

import java.io.File;
import java.util.*;

public class SensordataApiExample {

    public static void main(String[] args) {
        
        SensordataApi apiInstance = new SensordataApi();
        String id = id_example; // String | ObjectId of the Sensordata
        try {
            Sensordata result = apiInstance.a complete recording of sensor data including values(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#a complete recording of sensor data including values");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SensordataApi;

public class SensordataApiExample {

    public static void main(String[] args) {
        SensordataApi apiInstance = new SensordataApi();
        String id = id_example; // String | ObjectId of the Sensordata
        try {
            Sensordata result = apiInstance.a complete recording of sensor data including values(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#a complete recording of sensor data including values");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ObjectId of the Sensordata

SensordataApi *apiInstance = [[SensordataApi alloc] init];

[apiInstance a complete recording of sensor data including valuesWith:id
              completionHandler: ^(Sensordata output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.SensordataApi()

var id = id_example; // {String} ObjectId of the Sensordata


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.a complete recording of sensor data including values(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class a complete recording of sensor data including valuesExample
    {
        public void main()
        {
            
            var apiInstance = new SensordataApi();
            var id = id_example;  // String | ObjectId of the Sensordata

            try
            {
                Sensordata result = apiInstance.a complete recording of sensor data including values(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SensordataApi.a complete recording of sensor data including values: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SensordataApi();
$id = id_example; // String | ObjectId of the Sensordata

try {
    $result = $api_instance->a complete recording of sensor data including values($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SensordataApi->a complete recording of sensor data including values: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SensordataApi;

my $api_instance = WWW::SwaggerClient::SensordataApi->new();
my $id = id_example; # String | ObjectId of the Sensordata

eval { 
    my $result = $api_instance->a complete recording of sensor data including values(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SensordataApi->a complete recording of sensor data including values: $@\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.SensordataApi()
id = id_example # String | ObjectId of the Sensordata

try: 
    api_response = api_instance.a_complete_recording_of_sensor_data_including_values(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SensordataApi->a complete recording of sensor data including values: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ObjectId of the Sensordata
Required

Responses

Status: 200 - Success

Status: 404 - Not Found


a list of all sensordata recordings in the specified session


/sensordata/sensordata/session/{id}

Usage and SDK Samples

curl -X GET "https://localhost/sensordata/sensordata/session/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SensordataApi;

import java.io.File;
import java.util.*;

public class SensordataApiExample {

    public static void main(String[] args) {
        
        SensordataApi apiInstance = new SensordataApi();
        String id = id_example; // String | ObjectId of the Session of the recordings
        try {
            SensordataMetaOnly result = apiInstance.a list of all sensordata recordings in the specified session(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#a list of all sensordata recordings in the specified session");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SensordataApi;

public class SensordataApiExample {

    public static void main(String[] args) {
        SensordataApi apiInstance = new SensordataApi();
        String id = id_example; // String | ObjectId of the Session of the recordings
        try {
            SensordataMetaOnly result = apiInstance.a list of all sensordata recordings in the specified session(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#a list of all sensordata recordings in the specified session");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ObjectId of the Session of the recordings

SensordataApi *apiInstance = [[SensordataApi alloc] init];

[apiInstance a list of all sensordata recordings in the specified sessionWith:id
              completionHandler: ^(SensordataMetaOnly output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.SensordataApi()

var id = id_example; // {String} ObjectId of the Session of the recordings


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.a list of all sensordata recordings in the specified session(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class a list of all sensordata recordings in the specified sessionExample
    {
        public void main()
        {
            
            var apiInstance = new SensordataApi();
            var id = id_example;  // String | ObjectId of the Session of the recordings

            try
            {
                SensordataMetaOnly result = apiInstance.a list of all sensordata recordings in the specified session(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SensordataApi.a list of all sensordata recordings in the specified session: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SensordataApi();
$id = id_example; // String | ObjectId of the Session of the recordings

try {
    $result = $api_instance->a list of all sensordata recordings in the specified session($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SensordataApi->a list of all sensordata recordings in the specified session: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SensordataApi;

my $api_instance = WWW::SwaggerClient::SensordataApi->new();
my $id = id_example; # String | ObjectId of the Session of the recordings

eval { 
    my $result = $api_instance->a list of all sensordata recordings in the specified session(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SensordataApi->a list of all sensordata recordings in the specified session: $@\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.SensordataApi()
id = id_example # String | ObjectId of the Session of the recordings

try: 
    api_response = api_instance.a_list_of_all_sensordata_recordings_in_the_specified_session(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SensordataApi->a list of all sensordata recordings in the specified session: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ObjectId of the Session of the recordings
Required

Responses

Status: 200 - Success


add continuous sensor values to a sensor recording


/sensordata/sensordata/{id}/continuous

Usage and SDK Samples

curl -X PUT "https://localhost/sensordata/sensordata/{id}/continuous"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SensordataApi;

import java.io.File;
import java.util.*;

public class SensordataApiExample {

    public static void main(String[] args) {
        
        SensordataApi apiInstance = new SensordataApi();
        String id = id_example; // String | ObjectId of the Sensordata
        array[String] payload = ; // array[String] | 
        try {
            SensordataMetaOnly result = apiInstance.add continuous sensor values to a sensor recording(id, payload);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#add continuous sensor values to a sensor recording");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SensordataApi;

public class SensordataApiExample {

    public static void main(String[] args) {
        SensordataApi apiInstance = new SensordataApi();
        String id = id_example; // String | ObjectId of the Sensordata
        array[String] payload = ; // array[String] | 
        try {
            SensordataMetaOnly result = apiInstance.add continuous sensor values to a sensor recording(id, payload);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#add continuous sensor values to a sensor recording");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ObjectId of the Sensordata
array[String] *payload = ; // 

SensordataApi *apiInstance = [[SensordataApi alloc] init];

[apiInstance add continuous sensor values to a sensor recordingWith:id
    payload:payload
              completionHandler: ^(SensordataMetaOnly output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.SensordataApi()

var id = id_example; // {String} ObjectId of the Sensordata

var payload = ; // {array[String]} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.add continuous sensor values to a sensor recording(id, payload, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class add continuous sensor values to a sensor recordingExample
    {
        public void main()
        {
            
            var apiInstance = new SensordataApi();
            var id = id_example;  // String | ObjectId of the Sensordata
            var payload = new array[String](); // array[String] | 

            try
            {
                SensordataMetaOnly result = apiInstance.add continuous sensor values to a sensor recording(id, payload);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SensordataApi.add continuous sensor values to a sensor recording: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SensordataApi();
$id = id_example; // String | ObjectId of the Sensordata
$payload = ; // array[String] | 

try {
    $result = $api_instance->add continuous sensor values to a sensor recording($id, $payload);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SensordataApi->add continuous sensor values to a sensor recording: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SensordataApi;

my $api_instance = WWW::SwaggerClient::SensordataApi->new();
my $id = id_example; # String | ObjectId of the Sensordata
my $payload = [WWW::SwaggerClient::Object::array[String]->new()]; # array[String] | 

eval { 
    my $result = $api_instance->add continuous sensor values to a sensor recording(id => $id, payload => $payload);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SensordataApi->add continuous sensor values to a sensor recording: $@\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.SensordataApi()
id = id_example # String | ObjectId of the Sensordata
payload =  # array[String] | 

try: 
    api_response = api_instance.add_continuous_sensor_values_to_a_sensor_recording(id, payload)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SensordataApi->add continuous sensor values to a sensor recording: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ObjectId of the Sensordata
Required
Body parameters
Name Description
payload *

Responses

Status: 201 - Success

Status: 400 - Validation Error

Status: 404 - Sensordata not found


add sporadic sensor values to a existing recording


/sensordata/sensordata/{id}/sporadic

Usage and SDK Samples

curl -X PUT "https://localhost/sensordata/sensordata/{id}/sporadic"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SensordataApi;

import java.io.File;
import java.util.*;

public class SensordataApiExample {

    public static void main(String[] args) {
        
        SensordataApi apiInstance = new SensordataApi();
        String id = id_example; // String | ObjectId of the Sensordata
        array[SporadicSensorvalues] payload = ; // array[SporadicSensorvalues] | 
        try {
            SensordataMetaOnly result = apiInstance.add sporadic sensor values to a existing recording(id, payload);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#add sporadic sensor values to a existing recording");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SensordataApi;

public class SensordataApiExample {

    public static void main(String[] args) {
        SensordataApi apiInstance = new SensordataApi();
        String id = id_example; // String | ObjectId of the Sensordata
        array[SporadicSensorvalues] payload = ; // array[SporadicSensorvalues] | 
        try {
            SensordataMetaOnly result = apiInstance.add sporadic sensor values to a existing recording(id, payload);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#add sporadic sensor values to a existing recording");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ObjectId of the Sensordata
array[SporadicSensorvalues] *payload = ; // 

SensordataApi *apiInstance = [[SensordataApi alloc] init];

[apiInstance add sporadic sensor values to a existing recordingWith:id
    payload:payload
              completionHandler: ^(SensordataMetaOnly output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.SensordataApi()

var id = id_example; // {String} ObjectId of the Sensordata

var payload = ; // {array[SporadicSensorvalues]} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.add sporadic sensor values to a existing recording(id, payload, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class add sporadic sensor values to a existing recordingExample
    {
        public void main()
        {
            
            var apiInstance = new SensordataApi();
            var id = id_example;  // String | ObjectId of the Sensordata
            var payload = new array[SporadicSensorvalues](); // array[SporadicSensorvalues] | 

            try
            {
                SensordataMetaOnly result = apiInstance.add sporadic sensor values to a existing recording(id, payload);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SensordataApi.add sporadic sensor values to a existing recording: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SensordataApi();
$id = id_example; // String | ObjectId of the Sensordata
$payload = ; // array[SporadicSensorvalues] | 

try {
    $result = $api_instance->add sporadic sensor values to a existing recording($id, $payload);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SensordataApi->add sporadic sensor values to a existing recording: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SensordataApi;

my $api_instance = WWW::SwaggerClient::SensordataApi->new();
my $id = id_example; # String | ObjectId of the Sensordata
my $payload = [WWW::SwaggerClient::Object::array[SporadicSensorvalues]->new()]; # array[SporadicSensorvalues] | 

eval { 
    my $result = $api_instance->add sporadic sensor values to a existing recording(id => $id, payload => $payload);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SensordataApi->add sporadic sensor values to a existing recording: $@\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.SensordataApi()
id = id_example # String | ObjectId of the Sensordata
payload =  # array[SporadicSensorvalues] | 

try: 
    api_response = api_instance.add_sporadic_sensor_values_to_a_existing_recording(id, payload)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SensordataApi->add sporadic sensor values to a existing recording: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ObjectId of the Sensordata
Required
Body parameters
Name Description
payload *

Responses

Status: 201 - Success

Status: 400 - Validation Error

Status: 404 - Sensordata not found


create a sensor recording with continuous values


/sensordata/sensordata/continuous

Usage and SDK Samples

curl -X POST "https://localhost/sensordata/sensordata/continuous"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SensordataApi;

import java.io.File;
import java.util.*;

public class SensordataApiExample {

    public static void main(String[] args) {
        
        SensordataApi apiInstance = new SensordataApi();
        Sensordata payload = ; // Sensordata | 
        try {
            SensordataMetaOnly result = apiInstance.create a sensor recording with continuous values(payload);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#create a sensor recording with continuous values");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SensordataApi;

public class SensordataApiExample {

    public static void main(String[] args) {
        SensordataApi apiInstance = new SensordataApi();
        Sensordata payload = ; // Sensordata | 
        try {
            SensordataMetaOnly result = apiInstance.create a sensor recording with continuous values(payload);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#create a sensor recording with continuous values");
            e.printStackTrace();
        }
    }
}
Sensordata *payload = ; // 

SensordataApi *apiInstance = [[SensordataApi alloc] init];

[apiInstance create a sensor recording with continuous valuesWith:payload
              completionHandler: ^(SensordataMetaOnly output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.SensordataApi()

var payload = ; // {Sensordata} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.create a sensor recording with continuous values(payload, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class create a sensor recording with continuous valuesExample
    {
        public void main()
        {
            
            var apiInstance = new SensordataApi();
            var payload = new Sensordata(); // Sensordata | 

            try
            {
                SensordataMetaOnly result = apiInstance.create a sensor recording with continuous values(payload);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SensordataApi.create a sensor recording with continuous values: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SensordataApi();
$payload = ; // Sensordata | 

try {
    $result = $api_instance->create a sensor recording with continuous values($payload);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SensordataApi->create a sensor recording with continuous values: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SensordataApi;

my $api_instance = WWW::SwaggerClient::SensordataApi->new();
my $payload = WWW::SwaggerClient::Object::Sensordata->new(); # Sensordata | 

eval { 
    my $result = $api_instance->create a sensor recording with continuous values(payload => $payload);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SensordataApi->create a sensor recording with continuous values: $@\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.SensordataApi()
payload =  # Sensordata | 

try: 
    api_response = api_instance.create_a_sensor_recording_with_continuous_values(payload)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SensordataApi->create a sensor recording with continuous values: %s\n" % e)

Parameters

Body parameters
Name Description
payload *

Responses

Status: 201 - Success

Status: 400 - Validation Error

Status: 404 - Session not found


create a sensor recording with sporadic values


/sensordata/sensordata/sporadic

Usage and SDK Samples

curl -X POST "https://localhost/sensordata/sensordata/sporadic"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SensordataApi;

import java.io.File;
import java.util.*;

public class SensordataApiExample {

    public static void main(String[] args) {
        
        SensordataApi apiInstance = new SensordataApi();
        SensordataSporadic payload = ; // SensordataSporadic | 
        try {
            SensordataMetaOnly result = apiInstance.create a sensor recording with sporadic values(payload);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#create a sensor recording with sporadic values");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SensordataApi;

public class SensordataApiExample {

    public static void main(String[] args) {
        SensordataApi apiInstance = new SensordataApi();
        SensordataSporadic payload = ; // SensordataSporadic | 
        try {
            SensordataMetaOnly result = apiInstance.create a sensor recording with sporadic values(payload);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#create a sensor recording with sporadic values");
            e.printStackTrace();
        }
    }
}
SensordataSporadic *payload = ; // 

SensordataApi *apiInstance = [[SensordataApi alloc] init];

[apiInstance create a sensor recording with sporadic valuesWith:payload
              completionHandler: ^(SensordataMetaOnly output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.SensordataApi()

var payload = ; // {SensordataSporadic} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.create a sensor recording with sporadic values(payload, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class create a sensor recording with sporadic valuesExample
    {
        public void main()
        {
            
            var apiInstance = new SensordataApi();
            var payload = new SensordataSporadic(); // SensordataSporadic | 

            try
            {
                SensordataMetaOnly result = apiInstance.create a sensor recording with sporadic values(payload);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SensordataApi.create a sensor recording with sporadic values: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SensordataApi();
$payload = ; // SensordataSporadic | 

try {
    $result = $api_instance->create a sensor recording with sporadic values($payload);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SensordataApi->create a sensor recording with sporadic values: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SensordataApi;

my $api_instance = WWW::SwaggerClient::SensordataApi->new();
my $payload = WWW::SwaggerClient::Object::SensordataSporadic->new(); # SensordataSporadic | 

eval { 
    my $result = $api_instance->create a sensor recording with sporadic values(payload => $payload);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SensordataApi->create a sensor recording with sporadic values: $@\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.SensordataApi()
payload =  # SensordataSporadic | 

try: 
    api_response = api_instance.create_a_sensor_recording_with_sporadic_values(payload)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SensordataApi->create a sensor recording with sporadic values: %s\n" % e)

Parameters

Body parameters
Name Description
payload *

Responses

Status: 201 - Success

Status: 400 - Validation Error

Status: 404 - Session not found


get a list of all sensor recordings (without values)


/sensordata/sensordata/

Usage and SDK Samples

curl -X GET "https://localhost/sensordata/sensordata/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SensordataApi;

import java.io.File;
import java.util.*;

public class SensordataApiExample {

    public static void main(String[] args) {
        
        SensordataApi apiInstance = new SensordataApi();
        try {
            array[SensordataMetaOnly] result = apiInstance.get a list of all sensor recordings (without values)();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#get a list of all sensor recordings (without values)");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SensordataApi;

public class SensordataApiExample {

    public static void main(String[] args) {
        SensordataApi apiInstance = new SensordataApi();
        try {
            array[SensordataMetaOnly] result = apiInstance.get a list of all sensor recordings (without values)();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SensordataApi#get a list of all sensor recordings (without values)");
            e.printStackTrace();
        }
    }
}

SensordataApi *apiInstance = [[SensordataApi alloc] init];

[apiInstance get a list of all sensor recordings (without values)WithCompletionHandler: 
              ^(array[SensordataMetaOnly] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Lemo2MongoDbDataBackendApi = require('lemo2_mongo_db_data_backend_api');

var api = new Lemo2MongoDbDataBackendApi.SensordataApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.get a list of all sensor recordings (without values)(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get a list of all sensor recordings (without values)Example
    {
        public void main()
        {
            
            var apiInstance = new SensordataApi();

            try
            {
                array[SensordataMetaOnly] result = apiInstance.get a list of all sensor recordings (without values)();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SensordataApi.get a list of all sensor recordings (without values): " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SensordataApi();

try {
    $result = $api_instance->get a list of all sensor recordings (without values)();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SensordataApi->get a list of all sensor recordings (without values): ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SensordataApi;

my $api_instance = WWW::SwaggerClient::SensordataApi->new();

eval { 
    my $result = $api_instance->get a list of all sensor recordings (without values)();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SensordataApi->get a list of all sensor recordings (without values): $@\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.SensordataApi()

try: 
    api_response = api_instance.get_a_list_of_all_sensor_recordings_(without_values)()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SensordataApi->get a list of all sensor recordings (without values): %s\n" % e)

Parameters

Responses

Status: 200 - Success