clearCaches
Clear all application caches
/linked-data/admin/caches
Usage and SDK Samples
curl -X DELETE \
-H "Accept: application/json" \
"http://localhost/linked-data/admin/caches"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminApi;
import java.io.File;
import java.util.*;
public class AdminApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AdminApi apiInstance = new AdminApi();
try {
apiInstance.clearCaches();
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#clearCaches");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
try {
final result = await api_instance.clearCaches();
print(result);
} catch (e) {
print('Exception when calling DefaultApi->clearCaches: $e\n');
}
import org.openapitools.client.api.AdminApi;
public class AdminApiExample {
public static void main(String[] args) {
AdminApi apiInstance = new AdminApi();
try {
apiInstance.clearCaches();
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#clearCaches");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AdminApi *apiInstance = [[AdminApi alloc] init];
[apiInstance clearCachesWithCompletionHandler:
^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var LinkedDataApi = require('linked_data_api');
// Create an instance of the API class
var api = new LinkedDataApi.AdminApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.clearCaches(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class clearCachesExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AdminApi();
try {
apiInstance.clearCaches();
} catch (Exception e) {
Debug.Print("Exception when calling AdminApi.clearCaches: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AdminApi();
try {
$api_instance->clearCaches();
} catch (Exception $e) {
echo 'Exception when calling AdminApi->clearCaches: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AdminApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AdminApi->new();
eval {
$api_instance->clearCaches();
};
if ($@) {
warn "Exception when calling AdminApi->clearCaches: $@\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.AdminApi()
try:
api_instance.clear_caches()
except ApiException as e:
print("Exception when calling AdminApi->clearCaches: %s\n" % e)
extern crate AdminApi;
pub fn main() {
let mut context = AdminApi::Context::default();
let result = client.clearCaches(&context).wait();
println!("{:?}", result);
}