/api
Returns the API as OpenAPI 3 specification.
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"http://localhost/api"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MediatorApi;
import java.io.File;
import java.util.*;
public class MediatorApiExample {
public static void main(String[] args) {
// Create an instance of the API class
MediatorApi apiInstance = new MediatorApi();
try {
Object result = apiInstance.apiGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MediatorApi#apiGet");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.MediatorApi;
public class MediatorApiExample {
public static void main(String[] args) {
MediatorApi apiInstance = new MediatorApi();
try {
Object result = apiInstance.apiGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MediatorApi#apiGet");
e.printStackTrace();
}
}
}
// Create an instance of the API class
MediatorApi *apiInstance = [[MediatorApi alloc] init];
[apiInstance apiGetWithCompletionHandler:
^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Mediator = require('mediator');
// Create an instance of the API class
var api = new Mediator.MediatorApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.apiGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class apiGetExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new MediatorApi();
try {
Object result = apiInstance.apiGet();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling MediatorApi.apiGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MediatorApi();
try {
$result = $api_instance->apiGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MediatorApi->apiGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::MediatorApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MediatorApi->new();
eval {
my $result = $api_instance->apiGet();
print Dumper($result);
};
if ($@) {
warn "Exception when calling MediatorApi->apiGet: $@\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.MediatorApi()
try:
api_response = api_instance.api_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling MediatorApi->apiGet: %s\n" % e)
extern crate MediatorApi;
pub fn main() {
let mut context = MediatorApi::Context::default();
let result = client.apiGet(&context).wait();
println!("{:?}", result);
}