LiveView REST API

Basic

getTable

Gets the details of a specific table


/tables/{tablename}

Usage and SDK Samples

curl -X GET -H "Accept: application/json" -H "Authorization: Basic [[basicHash]]" "https://localhost/lv/api/v1/tables/{tablename}?include-internal="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BasicApi;

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

public class BasicApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        Boolean includeInternal = true; // Boolean | Should internal fields be included
        try {
            TableInfo result = apiInstance.getTable(tablename, includeInternal);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#getTable");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BasicApi;

public class BasicApiExample {

    public static void main(String[] args) {
        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        Boolean includeInternal = true; // Boolean | Should internal fields be included
        try {
            TableInfo result = apiInstance.getTable(tablename, includeInternal);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#getTable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

String *tablename = tablename_example; // The table name to query
Boolean *includeInternal = true; // Should internal fields be included (optional) (default to false)

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

[apiInstance getTableWith:tablename
    includeInternal:includeInternal
              completionHandler: ^(TableInfo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LiveViewRestApi = require('live_view_rest_api');
var defaultClient = LiveViewRestApi.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new LiveViewRestApi.BasicApi()

var tablename = tablename_example; // {String} The table name to query

var opts = { 
  'includeInternal': true // {Boolean} Should internal fields be included
};

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

namespace Example
{
    public class getTableExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BasicApi();
            var tablename = tablename_example;  // String | The table name to query
            var includeInternal = true;  // Boolean | Should internal fields be included (optional)  (default to false)

            try
            {
                TableInfo result = apiInstance.getTable(tablename, includeInternal);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BasicApi.getTable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\Api\BasicApi();
$tablename = tablename_example; // String | The table name to query
$includeInternal = true; // Boolean | Should internal fields be included

try {
    $result = $api_instance->getTable($tablename, $includeInternal);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BasicApi->getTable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BasicApi;

# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::BasicApi->new();
my $tablename = tablename_example; # String | The table name to query
my $includeInternal = true; # Boolean | Should internal fields be included

eval { 
    my $result = $api_instance->getTable(tablename => $tablename, includeInternal => $includeInternal);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BasicApi->getTable: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.BasicApi()
tablename = tablename_example # String | The table name to query
includeInternal = true # Boolean | Should internal fields be included (optional) (default to false)

try: 
    api_response = api_instance.get_table(tablename, includeInternal=includeInternal)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BasicApi->getTable: %s\n" % e)

Parameters

Path parameters
Name Description
tablename*
String
The table name to query
Required
Query parameters
Name Description
include-internal
Boolean
Should internal fields be included

Responses

Status: 200 - Table details

Status: 401 - Missing authentication

Status: 403 - User doesn't have required permissions

Status: 404 - Invalid table name


getTables

Table List

Gets a list of all tables on the server


/tables

Usage and SDK Samples

curl -X GET -H "Accept: application/json" -H "Authorization: Basic [[basicHash]]" "https://localhost/lv/api/v1/tables"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BasicApi;

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

public class BasicApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        BasicApi apiInstance = new BasicApi();
        try {
            array['String'] result = apiInstance.getTables();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#getTables");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BasicApi;

public class BasicApiExample {

    public static void main(String[] args) {
        BasicApi apiInstance = new BasicApi();
        try {
            array['String'] result = apiInstance.getTables();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#getTables");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];


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

// Table List
[apiInstance getTablesWithCompletionHandler: 
              ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LiveViewRestApi = require('live_view_rest_api');
var defaultClient = LiveViewRestApi.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new LiveViewRestApi.BasicApi()

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

namespace Example
{
    public class getTablesExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BasicApi();

            try
            {
                // Table List
                array['String'] result = apiInstance.getTables();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BasicApi.getTables: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

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

try {
    $result = $api_instance->getTables();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BasicApi->getTables: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BasicApi;

# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

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

eval { 
    my $result = $api_instance->getTables();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BasicApi->getTables: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.BasicApi()

try: 
    # Table List
    api_response = api_instance.get_tables()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BasicApi->getTables: %s\n" % e)

Parameters

Responses

Status: 200 - Success

Status: 401 - Missing authentication

Status: 403 - User doesn't have required permissions


getVersion

Version info

Gets the version of the current server


/version

Usage and SDK Samples

curl -X GET "https://localhost/lv/api/v1/version"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BasicApi;

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

public class BasicApiExample {

    public static void main(String[] args) {
        
        BasicApi apiInstance = new BasicApi();
        try {
            VersionInfo result = apiInstance.getVersion();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#getVersion");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BasicApi;

public class BasicApiExample {

    public static void main(String[] args) {
        BasicApi apiInstance = new BasicApi();
        try {
            VersionInfo result = apiInstance.getVersion();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#getVersion");
            e.printStackTrace();
        }
    }
}

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

// Version info
[apiInstance getVersionWithCompletionHandler: 
              ^(VersionInfo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LiveViewRestApi = require('live_view_rest_api');

var api = new LiveViewRestApi.BasicApi()

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

namespace Example
{
    public class getVersionExample
    {
        public void main()
        {
            
            var apiInstance = new BasicApi();

            try
            {
                // Version info
                VersionInfo result = apiInstance.getVersion();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BasicApi.getVersion: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

try {
    $result = $api_instance->getVersion();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BasicApi->getVersion: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BasicApi;

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

eval { 
    my $result = $api_instance->getVersion();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BasicApi->getVersion: $@\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.BasicApi()

try: 
    # Version info
    api_response = api_instance.get_version()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BasicApi->getVersion: %s\n" % e)

Parameters

Responses

Status: 200 - Successful response


issueDelete

Delete data

Delete specified tuples on the given table, with either a query or a list of tuples with keys


/tables/{tablename}/tuples

Usage and SDK Samples

curl -X DELETE -H "Accept: application/json" -H "Authorization: Basic [[basicHash]]" "https://localhost/lv/api/v1/tables/{tablename}/tuples?query=&publisher-id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BasicApi;

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

public class BasicApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        String query = query_example; // String | Query string. Ignored when specific tuples provided.
        PublishData tuples = ; // PublishData | The tuples to delete (publish-style; works with recovery)
        String publisherId = publisherId_example; // String | An ID for this publisher (if publish-style)
        try {
            StatusType result = apiInstance.issueDelete(tablename, query, tuples, publisherId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#issueDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BasicApi;

public class BasicApiExample {

    public static void main(String[] args) {
        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        String query = query_example; // String | Query string. Ignored when specific tuples provided.
        PublishData tuples = ; // PublishData | The tuples to delete (publish-style; works with recovery)
        String publisherId = publisherId_example; // String | An ID for this publisher (if publish-style)
        try {
            StatusType result = apiInstance.issueDelete(tablename, query, tuples, publisherId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#issueDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

String *tablename = tablename_example; // The table name to query
String *query = query_example; // Query string. Ignored when specific tuples provided. (optional)
PublishData *tuples = ; // The tuples to delete (publish-style; works with recovery) (optional)
String *publisherId = publisherId_example; // An ID for this publisher (if publish-style) (optional)

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

// Delete data
[apiInstance issueDeleteWith:tablename
    query:query
    tuples:tuples
    publisherId:publisherId
              completionHandler: ^(StatusType output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LiveViewRestApi = require('live_view_rest_api');
var defaultClient = LiveViewRestApi.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new LiveViewRestApi.BasicApi()

var tablename = tablename_example; // {String} The table name to query

var opts = { 
  'query': query_example, // {String} Query string. Ignored when specific tuples provided.
  'tuples': , // {PublishData} The tuples to delete (publish-style; works with recovery)
  'publisherId': publisherId_example // {String} An ID for this publisher (if publish-style)
};

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

namespace Example
{
    public class issueDeleteExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BasicApi();
            var tablename = tablename_example;  // String | The table name to query
            var query = query_example;  // String | Query string. Ignored when specific tuples provided. (optional) 
            var tuples = new PublishData(); // PublishData | The tuples to delete (publish-style; works with recovery) (optional) 
            var publisherId = publisherId_example;  // String | An ID for this publisher (if publish-style) (optional) 

            try
            {
                // Delete data
                StatusType result = apiInstance.issueDelete(tablename, query, tuples, publisherId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BasicApi.issueDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\Api\BasicApi();
$tablename = tablename_example; // String | The table name to query
$query = query_example; // String | Query string. Ignored when specific tuples provided.
$tuples = ; // PublishData | The tuples to delete (publish-style; works with recovery)
$publisherId = publisherId_example; // String | An ID for this publisher (if publish-style)

try {
    $result = $api_instance->issueDelete($tablename, $query, $tuples, $publisherId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BasicApi->issueDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BasicApi;

# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::BasicApi->new();
my $tablename = tablename_example; # String | The table name to query
my $query = query_example; # String | Query string. Ignored when specific tuples provided.
my $tuples = WWW::SwaggerClient::Object::PublishData->new(); # PublishData | The tuples to delete (publish-style; works with recovery)
my $publisherId = publisherId_example; # String | An ID for this publisher (if publish-style)

eval { 
    my $result = $api_instance->issueDelete(tablename => $tablename, query => $query, tuples => $tuples, publisherId => $publisherId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BasicApi->issueDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.BasicApi()
tablename = tablename_example # String | The table name to query
query = query_example # String | Query string. Ignored when specific tuples provided. (optional)
tuples =  # PublishData | The tuples to delete (publish-style; works with recovery) (optional)
publisherId = publisherId_example # String | An ID for this publisher (if publish-style) (optional)

try: 
    # Delete data
    api_response = api_instance.issue_delete(tablename, query=query, tuples=tuples, publisherId=publisherId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BasicApi->issueDelete: %s\n" % e)

Parameters

Path parameters
Name Description
tablename*
String
The table name to query
Required
Body parameters
Name Description
tuples
Query parameters
Name Description
query
String
Query string. Ignored when specific tuples provided.
publisher-id
String
An ID for this publisher (if publish-style)

Responses

Status: 200 - Delete success

Status: 401 - Missing authentication

Status: 403 - User doesn't have required permissions

Status: 404 - Invalid table name

Status: 422 - Invalid Query


issueQuery

Retreive streaming data

Server Sent Event (SSE)-formatted stream of continous data. Closing this will end query. Must use EventClient or other SSE client.


/tables/{tablename}/tuples/{querytype}

Usage and SDK Samples

curl -X GET -H "Accept: text/event-stream" -H "Authorization: Basic [[basicHash]]" "https://localhost/lv/api/v1/tables/{tablename}/tuples/{querytype}?query=&include-internal="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BasicApi;

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

public class BasicApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        String querytype = querytype_example; // String | Type of query to run
        String query = query_example; // String | Query string
        Boolean includeInternal = true; // Boolean | Should internal fields be included
        try {
            Data result = apiInstance.issueQuery(tablename, querytype, query, includeInternal);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#issueQuery");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BasicApi;

public class BasicApiExample {

    public static void main(String[] args) {
        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        String querytype = querytype_example; // String | Type of query to run
        String query = query_example; // String | Query string
        Boolean includeInternal = true; // Boolean | Should internal fields be included
        try {
            Data result = apiInstance.issueQuery(tablename, querytype, query, includeInternal);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#issueQuery");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

String *tablename = tablename_example; // The table name to query
String *querytype = querytype_example; // Type of query to run
String *query = query_example; // Query string (optional)
Boolean *includeInternal = true; // Should internal fields be included (optional) (default to false)

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

// Retreive streaming data
[apiInstance issueQueryWith:tablename
    querytype:querytype
    query:query
    includeInternal:includeInternal
              completionHandler: ^(Data output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LiveViewRestApi = require('live_view_rest_api');
var defaultClient = LiveViewRestApi.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new LiveViewRestApi.BasicApi()

var tablename = tablename_example; // {String} The table name to query

var querytype = querytype_example; // {String} Type of query to run

var opts = { 
  'query': query_example, // {String} Query string
  'includeInternal': true // {Boolean} Should internal fields be included
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.issueQuery(tablename, querytype, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class issueQueryExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BasicApi();
            var tablename = tablename_example;  // String | The table name to query
            var querytype = querytype_example;  // String | Type of query to run
            var query = query_example;  // String | Query string (optional) 
            var includeInternal = true;  // Boolean | Should internal fields be included (optional)  (default to false)

            try
            {
                // Retreive streaming data
                Data result = apiInstance.issueQuery(tablename, querytype, query, includeInternal);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BasicApi.issueQuery: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\Api\BasicApi();
$tablename = tablename_example; // String | The table name to query
$querytype = querytype_example; // String | Type of query to run
$query = query_example; // String | Query string
$includeInternal = true; // Boolean | Should internal fields be included

try {
    $result = $api_instance->issueQuery($tablename, $querytype, $query, $includeInternal);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BasicApi->issueQuery: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BasicApi;

# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::BasicApi->new();
my $tablename = tablename_example; # String | The table name to query
my $querytype = querytype_example; # String | Type of query to run
my $query = query_example; # String | Query string
my $includeInternal = true; # Boolean | Should internal fields be included

eval { 
    my $result = $api_instance->issueQuery(tablename => $tablename, querytype => $querytype, query => $query, includeInternal => $includeInternal);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BasicApi->issueQuery: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.BasicApi()
tablename = tablename_example # String | The table name to query
querytype = querytype_example # String | Type of query to run
query = query_example # String | Query string (optional)
includeInternal = true # Boolean | Should internal fields be included (optional) (default to false)

try: 
    # Retreive streaming data
    api_response = api_instance.issue_query(tablename, querytype, query=query, includeInternal=includeInternal)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BasicApi->issueQuery: %s\n" % e)

Parameters

Path parameters
Name Description
tablename*
String
The table name to query
Required
querytype*
String
Type of query to run
Required
Query parameters
Name Description
query
String
Query string
include-internal
Boolean
Should internal fields be included

Responses

Status: 200 - Continous SSE stream

Name Type Format Description
X-Query-Schema String Schema of the query result
X-Query-Keys String Key field or key fields, comma seperated
X-Query-Components String The parsed query components

Status: 401 - Missing authentication

Status: 403 - User doesn't have required permissions

Status: 404 - Invalid table name

Status: 422 - Invalid Query


issueSnapshotQuery

Retrieve data

Issue a snapshot query on the given table, with optional query.


/tables/{tablename}/tuples

Usage and SDK Samples

curl -X GET -H "Accept: application/json" -H "Authorization: Basic [[basicHash]]" "https://localhost/lv/api/v1/tables/{tablename}/tuples?query=&include-internal="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BasicApi;

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

public class BasicApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        String query = query_example; // String | Query string
        Boolean includeInternal = true; // Boolean | Should internal fields be included
        try {
            Data result = apiInstance.issueSnapshotQuery(tablename, query, includeInternal);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#issueSnapshotQuery");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BasicApi;

public class BasicApiExample {

    public static void main(String[] args) {
        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        String query = query_example; // String | Query string
        Boolean includeInternal = true; // Boolean | Should internal fields be included
        try {
            Data result = apiInstance.issueSnapshotQuery(tablename, query, includeInternal);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#issueSnapshotQuery");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

String *tablename = tablename_example; // The table name to query
String *query = query_example; // Query string (optional)
Boolean *includeInternal = true; // Should internal fields be included (optional) (default to false)

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

// Retrieve data
[apiInstance issueSnapshotQueryWith:tablename
    query:query
    includeInternal:includeInternal
              completionHandler: ^(Data output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LiveViewRestApi = require('live_view_rest_api');
var defaultClient = LiveViewRestApi.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new LiveViewRestApi.BasicApi()

var tablename = tablename_example; // {String} The table name to query

var opts = { 
  'query': query_example, // {String} Query string
  'includeInternal': true // {Boolean} Should internal fields be included
};

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

namespace Example
{
    public class issueSnapshotQueryExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BasicApi();
            var tablename = tablename_example;  // String | The table name to query
            var query = query_example;  // String | Query string (optional) 
            var includeInternal = true;  // Boolean | Should internal fields be included (optional)  (default to false)

            try
            {
                // Retrieve data
                Data result = apiInstance.issueSnapshotQuery(tablename, query, includeInternal);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BasicApi.issueSnapshotQuery: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\Api\BasicApi();
$tablename = tablename_example; // String | The table name to query
$query = query_example; // String | Query string
$includeInternal = true; // Boolean | Should internal fields be included

try {
    $result = $api_instance->issueSnapshotQuery($tablename, $query, $includeInternal);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BasicApi->issueSnapshotQuery: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BasicApi;

# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::BasicApi->new();
my $tablename = tablename_example; # String | The table name to query
my $query = query_example; # String | Query string
my $includeInternal = true; # Boolean | Should internal fields be included

eval { 
    my $result = $api_instance->issueSnapshotQuery(tablename => $tablename, query => $query, includeInternal => $includeInternal);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BasicApi->issueSnapshotQuery: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.BasicApi()
tablename = tablename_example # String | The table name to query
query = query_example # String | Query string (optional)
includeInternal = true # Boolean | Should internal fields be included (optional) (default to false)

try: 
    # Retrieve data
    api_response = api_instance.issue_snapshot_query(tablename, query=query, includeInternal=includeInternal)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BasicApi->issueSnapshotQuery: %s\n" % e)

Parameters

Path parameters
Name Description
tablename*
String
The table name to query
Required
Query parameters
Name Description
query
String
Query string
include-internal
Boolean
Should internal fields be included

Responses

Status: 200 - JSON data, based on header

Name Type Format Description
X-Query-Schema String Schema of the query result
X-Query-Components String The parsed query components

Status: 401 - Missing authentication

Status: 403 - User doesn't have required permissions

Status: 404 - Invalid table name

Status: 422 - Invalid Query/Non-liveview table


publishToTable

Publish

Publish new list of tuples to a table


/tables/{tablename}/tuples

Usage and SDK Samples

curl -X PUT -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://localhost/lv/api/v1/tables/{tablename}/tuples?publisher-id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BasicApi;

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

public class BasicApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        PublishData tuples = ; // PublishData | The tuples to publish
        String publisherId = publisherId_example; // String | An ID for this publisher
        try {
            StatusType result = apiInstance.publishToTable(tablename, tuples, publisherId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#publishToTable");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BasicApi;

public class BasicApiExample {

    public static void main(String[] args) {
        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        PublishData tuples = ; // PublishData | The tuples to publish
        String publisherId = publisherId_example; // String | An ID for this publisher
        try {
            StatusType result = apiInstance.publishToTable(tablename, tuples, publisherId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#publishToTable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

String *tablename = tablename_example; // The table name to query
PublishData *tuples = ; // The tuples to publish
String *publisherId = publisherId_example; // An ID for this publisher (optional)

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

// Publish
[apiInstance publishToTableWith:tablename
    tuples:tuples
    publisherId:publisherId
              completionHandler: ^(StatusType output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LiveViewRestApi = require('live_view_rest_api');
var defaultClient = LiveViewRestApi.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new LiveViewRestApi.BasicApi()

var tablename = tablename_example; // {String} The table name to query

var tuples = ; // {PublishData} The tuples to publish

var opts = { 
  'publisherId': publisherId_example // {String} An ID for this publisher
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.publishToTable(tablename, tuples, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class publishToTableExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BasicApi();
            var tablename = tablename_example;  // String | The table name to query
            var tuples = new PublishData(); // PublishData | The tuples to publish
            var publisherId = publisherId_example;  // String | An ID for this publisher (optional) 

            try
            {
                // Publish
                StatusType result = apiInstance.publishToTable(tablename, tuples, publisherId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BasicApi.publishToTable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\Api\BasicApi();
$tablename = tablename_example; // String | The table name to query
$tuples = ; // PublishData | The tuples to publish
$publisherId = publisherId_example; // String | An ID for this publisher

try {
    $result = $api_instance->publishToTable($tablename, $tuples, $publisherId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BasicApi->publishToTable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BasicApi;

# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::BasicApi->new();
my $tablename = tablename_example; # String | The table name to query
my $tuples = WWW::SwaggerClient::Object::PublishData->new(); # PublishData | The tuples to publish
my $publisherId = publisherId_example; # String | An ID for this publisher

eval { 
    my $result = $api_instance->publishToTable(tablename => $tablename, tuples => $tuples, publisherId => $publisherId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BasicApi->publishToTable: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.BasicApi()
tablename = tablename_example # String | The table name to query
tuples =  # PublishData | The tuples to publish
publisherId = publisherId_example # String | An ID for this publisher (optional)

try: 
    # Publish
    api_response = api_instance.publish_to_table(tablename, tuples, publisherId=publisherId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BasicApi->publishToTable: %s\n" % e)

Parameters

Path parameters
Name Description
tablename*
String
The table name to query
Required
Body parameters
Name Description
tuples *
Query parameters
Name Description
publisher-id
String
An ID for this publisher

Responses

Status: 200 - Published

Status: 401 - Missing authentication

Status: 403 - User doesn't have required permissions

Status: 404 - Invalid table name

Status: 422 - Not published


tryNonSnapshotQuery

Describe query

Tries to see if the query will parse, and if so, return the schema and parsed query


/tables/{tablename}/tuples/{querytype}

Usage and SDK Samples

curl -X HEAD -H "Authorization: Basic [[basicHash]]" "https://localhost/lv/api/v1/tables/{tablename}/tuples/{querytype}?query=&include-internal="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BasicApi;

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

public class BasicApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        String querytype = querytype_example; // String | Type of query to run
        String query = query_example; // String | Query string
        Boolean includeInternal = true; // Boolean | Should internal fields be included
        try {
            apiInstance.tryNonSnapshotQuery(tablename, querytype, query, includeInternal);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#tryNonSnapshotQuery");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BasicApi;

public class BasicApiExample {

    public static void main(String[] args) {
        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        String querytype = querytype_example; // String | Type of query to run
        String query = query_example; // String | Query string
        Boolean includeInternal = true; // Boolean | Should internal fields be included
        try {
            apiInstance.tryNonSnapshotQuery(tablename, querytype, query, includeInternal);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#tryNonSnapshotQuery");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

String *tablename = tablename_example; // The table name to query
String *querytype = querytype_example; // Type of query to run
String *query = query_example; // Query string (optional)
Boolean *includeInternal = true; // Should internal fields be included (optional) (default to false)

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

// Describe query
[apiInstance tryNonSnapshotQueryWith:tablename
    querytype:querytype
    query:query
    includeInternal:includeInternal
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LiveViewRestApi = require('live_view_rest_api');
var defaultClient = LiveViewRestApi.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new LiveViewRestApi.BasicApi()

var tablename = tablename_example; // {String} The table name to query

var querytype = querytype_example; // {String} Type of query to run

var opts = { 
  'query': query_example, // {String} Query string
  'includeInternal': true // {Boolean} Should internal fields be included
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.tryNonSnapshotQuery(tablename, querytype, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class tryNonSnapshotQueryExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BasicApi();
            var tablename = tablename_example;  // String | The table name to query
            var querytype = querytype_example;  // String | Type of query to run
            var query = query_example;  // String | Query string (optional) 
            var includeInternal = true;  // Boolean | Should internal fields be included (optional)  (default to false)

            try
            {
                // Describe query
                apiInstance.tryNonSnapshotQuery(tablename, querytype, query, includeInternal);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BasicApi.tryNonSnapshotQuery: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\Api\BasicApi();
$tablename = tablename_example; // String | The table name to query
$querytype = querytype_example; // String | Type of query to run
$query = query_example; // String | Query string
$includeInternal = true; // Boolean | Should internal fields be included

try {
    $api_instance->tryNonSnapshotQuery($tablename, $querytype, $query, $includeInternal);
} catch (Exception $e) {
    echo 'Exception when calling BasicApi->tryNonSnapshotQuery: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BasicApi;

# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::BasicApi->new();
my $tablename = tablename_example; # String | The table name to query
my $querytype = querytype_example; # String | Type of query to run
my $query = query_example; # String | Query string
my $includeInternal = true; # Boolean | Should internal fields be included

eval { 
    $api_instance->tryNonSnapshotQuery(tablename => $tablename, querytype => $querytype, query => $query, includeInternal => $includeInternal);
};
if ($@) {
    warn "Exception when calling BasicApi->tryNonSnapshotQuery: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.BasicApi()
tablename = tablename_example # String | The table name to query
querytype = querytype_example # String | Type of query to run
query = query_example # String | Query string (optional)
includeInternal = true # Boolean | Should internal fields be included (optional) (default to false)

try: 
    # Describe query
    api_instance.try_non_snapshot_query(tablename, querytype, query=query, includeInternal=includeInternal)
except ApiException as e:
    print("Exception when calling BasicApi->tryNonSnapshotQuery: %s\n" % e)

Parameters

Path parameters
Name Description
tablename*
String
The table name to query
Required
querytype*
String
Type of query to run
Required
Query parameters
Name Description
query
String
Query string
include-internal
Boolean
Should internal fields be included

Responses

Status: 200 - Query description details

Name Type Format Description
X-Query-Schema String Schema of the query result
X-Query-Keys String Key field or key fields, comma seperated
X-Query-Components String The parsed query components

Status: 401 - Missing authentication

Status: 403 - User doesn't have required permissions

Status: 422 - Invalid Query


tryQuery

Describe query

Tries to see if the query will parse, and if so, return the schema and parsed query


/tables/{tablename}/tuples

Usage and SDK Samples

curl -X HEAD -H "Authorization: Basic [[basicHash]]" "https://localhost/lv/api/v1/tables/{tablename}/tuples?query="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BasicApi;

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

public class BasicApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        String query = query_example; // String | Query string
        try {
            apiInstance.tryQuery(tablename, query);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#tryQuery");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BasicApi;

public class BasicApiExample {

    public static void main(String[] args) {
        BasicApi apiInstance = new BasicApi();
        String tablename = tablename_example; // String | The table name to query
        String query = query_example; // String | Query string
        try {
            apiInstance.tryQuery(tablename, query);
        } catch (ApiException e) {
            System.err.println("Exception when calling BasicApi#tryQuery");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

String *tablename = tablename_example; // The table name to query
String *query = query_example; // Query string (optional)

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

// Describe query
[apiInstance tryQueryWith:tablename
    query:query
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LiveViewRestApi = require('live_view_rest_api');
var defaultClient = LiveViewRestApi.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new LiveViewRestApi.BasicApi()

var tablename = tablename_example; // {String} The table name to query

var opts = { 
  'query': query_example // {String} Query string
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.tryQuery(tablename, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class tryQueryExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new BasicApi();
            var tablename = tablename_example;  // String | The table name to query
            var query = query_example;  // String | Query string (optional) 

            try
            {
                // Describe query
                apiInstance.tryQuery(tablename, query);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BasicApi.tryQuery: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\Api\BasicApi();
$tablename = tablename_example; // String | The table name to query
$query = query_example; // String | Query string

try {
    $api_instance->tryQuery($tablename, $query);
} catch (Exception $e) {
    echo 'Exception when calling BasicApi->tryQuery: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BasicApi;

# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::BasicApi->new();
my $tablename = tablename_example; # String | The table name to query
my $query = query_example; # String | Query string

eval { 
    $api_instance->tryQuery(tablename => $tablename, query => $query);
};
if ($@) {
    warn "Exception when calling BasicApi->tryQuery: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.BasicApi()
tablename = tablename_example # String | The table name to query
query = query_example # String | Query string (optional)

try: 
    # Describe query
    api_instance.try_query(tablename, query=query)
except ApiException as e:
    print("Exception when calling BasicApi->tryQuery: %s\n" % e)

Parameters

Path parameters
Name Description
tablename*
String
The table name to query
Required
Query parameters
Name Description
query
String
Query string

Responses

Status: 200 - Query description details

Name Type Format Description
X-Query-Schema String Schema of the query result
X-Query-Keys String Key field or key fields, comma seperated
X-Query-Components String The parsed query components

Status: 401 - Missing authentication

Status: 403 - User doesn't have required permissions

Status: 422 - Invalid Query


Generated 2017-09-19T16:16:13.082-04:00