curl -X GET \
-H "Accept: application/json,text/plain;charset=utf-8" \
"https://localhost:8081/authority-storage/authorities?deleted=true&idOnly=true&offset=56&limit=56&query=query_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthorityStorageApi;
import java.io.File;
import java.util.*;
public class AuthorityStorageApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AuthorityStorageApi apiInstance = new AuthorityStorageApi();
Boolean deleted = true; // Boolean | Indicates if only deleted authority records should be retrieved
Boolean idOnly = true; // Boolean | Indicates if only IDs of authority records should be retrieved
Integer offset = 56; // Integer | Skip over a number of elements by specifying an offset value for the query.
Integer limit = 56; // Integer | Limit the number of elements returned in the response.
String query = query_example; // String | A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/glossary#cql)) using valid searchable fields. Authorities can be queried using the following fields: headingType, authoritySourceFile.id, authoritySourceFile.name, createdDate, updatedDate. Example: headingType=personalName & authoritySourceFile.name=LC Genre/Form Terms & createdDate>2021-10-25T12:00:00.0
array[String] accept = ; // array[String] | Specifies accepting media-types for the response
try {
authorityFullDtoCollection result = apiInstance.retrieveAuthorities(deleted, idOnly, offset, limit, query, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthorityStorageApi#retrieveAuthorities");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Boolean deleted = new Boolean(); // Boolean | Indicates if only deleted authority records should be retrieved
final Boolean idOnly = new Boolean(); // Boolean | Indicates if only IDs of authority records should be retrieved
final Integer offset = new Integer(); // Integer | Skip over a number of elements by specifying an offset value for the query.
final Integer limit = new Integer(); // Integer | Limit the number of elements returned in the response.
final String query = new String(); // String | A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/glossary#cql)) using valid searchable fields. Authorities can be queried using the following fields: headingType, authoritySourceFile.id, authoritySourceFile.name, createdDate, updatedDate. Example: headingType=personalName & authoritySourceFile.name=LC Genre/Form Terms & createdDate>2021-10-25T12:00:00.0
final array[String] accept = new array[String](); // array[String] | Specifies accepting media-types for the response
try {
final result = await api_instance.retrieveAuthorities(deleted, idOnly, offset, limit, query, accept);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->retrieveAuthorities: $e\n');
}
import org.openapitools.client.api.AuthorityStorageApi;
public class AuthorityStorageApiExample {
public static void main(String[] args) {
AuthorityStorageApi apiInstance = new AuthorityStorageApi();
Boolean deleted = true; // Boolean | Indicates if only deleted authority records should be retrieved
Boolean idOnly = true; // Boolean | Indicates if only IDs of authority records should be retrieved
Integer offset = 56; // Integer | Skip over a number of elements by specifying an offset value for the query.
Integer limit = 56; // Integer | Limit the number of elements returned in the response.
String query = query_example; // String | A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/glossary#cql)) using valid searchable fields. Authorities can be queried using the following fields: headingType, authoritySourceFile.id, authoritySourceFile.name, createdDate, updatedDate. Example: headingType=personalName & authoritySourceFile.name=LC Genre/Form Terms & createdDate>2021-10-25T12:00:00.0
array[String] accept = ; // array[String] | Specifies accepting media-types for the response
try {
authorityFullDtoCollection result = apiInstance.retrieveAuthorities(deleted, idOnly, offset, limit, query, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthorityStorageApi#retrieveAuthorities");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AuthorityStorageApi *apiInstance = [[AuthorityStorageApi alloc] init];
Boolean *deleted = true; // Indicates if only deleted authority records should be retrieved (optional) (default to false)
Boolean *idOnly = true; // Indicates if only IDs of authority records should be retrieved (optional) (default to false)
Integer *offset = 56; // Skip over a number of elements by specifying an offset value for the query. (optional) (default to 0)
Integer *limit = 56; // Limit the number of elements returned in the response. (optional) (default to 100)
String *query = query_example; // A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/glossary#cql)) using valid searchable fields. Authorities can be queried using the following fields: headingType, authoritySourceFile.id, authoritySourceFile.name, createdDate, updatedDate. Example: headingType=personalName & authoritySourceFile.name=LC Genre/Form Terms & createdDate>2021-10-25T12:00:00.0 (optional) (default to cql.allRecords=1)
array[String] *accept = ; // Specifies accepting media-types for the response (optional) (default to application/json)
[apiInstance retrieveAuthoritiesWith:deleted
idOnly:idOnly
offset:offset
limit:limit
query:query
accept:accept
completionHandler: ^(authorityFullDtoCollection output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var EntitiesLinksApi = require('entities_links_api');
// Create an instance of the API class
var api = new EntitiesLinksApi.AuthorityStorageApi()
var opts = {
'deleted': true, // {Boolean} Indicates if only deleted authority records should be retrieved
'idOnly': true, // {Boolean} Indicates if only IDs of authority records should be retrieved
'offset': 56, // {Integer} Skip over a number of elements by specifying an offset value for the query.
'limit': 56, // {Integer} Limit the number of elements returned in the response.
'query': query_example, // {String} A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/glossary#cql)) using valid searchable fields. Authorities can be queried using the following fields: headingType, authoritySourceFile.id, authoritySourceFile.name, createdDate, updatedDate. Example: headingType=personalName & authoritySourceFile.name=LC Genre/Form Terms & createdDate>2021-10-25T12:00:00.0
'accept': // {array[String]} Specifies accepting media-types for the response
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.retrieveAuthorities(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class retrieveAuthoritiesExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AuthorityStorageApi();
var deleted = true; // Boolean | Indicates if only deleted authority records should be retrieved (optional) (default to false)
var idOnly = true; // Boolean | Indicates if only IDs of authority records should be retrieved (optional) (default to false)
var offset = 56; // Integer | Skip over a number of elements by specifying an offset value for the query. (optional) (default to 0)
var limit = 56; // Integer | Limit the number of elements returned in the response. (optional) (default to 100)
var query = query_example; // String | A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/glossary#cql)) using valid searchable fields. Authorities can be queried using the following fields: headingType, authoritySourceFile.id, authoritySourceFile.name, createdDate, updatedDate. Example: headingType=personalName & authoritySourceFile.name=LC Genre/Form Terms & createdDate>2021-10-25T12:00:00.0 (optional) (default to cql.allRecords=1)
var accept = new array[String](); // array[String] | Specifies accepting media-types for the response (optional) (default to application/json)
try {
authorityFullDtoCollection result = apiInstance.retrieveAuthorities(deleted, idOnly, offset, limit, query, accept);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AuthorityStorageApi.retrieveAuthorities: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthorityStorageApi();
$deleted = true; // Boolean | Indicates if only deleted authority records should be retrieved
$idOnly = true; // Boolean | Indicates if only IDs of authority records should be retrieved
$offset = 56; // Integer | Skip over a number of elements by specifying an offset value for the query.
$limit = 56; // Integer | Limit the number of elements returned in the response.
$query = query_example; // String | A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/glossary#cql)) using valid searchable fields. Authorities can be queried using the following fields: headingType, authoritySourceFile.id, authoritySourceFile.name, createdDate, updatedDate. Example: headingType=personalName & authoritySourceFile.name=LC Genre/Form Terms & createdDate>2021-10-25T12:00:00.0
$accept = ; // array[String] | Specifies accepting media-types for the response
try {
$result = $api_instance->retrieveAuthorities($deleted, $idOnly, $offset, $limit, $query, $accept);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthorityStorageApi->retrieveAuthorities: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthorityStorageApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthorityStorageApi->new();
my $deleted = true; # Boolean | Indicates if only deleted authority records should be retrieved
my $idOnly = true; # Boolean | Indicates if only IDs of authority records should be retrieved
my $offset = 56; # Integer | Skip over a number of elements by specifying an offset value for the query.
my $limit = 56; # Integer | Limit the number of elements returned in the response.
my $query = query_example; # String | A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/glossary#cql)) using valid searchable fields. Authorities can be queried using the following fields: headingType, authoritySourceFile.id, authoritySourceFile.name, createdDate, updatedDate. Example: headingType=personalName & authoritySourceFile.name=LC Genre/Form Terms & createdDate>2021-10-25T12:00:00.0
my $accept = []; # array[String] | Specifies accepting media-types for the response
eval {
my $result = $api_instance->retrieveAuthorities(deleted => $deleted, idOnly => $idOnly, offset => $offset, limit => $limit, query => $query, accept => $accept);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthorityStorageApi->retrieveAuthorities: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.AuthorityStorageApi()
deleted = true # Boolean | Indicates if only deleted authority records should be retrieved (optional) (default to false)
idOnly = true # Boolean | Indicates if only IDs of authority records should be retrieved (optional) (default to false)
offset = 56 # Integer | Skip over a number of elements by specifying an offset value for the query. (optional) (default to 0)
limit = 56 # Integer | Limit the number of elements returned in the response. (optional) (default to 100)
query = query_example # String | A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/glossary#cql)) using valid searchable fields. Authorities can be queried using the following fields: headingType, authoritySourceFile.id, authoritySourceFile.name, createdDate, updatedDate. Example: headingType=personalName & authoritySourceFile.name=LC Genre/Form Terms & createdDate>2021-10-25T12:00:00.0 (optional) (default to cql.allRecords=1)
accept = # array[String] | Specifies accepting media-types for the response (optional) (default to application/json)
try:
api_response = api_instance.retrieve_authorities(deleted=deleted, idOnly=idOnly, offset=offset, limit=limit, query=query, accept=accept)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthorityStorageApi->retrieveAuthorities: %s\n" % e)
extern crate AuthorityStorageApi;
pub fn main() {
let deleted = true; // Boolean
let idOnly = true; // Boolean
let offset = 56; // Integer
let limit = 56; // Integer
let query = query_example; // String
let accept = ; // array[String]
let mut context = AuthorityStorageApi::Context::default();
let result = client.retrieveAuthorities(deleted, idOnly, offset, limit, query, accept, &context).wait();
println!("{:?}", result);
}