OpenAPI definition

EventRestController

getEvents


/api/v1/events/

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/events/"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EventRestControllerApi;

import java.io.File;
import java.util.*;

public class EventRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        EventRestControllerApi apiInstance = new EventRestControllerApi();

        try {
            array[Event] result = apiInstance.getEvents();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventRestControllerApi#getEvents");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.getEvents();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getEvents: $e\n');
}

import org.openapitools.client.api.EventRestControllerApi;

public class EventRestControllerApiExample {
    public static void main(String[] args) {
        EventRestControllerApi apiInstance = new EventRestControllerApi();

        try {
            array[Event] result = apiInstance.getEvents();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventRestControllerApi#getEvents");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
EventRestControllerApi *apiInstance = [[EventRestControllerApi alloc] init];

[apiInstance getEventsWithCompletionHandler: 
              ^(array[Event] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.EventRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getEvents(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getEventsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new EventRestControllerApi();

            try {
                array[Event] result = apiInstance.getEvents();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EventRestControllerApi.getEvents: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EventRestControllerApi();

try {
    $result = $api_instance->getEvents();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventRestControllerApi->getEvents: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EventRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EventRestControllerApi->new();

eval {
    my $result = $api_instance->getEvents();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventRestControllerApi->getEvents: $@\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.EventRestControllerApi()

try:
    api_response = api_instance.get_events()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventRestControllerApi->getEvents: %s\n" % e)
extern crate EventRestControllerApi;

pub fn main() {

    let mut context = EventRestControllerApi::Context::default();
    let result = client.getEvents(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses