curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
"/api/v2/models?page_size=&page_token=&search_filter=&sort="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
Integer pageSize = 56; // Integer | Page size is an optional argument to set the number of entries to return in one page. If not specified, the server will determine a page size. You must specify the argument for every request when using the provided next page_token in the response.
String pageToken = pageToken_example; // String | Page token is an optional argument for specifying which page of results to get. If not specified, the first page will be returned, including a token for the next page. Will be empty if there is no next page.
String searchFilter = searchFilter_example; // String | Search filter is an optional HTTP parameter to filter results by. Supported search filter keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. For example: search_filter={"name":"foo","creator.name":"bar"}, Additionally, more advanced syntax is supported to find a range we can use the syntax {key: ["5", "7"]} to return all values that are > 5 and < 7 for the specified key. Secondly, we allow the ability to perform just a comparison operator on the specified key. For example: {key: ["<", "10"]} would return all matches for the key that are less than 10. The following operators are supported: ">", "<", ">=", "<=", "<>", "="
String sort = sort_example; // String | Sort is an optional HTTP parameter to sort results by. Supported sort keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. where "+" means sort by ascending order, and "-" means sort by descending order. For example: sort=-updated_at,+name.
try {
ListModelsResponse result = apiInstance.getModels(pageSize, pageToken, searchFilter, sort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getModels");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Integer pageSize = 56; // Integer | Page size is an optional argument to set the number of entries to return in one page. If not specified, the server will determine a page size. You must specify the argument for every request when using the provided next page_token in the response.
String pageToken = pageToken_example; // String | Page token is an optional argument for specifying which page of results to get. If not specified, the first page will be returned, including a token for the next page. Will be empty if there is no next page.
String searchFilter = searchFilter_example; // String | Search filter is an optional HTTP parameter to filter results by. Supported search filter keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. For example: search_filter={"name":"foo","creator.name":"bar"}, Additionally, more advanced syntax is supported to find a range we can use the syntax {key: ["5", "7"]} to return all values that are > 5 and < 7 for the specified key. Secondly, we allow the ability to perform just a comparison operator on the specified key. For example: {key: ["<", "10"]} would return all matches for the key that are less than 10. The following operators are supported: ">", "<", ">=", "<=", "<>", "="
String sort = sort_example; // String | Sort is an optional HTTP parameter to sort results by. Supported sort keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. where "+" means sort by ascending order, and "-" means sort by descending order. For example: sort=-updated_at,+name.
try {
ListModelsResponse result = apiInstance.getModels(pageSize, pageToken, searchFilter, sort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getModels");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
Integer *pageSize = 56; // Page size is an optional argument to set the number of entries to return in one page. If not specified, the server will determine a page size. You must specify the argument for every request when using the provided next page_token in the response. (optional)
String *pageToken = pageToken_example; // Page token is an optional argument for specifying which page of results to get. If not specified, the first page will be returned, including a token for the next page. Will be empty if there is no next page. (optional)
String *searchFilter = searchFilter_example; // Search filter is an optional HTTP parameter to filter results by. Supported search filter keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. For example: search_filter={"name":"foo","creator.name":"bar"}, Additionally, more advanced syntax is supported to find a range we can use the syntax {key: ["5", "7"]} to return all values that are > 5 and < 7 for the specified key. Secondly, we allow the ability to perform just a comparison operator on the specified key. For example: {key: ["<", "10"]} would return all matches for the key that are less than 10. The following operators are supported: ">", "<", ">=", "<=", "<>", "=" (optional)
String *sort = sort_example; // Sort is an optional HTTP parameter to sort results by. Supported sort keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. where "+" means sort by ascending order, and "-" means sort by descending order. For example: sort=-updated_at,+name. (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Get all registered models.
[apiInstance getModelsWith:pageSize
pageToken:pageToken
searchFilter:searchFilter
sort:sort
completionHandler: ^(ListModelsResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ModelRegistry = require('model_registry');
var defaultClient = ModelRegistry.ApiClient.instance;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"
var api = new ModelRegistry.DefaultApi()
var opts = {
'pageSize': 56, // {{Integer}} Page size is an optional argument to set the number of entries to return in one page. If not specified, the server will determine a page size. You must specify the argument for every request when using the provided next page_token in the response.
'pageToken': pageToken_example, // {{String}} Page token is an optional argument for specifying which page of results to get. If not specified, the first page will be returned, including a token for the next page. Will be empty if there is no next page.
'searchFilter': searchFilter_example, // {{String}} Search filter is an optional HTTP parameter to filter results by. Supported search filter keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. For example: search_filter={"name":"foo","creator.name":"bar"}, Additionally, more advanced syntax is supported to find a range we can use the syntax {key: ["5", "7"]} to return all values that are > 5 and < 7 for the specified key. Secondly, we allow the ability to perform just a comparison operator on the specified key. For example: {key: ["<", "10"]} would return all matches for the key that are less than 10. The following operators are supported: ">", "<", ">=", "<=", "<>", "="
'sort': sort_example // {{String}} Sort is an optional HTTP parameter to sort results by. Supported sort keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. where "+" means sort by ascending order, and "-" means sort by descending order. For example: sort=-updated_at,+name.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getModels(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getModelsExample
{
public void main()
{
// Configure API key authorization: Bearer
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new DefaultApi();
var pageSize = 56; // Integer | Page size is an optional argument to set the number of entries to return in one page. If not specified, the server will determine a page size. You must specify the argument for every request when using the provided next page_token in the response. (optional)
var pageToken = pageToken_example; // String | Page token is an optional argument for specifying which page of results to get. If not specified, the first page will be returned, including a token for the next page. Will be empty if there is no next page. (optional)
var searchFilter = searchFilter_example; // String | Search filter is an optional HTTP parameter to filter results by. Supported search filter keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. For example: search_filter={"name":"foo","creator.name":"bar"}, Additionally, more advanced syntax is supported to find a range we can use the syntax {key: ["5", "7"]} to return all values that are > 5 and < 7 for the specified key. Secondly, we allow the ability to perform just a comparison operator on the specified key. For example: {key: ["<", "10"]} would return all matches for the key that are less than 10. The following operators are supported: ">", "<", ">=", "<=", "<>", "=" (optional)
var sort = sort_example; // String | Sort is an optional HTTP parameter to sort results by. Supported sort keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. where "+" means sort by ascending order, and "-" means sort by descending order. For example: sort=-updated_at,+name. (optional)
try
{
// Get all registered models.
ListModelsResponse result = apiInstance.getModels(pageSize, pageToken, searchFilter, sort);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.getModels: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new Swagger\Client\ApiDefaultApi();
$pageSize = 56; // Integer | Page size is an optional argument to set the number of entries to return in one page. If not specified, the server will determine a page size. You must specify the argument for every request when using the provided next page_token in the response.
$pageToken = pageToken_example; // String | Page token is an optional argument for specifying which page of results to get. If not specified, the first page will be returned, including a token for the next page. Will be empty if there is no next page.
$searchFilter = searchFilter_example; // String | Search filter is an optional HTTP parameter to filter results by. Supported search filter keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. For example: search_filter={"name":"foo","creator.name":"bar"}, Additionally, more advanced syntax is supported to find a range we can use the syntax {key: ["5", "7"]} to return all values that are > 5 and < 7 for the specified key. Secondly, we allow the ability to perform just a comparison operator on the specified key. For example: {key: ["<", "10"]} would return all matches for the key that are less than 10. The following operators are supported: ">", "<", ">=", "<=", "<>", "="
$sort = sort_example; // String | Sort is an optional HTTP parameter to sort results by. Supported sort keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. where "+" means sort by ascending order, and "-" means sort by descending order. For example: sort=-updated_at,+name.
try {
$result = $api_instance->getModels($pageSize, $pageToken, $searchFilter, $sort);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getModels: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $pageSize = 56; # Integer | Page size is an optional argument to set the number of entries to return in one page. If not specified, the server will determine a page size. You must specify the argument for every request when using the provided next page_token in the response.
my $pageToken = pageToken_example; # String | Page token is an optional argument for specifying which page of results to get. If not specified, the first page will be returned, including a token for the next page. Will be empty if there is no next page.
my $searchFilter = searchFilter_example; # String | Search filter is an optional HTTP parameter to filter results by. Supported search filter keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. For example: search_filter={"name":"foo","creator.name":"bar"}, Additionally, more advanced syntax is supported to find a range we can use the syntax {key: ["5", "7"]} to return all values that are > 5 and < 7 for the specified key. Secondly, we allow the ability to perform just a comparison operator on the specified key. For example: {key: ["<", "10"]} would return all matches for the key that are less than 10. The following operators are supported: ">", "<", ">=", "<=", "<>", "="
my $sort = sort_example; # String | Sort is an optional HTTP parameter to sort results by. Supported sort keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. where "+" means sort by ascending order, and "-" means sort by descending order. For example: sort=-updated_at,+name.
eval {
my $result = $api_instance->getModels(pageSize => $pageSize, pageToken => $pageToken, searchFilter => $searchFilter, sort => $sort);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getModels: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
pageSize = 56 # Integer | Page size is an optional argument to set the number of entries to return in one page. If not specified, the server will determine a page size. You must specify the argument for every request when using the provided next page_token in the response. (optional)
pageToken = pageToken_example # String | Page token is an optional argument for specifying which page of results to get. If not specified, the first page will be returned, including a token for the next page. Will be empty if there is no next page. (optional)
searchFilter = searchFilter_example # String | Search filter is an optional HTTP parameter to filter results by. Supported search filter keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. For example: search_filter={"name":"foo","creator.name":"bar"}, Additionally, more advanced syntax is supported to find a range we can use the syntax {key: ["5", "7"]} to return all values that are > 5 and < 7 for the specified key. Secondly, we allow the ability to perform just a comparison operator on the specified key. For example: {key: ["<", "10"]} would return all matches for the key that are less than 10. The following operators are supported: ">", "<", ">=", "<=", "<>", "=" (optional)
sort = sort_example # String | Sort is an optional HTTP parameter to sort results by. Supported sort keys are: [models.id, model_name, creator_id, created_at, updated_at, description]. where "+" means sort by ascending order, and "-" means sort by descending order. For example: sort=-updated_at,+name. (optional)
try:
# Get all registered models.
api_response = api_instance.get_models(pageSize=pageSize, pageToken=pageToken, searchFilter=searchFilter, sort=sort)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getModels: %s\n" % e)