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
Name | Description |
---|---|
tablename* |
String
The table name to query
Required
|
Name | Description |
---|---|
include-internal |
Boolean
Should internal fields be included
|