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.V10Api;
import java.io.File;
import java.util.*;
public class V10ApiExample {
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");
V10Api apiInstance = new V10Api();
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 V10Api#getTable");
e.printStackTrace();
}
}
}
import io.swagger.client.api.V10Api;
public class V10ApiExample {
public static void main(String[] args) {
V10Api apiInstance = new V10Api();
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 V10Api#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)
V10Api *apiInstance = [[V10Api 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.V10Api()
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 V10Api();
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 V10Api.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\V10Api();
$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 V10Api->getTable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::V10Api;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
my $api_instance = WWW::SwaggerClient::V10Api->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 V10Api->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.V10Api()
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 V10Api->getTable: %s\n" % e)
Parameters
Name | Description |
---|---|
tablename* |
String
The table name to query
Required
|
Name | Description |
---|---|
include-internal |
Boolean
Should internal fields be included
|