Meldestelle API

Authentication

getUserProfile

Get User Profile

Returns the profile of the authenticated user


/auth/profile

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/auth/profile"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationApi;

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

public class AuthenticationApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        AuthenticationApi apiInstance = new AuthenticationApi();
        try {
            UserProfileResponse result = apiInstance.getUserProfile();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#getUserProfile");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationApi;

public class AuthenticationApiExample {

    public static void main(String[] args) {
        AuthenticationApi apiInstance = new AuthenticationApi();
        try {
            UserProfileResponse result = apiInstance.getUserProfile();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#getUserProfile");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

AuthenticationApi *apiInstance = [[AuthenticationApi alloc] init];

// Get User Profile
[apiInstance getUserProfileWithCompletionHandler: 
              ^(UserProfileResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.AuthenticationApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserProfile(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new AuthenticationApi();

            try
            {
                // Get User Profile
                UserProfileResponse result = apiInstance.getUserProfile();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationApi.getUserProfile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiAuthenticationApi();

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


my $api_instance = WWW::SwaggerClient::AuthenticationApi->new();

eval { 
    my $result = $api_instance->getUserProfile();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationApi->getUserProfile: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.AuthenticationApi()

try: 
    # Get User Profile
    api_response = api_instance.get_user_profile()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationApi->getUserProfile: %s\n" % e)

Parameters

Responses

Status: 200 - Successful operation

Status: 401 - Unauthorized


login

User Login

Authenticates a user and returns a JWT token


/auth/login

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.meldestelle.at/auth/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationApi;

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

public class AuthenticationApiExample {

    public static void main(String[] args) {
        
        AuthenticationApi apiInstance = new AuthenticationApi();
        LoginRequest body = ; // LoginRequest | 
        try {
            LoginResponse result = apiInstance.login(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#login");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationApi;

public class AuthenticationApiExample {

    public static void main(String[] args) {
        AuthenticationApi apiInstance = new AuthenticationApi();
        LoginRequest body = ; // LoginRequest | 
        try {
            LoginResponse result = apiInstance.login(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#login");
            e.printStackTrace();
        }
    }
}
LoginRequest *body = ; // 

AuthenticationApi *apiInstance = [[AuthenticationApi alloc] init];

// User Login
[apiInstance loginWith:body
              completionHandler: ^(LoginResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');

var api = new MeldestelleApi.AuthenticationApi()
var body = ; // {{LoginRequest}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.login(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AuthenticationApi();
            var body = new LoginRequest(); // LoginRequest | 

            try
            {
                // User Login
                LoginResponse result = apiInstance.login(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationApi.login: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationApi();
$body = ; // LoginRequest | 

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

my $api_instance = WWW::SwaggerClient::AuthenticationApi->new();
my $body = WWW::SwaggerClient::Object::LoginRequest->new(); # LoginRequest | 

eval { 
    my $result = $api_instance->login(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationApi->login: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AuthenticationApi()
body =  # LoginRequest | 

try: 
    # User Login
    api_response = api_instance.login(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationApi->login: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Successful login

Status: 401 - Invalid credentials


register

User Registration

Registers a new user


/auth/register

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.meldestelle.at/auth/register"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationApi;

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

public class AuthenticationApiExample {

    public static void main(String[] args) {
        
        AuthenticationApi apiInstance = new AuthenticationApi();
        RegisterRequest body = ; // RegisterRequest | 
        try {
            RegisterResponse result = apiInstance.register(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#register");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationApi;

public class AuthenticationApiExample {

    public static void main(String[] args) {
        AuthenticationApi apiInstance = new AuthenticationApi();
        RegisterRequest body = ; // RegisterRequest | 
        try {
            RegisterResponse result = apiInstance.register(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationApi#register");
            e.printStackTrace();
        }
    }
}
RegisterRequest *body = ; // 

AuthenticationApi *apiInstance = [[AuthenticationApi alloc] init];

// User Registration
[apiInstance registerWith:body
              completionHandler: ^(RegisterResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');

var api = new MeldestelleApi.AuthenticationApi()
var body = ; // {{RegisterRequest}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.register(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AuthenticationApi();
            var body = new RegisterRequest(); // RegisterRequest | 

            try
            {
                // User Registration
                RegisterResponse result = apiInstance.register(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationApi.register: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationApi();
$body = ; // RegisterRequest | 

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

my $api_instance = WWW::SwaggerClient::AuthenticationApi->new();
my $body = WWW::SwaggerClient::Object::RegisterRequest->new(); # RegisterRequest | 

eval { 
    my $result = $api_instance->register(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationApi->register: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AuthenticationApi()
body =  # RegisterRequest | 

try: 
    # User Registration
    api_response = api_instance.register(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationApi->register: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - User successfully registered

Status: 400 - Invalid registration data


Default

getApiDocumentation

API Documentation

Returns information about available API endpoints


/api

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://api.meldestelle.at/api"
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) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            ApiDocumentationResponse result = apiInstance.getApiDocumentation();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getApiDocumentation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            ApiDocumentationResponse result = apiInstance.getApiDocumentation();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getApiDocumentation");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// API Documentation
[apiInstance getApiDocumentationWithCompletionHandler: 
              ^(ApiDocumentationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');

var api = new MeldestelleApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getApiDocumentation(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();

            try
            {
                // API Documentation
                ApiDocumentationResponse result = apiInstance.getApiDocumentation();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getApiDocumentation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->getApiDocumentation();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getApiDocumentation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # API Documentation
    api_response = api_instance.get_api_documentation()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getApiDocumentation: %s\n" % e)

Parameters

Responses

Status: 200 - Successful operation


getApiGatewayInfo

API Gateway Information

Returns basic information about the API Gateway


/

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://api.meldestelle.at/"
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) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            ApiGatewayInfoResponse result = apiInstance.getApiGatewayInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getApiGatewayInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            ApiGatewayInfoResponse result = apiInstance.getApiGatewayInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getApiGatewayInfo");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// API Gateway Information
[apiInstance getApiGatewayInfoWithCompletionHandler: 
              ^(ApiGatewayInfoResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');

var api = new MeldestelleApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getApiGatewayInfo(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();

            try
            {
                // API Gateway Information
                ApiGatewayInfoResponse result = apiInstance.getApiGatewayInfo();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getApiGatewayInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->getApiGatewayInfo();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getApiGatewayInfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # API Gateway Information
    api_response = api_instance.get_api_gateway_info()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getApiGatewayInfo: %s\n" % e)

Parameters

Responses

Status: 200 - Successful operation


getHealthStatus

Health Check

Returns the health status of all bounded contexts


/health

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://api.meldestelle.at/health"
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) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            HealthStatusResponse result = apiInstance.getHealthStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getHealthStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            HealthStatusResponse result = apiInstance.getHealthStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getHealthStatus");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Health Check
[apiInstance getHealthStatusWithCompletionHandler: 
              ^(HealthStatusResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');

var api = new MeldestelleApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getHealthStatus(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();

            try
            {
                // Health Check
                HealthStatusResponse result = apiInstance.getHealthStatus();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getHealthStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->getHealthStatus();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getHealthStatus: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # Health Check
    api_response = api_instance.get_health_status()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getHealthStatus: %s\n" % e)

Parameters

Responses

Status: 200 - Successful operation


EventManagement

createEvent

Create Event

Creates a new event


/api/events/stats

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.meldestelle.at/api/events/stats"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventManagementApi;

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

public class EventManagementApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        EventManagementApi apiInstance = new EventManagementApi();
        CreateEventRequest body = ; // CreateEventRequest | 
        try {
            EventResponse result = apiInstance.createEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#createEvent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventManagementApi;

public class EventManagementApiExample {

    public static void main(String[] args) {
        EventManagementApi apiInstance = new EventManagementApi();
        CreateEventRequest body = ; // CreateEventRequest | 
        try {
            EventResponse result = apiInstance.createEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#createEvent");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
CreateEventRequest *body = ; // 

EventManagementApi *apiInstance = [[EventManagementApi alloc] init];

// Create Event
[apiInstance createEventWith:body
              completionHandler: ^(EventResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.EventManagementApi()
var body = ; // {{CreateEventRequest}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createEvent(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new EventManagementApi();
            var body = new CreateEventRequest(); // CreateEventRequest | 

            try
            {
                // Create Event
                EventResponse result = apiInstance.createEvent(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventManagementApi.createEvent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiEventManagementApi();
$body = ; // CreateEventRequest | 

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


my $api_instance = WWW::SwaggerClient::EventManagementApi->new();
my $body = WWW::SwaggerClient::Object::CreateEventRequest->new(); # CreateEventRequest | 

eval { 
    my $result = $api_instance->createEvent(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventManagementApi->createEvent: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.EventManagementApi()
body =  # CreateEventRequest | 

try: 
    # Create Event
    api_response = api_instance.create_event(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventManagementApi->createEvent: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Event successfully created

Status: 400 - Invalid event data

Status: 401 - Unauthorized


deleteEvent

Delete Event

Deletes an event


/api/events/{id}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/events/{id}?force="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventManagementApi;

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

public class EventManagementApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        EventManagementApi apiInstance = new EventManagementApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Boolean force = true; // Boolean | Force delete even if the event has dependencies
        try {
            BaseResponse result = apiInstance.deleteEvent(id, force);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#deleteEvent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventManagementApi;

public class EventManagementApiExample {

    public static void main(String[] args) {
        EventManagementApi apiInstance = new EventManagementApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Boolean force = true; // Boolean | Force delete even if the event has dependencies
        try {
            BaseResponse result = apiInstance.deleteEvent(id, force);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#deleteEvent");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 
Boolean *force = true; // Force delete even if the event has dependencies (optional) (default to false)

EventManagementApi *apiInstance = [[EventManagementApi alloc] init];

// Delete Event
[apiInstance deleteEventWith:id
    force:force
              completionHandler: ^(BaseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.EventManagementApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 
var opts = { 
  'force': true // {{Boolean}} Force delete even if the event has dependencies
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteEvent(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new EventManagementApi();
            var id = new UUID(); // UUID | 
            var force = true;  // Boolean | Force delete even if the event has dependencies (optional)  (default to false)

            try
            {
                // Delete Event
                BaseResponse result = apiInstance.deleteEvent(id, force);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventManagementApi.deleteEvent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiEventManagementApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
$force = true; // Boolean | Force delete even if the event has dependencies

try {
    $result = $api_instance->deleteEvent($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventManagementApi->deleteEvent: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventManagementApi;


my $api_instance = WWW::SwaggerClient::EventManagementApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 
my $force = true; # Boolean | Force delete even if the event has dependencies

eval { 
    my $result = $api_instance->deleteEvent(id => $id, force => $force);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventManagementApi->deleteEvent: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.EventManagementApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 
force = true # Boolean | Force delete even if the event has dependencies (optional) (default to false)

try: 
    # Delete Event
    api_response = api_instance.delete_event(id, force=force)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventManagementApi->deleteEvent: %s\n" % e)

Parameters

Path parameters
Name Description
id*
UUID (uuid)
Required
Query parameters
Name Description
force
Boolean
Force delete even if the event has dependencies

Responses

Status: 200 - Event successfully deleted

Status: 401 - Unauthorized

Status: 404 - Event not found

Status: 409 - Cannot delete active event


getAllEvents

Get All Events

Returns a list of all events


/api/events

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/events?activeOnly=&limit=&offset=&search=&organizerId=&publicOnly=&startDate=&endDate="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventManagementApi;

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

public class EventManagementApiExample {

    public static void main(String[] args) {
        
        EventManagementApi apiInstance = new EventManagementApi();
        Boolean activeOnly = true; // Boolean | Filter to only return active events
        Integer limit = 56; // Integer | Maximum number of events to return
        Integer offset = 56; // Integer | Number of events to skip
        String search = search_example; // String | Search term to filter events by name
        UUID organizerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filter events by organizer ID
        Boolean publicOnly = true; // Boolean | Filter to only return public events
        date startDate = 2013-10-20; // date | Filter events starting on or after this date
        date endDate = 2013-10-20; // date | Filter events ending on or before this date
        try {
            EventsResponse result = apiInstance.getAllEvents(activeOnly, limit, offset, search, organizerId, publicOnly, startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#getAllEvents");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventManagementApi;

public class EventManagementApiExample {

    public static void main(String[] args) {
        EventManagementApi apiInstance = new EventManagementApi();
        Boolean activeOnly = true; // Boolean | Filter to only return active events
        Integer limit = 56; // Integer | Maximum number of events to return
        Integer offset = 56; // Integer | Number of events to skip
        String search = search_example; // String | Search term to filter events by name
        UUID organizerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filter events by organizer ID
        Boolean publicOnly = true; // Boolean | Filter to only return public events
        date startDate = 2013-10-20; // date | Filter events starting on or after this date
        date endDate = 2013-10-20; // date | Filter events ending on or before this date
        try {
            EventsResponse result = apiInstance.getAllEvents(activeOnly, limit, offset, search, organizerId, publicOnly, startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#getAllEvents");
            e.printStackTrace();
        }
    }
}
Boolean *activeOnly = true; // Filter to only return active events (optional) (default to true)
Integer *limit = 56; // Maximum number of events to return (optional) (default to 100)
Integer *offset = 56; // Number of events to skip (optional) (default to 0)
String *search = search_example; // Search term to filter events by name (optional)
UUID *organizerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Filter events by organizer ID (optional)
Boolean *publicOnly = true; // Filter to only return public events (optional) (default to false)
date *startDate = 2013-10-20; // Filter events starting on or after this date (optional)
date *endDate = 2013-10-20; // Filter events ending on or before this date (optional)

EventManagementApi *apiInstance = [[EventManagementApi alloc] init];

// Get All Events
[apiInstance getAllEventsWith:activeOnly
    limit:limit
    offset:offset
    search:search
    organizerId:organizerId
    publicOnly:publicOnly
    startDate:startDate
    endDate:endDate
              completionHandler: ^(EventsResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');

var api = new MeldestelleApi.EventManagementApi()
var opts = { 
  'activeOnly': true, // {{Boolean}} Filter to only return active events
  'limit': 56, // {{Integer}} Maximum number of events to return
  'offset': 56, // {{Integer}} Number of events to skip
  'search': search_example, // {{String}} Search term to filter events by name
  'organizerId': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {{UUID}} Filter events by organizer ID
  'publicOnly': true, // {{Boolean}} Filter to only return public events
  'startDate': 2013-10-20, // {{date}} Filter events starting on or after this date
  'endDate': 2013-10-20 // {{date}} Filter events ending on or before this date
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllEvents(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new EventManagementApi();
            var activeOnly = true;  // Boolean | Filter to only return active events (optional)  (default to true)
            var limit = 56;  // Integer | Maximum number of events to return (optional)  (default to 100)
            var offset = 56;  // Integer | Number of events to skip (optional)  (default to 0)
            var search = search_example;  // String | Search term to filter events by name (optional) 
            var organizerId = new UUID(); // UUID | Filter events by organizer ID (optional) 
            var publicOnly = true;  // Boolean | Filter to only return public events (optional)  (default to false)
            var startDate = 2013-10-20;  // date | Filter events starting on or after this date (optional) 
            var endDate = 2013-10-20;  // date | Filter events ending on or before this date (optional) 

            try
            {
                // Get All Events
                EventsResponse result = apiInstance.getAllEvents(activeOnly, limit, offset, search, organizerId, publicOnly, startDate, endDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventManagementApi.getAllEvents: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEventManagementApi();
$activeOnly = true; // Boolean | Filter to only return active events
$limit = 56; // Integer | Maximum number of events to return
$offset = 56; // Integer | Number of events to skip
$search = search_example; // String | Search term to filter events by name
$organizerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filter events by organizer ID
$publicOnly = true; // Boolean | Filter to only return public events
$startDate = 2013-10-20; // date | Filter events starting on or after this date
$endDate = 2013-10-20; // date | Filter events ending on or before this date

try {
    $result = $api_instance->getAllEvents($activeOnly, $limit, $offset, $search, $organizerId, $publicOnly, $startDate, $endDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventManagementApi->getAllEvents: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventManagementApi;

my $api_instance = WWW::SwaggerClient::EventManagementApi->new();
my $activeOnly = true; # Boolean | Filter to only return active events
my $limit = 56; # Integer | Maximum number of events to return
my $offset = 56; # Integer | Number of events to skip
my $search = search_example; # String | Search term to filter events by name
my $organizerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Filter events by organizer ID
my $publicOnly = true; # Boolean | Filter to only return public events
my $startDate = 2013-10-20; # date | Filter events starting on or after this date
my $endDate = 2013-10-20; # date | Filter events ending on or before this date

eval { 
    my $result = $api_instance->getAllEvents(activeOnly => $activeOnly, limit => $limit, offset => $offset, search => $search, organizerId => $organizerId, publicOnly => $publicOnly, startDate => $startDate, endDate => $endDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventManagementApi->getAllEvents: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EventManagementApi()
activeOnly = true # Boolean | Filter to only return active events (optional) (default to true)
limit = 56 # Integer | Maximum number of events to return (optional) (default to 100)
offset = 56 # Integer | Number of events to skip (optional) (default to 0)
search = search_example # String | Search term to filter events by name (optional)
organizerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Filter events by organizer ID (optional)
publicOnly = true # Boolean | Filter to only return public events (optional) (default to false)
startDate = 2013-10-20 # date | Filter events starting on or after this date (optional)
endDate = 2013-10-20 # date | Filter events ending on or before this date (optional)

try: 
    # Get All Events
    api_response = api_instance.get_all_events(activeOnly=activeOnly, limit=limit, offset=offset, search=search, organizerId=organizerId, publicOnly=publicOnly, startDate=startDate, endDate=endDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventManagementApi->getAllEvents: %s\n" % e)

Parameters

Query parameters
Name Description
activeOnly
Boolean
Filter to only return active events
limit
Integer
Maximum number of events to return
offset
Integer
Number of events to skip
search
organizerId
UUID (uuid)
Filter events by organizer ID
publicOnly
Boolean
Filter to only return public events
startDate
date (date)
Filter events starting on or after this date
endDate
date (date)
Filter events ending on or before this date

Responses

Status: 200 - Successful operation


getEventById

Get Event by ID

Returns an event by its ID


/api/events/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/events/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventManagementApi;

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

public class EventManagementApiExample {

    public static void main(String[] args) {
        
        EventManagementApi apiInstance = new EventManagementApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            EventResponse result = apiInstance.getEventById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#getEventById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventManagementApi;

public class EventManagementApiExample {

    public static void main(String[] args) {
        EventManagementApi apiInstance = new EventManagementApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            EventResponse result = apiInstance.getEventById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#getEventById");
            e.printStackTrace();
        }
    }
}
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

EventManagementApi *apiInstance = [[EventManagementApi alloc] init];

// Get Event by ID
[apiInstance getEventByIdWith:id
              completionHandler: ^(EventResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');

var api = new MeldestelleApi.EventManagementApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getEventById(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new EventManagementApi();
            var id = new UUID(); // UUID | 

            try
            {
                // Get Event by ID
                EventResponse result = apiInstance.getEventById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventManagementApi.getEventById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEventManagementApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

my $api_instance = WWW::SwaggerClient::EventManagementApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

eval { 
    my $result = $api_instance->getEventById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventManagementApi->getEventById: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EventManagementApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Get Event by ID
    api_response = api_instance.get_event_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventManagementApi->getEventById: %s\n" % e)

Parameters

Path parameters
Name Description
id*
UUID (uuid)
Required

Responses

Status: 200 - Successful operation

Status: 404 - Event not found


getEventStats

Get Event Statistics

Returns statistics about events


/api/events/stats

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/events/stats"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventManagementApi;

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

public class EventManagementApiExample {

    public static void main(String[] args) {
        
        EventManagementApi apiInstance = new EventManagementApi();
        try {
            EventStatsResponse result = apiInstance.getEventStats();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#getEventStats");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventManagementApi;

public class EventManagementApiExample {

    public static void main(String[] args) {
        EventManagementApi apiInstance = new EventManagementApi();
        try {
            EventStatsResponse result = apiInstance.getEventStats();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#getEventStats");
            e.printStackTrace();
        }
    }
}

EventManagementApi *apiInstance = [[EventManagementApi alloc] init];

// Get Event Statistics
[apiInstance getEventStatsWithCompletionHandler: 
              ^(EventStatsResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');

var api = new MeldestelleApi.EventManagementApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getEventStats(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new EventManagementApi();

            try
            {
                // Get Event Statistics
                EventStatsResponse result = apiInstance.getEventStats();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventManagementApi.getEventStats: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEventManagementApi();

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

my $api_instance = WWW::SwaggerClient::EventManagementApi->new();

eval { 
    my $result = $api_instance->getEventStats();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventManagementApi->getEventStats: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EventManagementApi()

try: 
    # Get Event Statistics
    api_response = api_instance.get_event_stats()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventManagementApi->getEventStats: %s\n" % e)

Parameters

Responses

Status: 200 - Successful operation


updateEvent

Update Event

Updates an existing event


/api/events/{id}

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.meldestelle.at/api/events/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EventManagementApi;

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

public class EventManagementApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        EventManagementApi apiInstance = new EventManagementApi();
        CreateEventRequest body = ; // CreateEventRequest | 
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            EventResponse result = apiInstance.updateEvent(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#updateEvent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EventManagementApi;

public class EventManagementApiExample {

    public static void main(String[] args) {
        EventManagementApi apiInstance = new EventManagementApi();
        CreateEventRequest body = ; // CreateEventRequest | 
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            EventResponse result = apiInstance.updateEvent(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EventManagementApi#updateEvent");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
CreateEventRequest *body = ; // 
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

EventManagementApi *apiInstance = [[EventManagementApi alloc] init];

// Update Event
[apiInstance updateEventWith:body
    id:id
              completionHandler: ^(EventResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.EventManagementApi()
var body = ; // {{CreateEventRequest}} 
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateEvent(bodyid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new EventManagementApi();
            var body = new CreateEventRequest(); // CreateEventRequest | 
            var id = new UUID(); // UUID | 

            try
            {
                // Update Event
                EventResponse result = apiInstance.updateEvent(body, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EventManagementApi.updateEvent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiEventManagementApi();
$body = ; // CreateEventRequest | 
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

try {
    $result = $api_instance->updateEvent($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EventManagementApi->updateEvent: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EventManagementApi;


my $api_instance = WWW::SwaggerClient::EventManagementApi->new();
my $body = WWW::SwaggerClient::Object::CreateEventRequest->new(); # CreateEventRequest | 
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

eval { 
    my $result = $api_instance->updateEvent(body => $body, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EventManagementApi->updateEvent: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.EventManagementApi()
body =  # CreateEventRequest | 
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Update Event
    api_response = api_instance.update_event(body, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EventManagementApi->updateEvent: %s\n" % e)

Parameters

Path parameters
Name Description
id*
UUID (uuid)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Event successfully updated

Status: 400 - Invalid event data

Status: 401 - Unauthorized

Status: 404 - Event not found


HorseRegistry

batchDeleteHorses

Batch Delete Horses

Deletes multiple horses in a single operation


/api/horses/batch-delete

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.meldestelle.at/api/horses/batch-delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        BatchDeleteRequest body = ; // BatchDeleteRequest | 
        try {
            BatchDeleteResponse result = apiInstance.batchDeleteHorses(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#batchDeleteHorses");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        BatchDeleteRequest body = ; // BatchDeleteRequest | 
        try {
            BatchDeleteResponse result = apiInstance.batchDeleteHorses(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#batchDeleteHorses");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
BatchDeleteRequest *body = ; // 

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Batch Delete Horses
[apiInstance batchDeleteHorsesWith:body
              completionHandler: ^(BatchDeleteResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var body = ; // {{BatchDeleteRequest}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.batchDeleteHorses(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var body = new BatchDeleteRequest(); // BatchDeleteRequest | 

            try
            {
                // Batch Delete Horses
                BatchDeleteResponse result = apiInstance.batchDeleteHorses(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.batchDeleteHorses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$body = ; // BatchDeleteRequest | 

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


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $body = WWW::SwaggerClient::Object::BatchDeleteRequest->new(); # BatchDeleteRequest | 

eval { 
    my $result = $api_instance->batchDeleteHorses(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->batchDeleteHorses: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
body =  # BatchDeleteRequest | 

try: 
    # Batch Delete Horses
    api_response = api_instance.batch_delete_horses(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->batchDeleteHorses: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Horses successfully deleted

Status: 206 - Partial content - some horses could not be deleted

Status: 400 - Invalid request

Status: 401 - Unauthorized


deleteHorse

Delete Horse

Deletes a horse


/api/horses/{id}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/horses/{id}?force="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Boolean force = true; // Boolean | Force delete even if the horse has dependencies
        try {
            BaseResponse result = apiInstance.deleteHorse(id, force);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#deleteHorse");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Boolean force = true; // Boolean | Force delete even if the horse has dependencies
        try {
            BaseResponse result = apiInstance.deleteHorse(id, force);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#deleteHorse");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 
Boolean *force = true; // Force delete even if the horse has dependencies (optional) (default to false)

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Delete Horse
[apiInstance deleteHorseWith:id
    force:force
              completionHandler: ^(BaseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 
var opts = { 
  'force': true // {{Boolean}} Force delete even if the horse has dependencies
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteHorse(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var id = new UUID(); // UUID | 
            var force = true;  // Boolean | Force delete even if the horse has dependencies (optional)  (default to false)

            try
            {
                // Delete Horse
                BaseResponse result = apiInstance.deleteHorse(id, force);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.deleteHorse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
$force = true; // Boolean | Force delete even if the horse has dependencies

try {
    $result = $api_instance->deleteHorse($id, $force);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HorseRegistryApi->deleteHorse: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HorseRegistryApi;


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 
my $force = true; # Boolean | Force delete even if the horse has dependencies

eval { 
    my $result = $api_instance->deleteHorse(id => $id, force => $force);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->deleteHorse: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 
force = true # Boolean | Force delete even if the horse has dependencies (optional) (default to false)

try: 
    # Delete Horse
    api_response = api_instance.delete_horse(id, force=force)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->deleteHorse: %s\n" % e)

Parameters

Path parameters
Name Description
id*
UUID (uuid)
Required
Query parameters
Name Description
force
Boolean
Force delete even if the horse has dependencies

Responses

Status: 200 - Horse successfully deleted

Status: 400 - Invalid request

Status: 401 - Unauthorized

Status: 404 - Horse not found


getAllHorses

Get All Horses

Returns a list of all horses


/api/horses

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/horses?activeOnly=&limit=&ownerId=&geschlecht=&rasse=&search="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        Boolean activeOnly = true; // Boolean | Filter to only return active horses
        Integer limit = 56; // Integer | Maximum number of horses to return
        UUID ownerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filter horses by owner ID
        String geschlecht = geschlecht_example; // String | Filter horses by gender
        String rasse = rasse_example; // String | Filter horses by breed
        String search = search_example; // String | Search term to filter horses by name
        try {
            HorsesResponse result = apiInstance.getAllHorses(activeOnly, limit, ownerId, geschlecht, rasse, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getAllHorses");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        Boolean activeOnly = true; // Boolean | Filter to only return active horses
        Integer limit = 56; // Integer | Maximum number of horses to return
        UUID ownerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filter horses by owner ID
        String geschlecht = geschlecht_example; // String | Filter horses by gender
        String rasse = rasse_example; // String | Filter horses by breed
        String search = search_example; // String | Search term to filter horses by name
        try {
            HorsesResponse result = apiInstance.getAllHorses(activeOnly, limit, ownerId, geschlecht, rasse, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getAllHorses");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Boolean *activeOnly = true; // Filter to only return active horses (optional) (default to true)
Integer *limit = 56; // Maximum number of horses to return (optional) (default to 100)
UUID *ownerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Filter horses by owner ID (optional)
String *geschlecht = geschlecht_example; // Filter horses by gender (optional)
String *rasse = rasse_example; // Filter horses by breed (optional)
String *search = search_example; // Search term to filter horses by name (optional)

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Get All Horses
[apiInstance getAllHorsesWith:activeOnly
    limit:limit
    ownerId:ownerId
    geschlecht:geschlecht
    rasse:rasse
    search:search
              completionHandler: ^(HorsesResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var opts = { 
  'activeOnly': true, // {{Boolean}} Filter to only return active horses
  'limit': 56, // {{Integer}} Maximum number of horses to return
  'ownerId': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {{UUID}} Filter horses by owner ID
  'geschlecht': geschlecht_example, // {{String}} Filter horses by gender
  'rasse': rasse_example, // {{String}} Filter horses by breed
  'search': search_example // {{String}} Search term to filter horses by name
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllHorses(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var activeOnly = true;  // Boolean | Filter to only return active horses (optional)  (default to true)
            var limit = 56;  // Integer | Maximum number of horses to return (optional)  (default to 100)
            var ownerId = new UUID(); // UUID | Filter horses by owner ID (optional) 
            var geschlecht = geschlecht_example;  // String | Filter horses by gender (optional) 
            var rasse = rasse_example;  // String | Filter horses by breed (optional) 
            var search = search_example;  // String | Search term to filter horses by name (optional) 

            try
            {
                // Get All Horses
                HorsesResponse result = apiInstance.getAllHorses(activeOnly, limit, ownerId, geschlecht, rasse, search);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.getAllHorses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$activeOnly = true; // Boolean | Filter to only return active horses
$limit = 56; // Integer | Maximum number of horses to return
$ownerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filter horses by owner ID
$geschlecht = geschlecht_example; // String | Filter horses by gender
$rasse = rasse_example; // String | Filter horses by breed
$search = search_example; // String | Search term to filter horses by name

try {
    $result = $api_instance->getAllHorses($activeOnly, $limit, $ownerId, $geschlecht, $rasse, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HorseRegistryApi->getAllHorses: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HorseRegistryApi;


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $activeOnly = true; # Boolean | Filter to only return active horses
my $limit = 56; # Integer | Maximum number of horses to return
my $ownerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Filter horses by owner ID
my $geschlecht = geschlecht_example; # String | Filter horses by gender
my $rasse = rasse_example; # String | Filter horses by breed
my $search = search_example; # String | Search term to filter horses by name

eval { 
    my $result = $api_instance->getAllHorses(activeOnly => $activeOnly, limit => $limit, ownerId => $ownerId, geschlecht => $geschlecht, rasse => $rasse, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->getAllHorses: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
activeOnly = true # Boolean | Filter to only return active horses (optional) (default to true)
limit = 56 # Integer | Maximum number of horses to return (optional) (default to 100)
ownerId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Filter horses by owner ID (optional)
geschlecht = geschlecht_example # String | Filter horses by gender (optional)
rasse = rasse_example # String | Filter horses by breed (optional)
search = search_example # String | Search term to filter horses by name (optional)

try: 
    # Get All Horses
    api_response = api_instance.get_all_horses(activeOnly=activeOnly, limit=limit, ownerId=ownerId, geschlecht=geschlecht, rasse=rasse, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->getAllHorses: %s\n" % e)

Parameters

Query parameters
Name Description
activeOnly
Boolean
Filter to only return active horses
limit
Integer
Maximum number of horses to return
ownerId
UUID (uuid)
Filter horses by owner ID
geschlecht
String
Filter horses by gender
rasse
String
Filter horses by breed
search

Responses

Status: 200 - Successful operation

Status: 401 - Unauthorized


getFeiRegisteredHorses

Get FEI Registered Horses

Returns a list of horses registered with the International Federation for Equestrian Sports (FEI)


/api/horses/fei-registered

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/horses/fei-registered?activeOnly="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        Boolean activeOnly = true; // Boolean | Filter to only return active horses
        try {
            HorsesResponse result = apiInstance.getFeiRegisteredHorses(activeOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getFeiRegisteredHorses");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        Boolean activeOnly = true; // Boolean | Filter to only return active horses
        try {
            HorsesResponse result = apiInstance.getFeiRegisteredHorses(activeOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getFeiRegisteredHorses");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Boolean *activeOnly = true; // Filter to only return active horses (optional) (default to true)

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Get FEI Registered Horses
[apiInstance getFeiRegisteredHorsesWith:activeOnly
              completionHandler: ^(HorsesResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var opts = { 
  'activeOnly': true // {{Boolean}} Filter to only return active horses
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getFeiRegisteredHorses(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var activeOnly = true;  // Boolean | Filter to only return active horses (optional)  (default to true)

            try
            {
                // Get FEI Registered Horses
                HorsesResponse result = apiInstance.getFeiRegisteredHorses(activeOnly);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.getFeiRegisteredHorses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$activeOnly = true; // Boolean | Filter to only return active horses

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


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $activeOnly = true; # Boolean | Filter to only return active horses

eval { 
    my $result = $api_instance->getFeiRegisteredHorses(activeOnly => $activeOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->getFeiRegisteredHorses: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
activeOnly = true # Boolean | Filter to only return active horses (optional) (default to true)

try: 
    # Get FEI Registered Horses
    api_response = api_instance.get_fei_registered_horses(activeOnly=activeOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->getFeiRegisteredHorses: %s\n" % e)

Parameters

Query parameters
Name Description
activeOnly
Boolean
Filter to only return active horses

Responses

Status: 200 - Successful operation

Status: 401 - Unauthorized


getHorseByChipNumber

Find Horse by Chip Number

Returns a horse by its chip number


/api/horses/search/chip/{nummer}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/horses/search/chip/{nummer}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        String nummer = nummer_example; // String | Chip number of the horse
        try {
            HorseResponse result = apiInstance.getHorseByChipNumber(nummer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getHorseByChipNumber");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        String nummer = nummer_example; // String | Chip number of the horse
        try {
            HorseResponse result = apiInstance.getHorseByChipNumber(nummer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getHorseByChipNumber");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *nummer = nummer_example; // Chip number of the horse

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Find Horse by Chip Number
[apiInstance getHorseByChipNumberWith:nummer
              completionHandler: ^(HorseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var nummer = nummer_example; // {{String}} Chip number of the horse

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getHorseByChipNumber(nummer, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var nummer = nummer_example;  // String | Chip number of the horse

            try
            {
                // Find Horse by Chip Number
                HorseResponse result = apiInstance.getHorseByChipNumber(nummer);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.getHorseByChipNumber: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$nummer = nummer_example; // String | Chip number of the horse

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


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $nummer = nummer_example; # String | Chip number of the horse

eval { 
    my $result = $api_instance->getHorseByChipNumber(nummer => $nummer);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->getHorseByChipNumber: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
nummer = nummer_example # String | Chip number of the horse

try: 
    # Find Horse by Chip Number
    api_response = api_instance.get_horse_by_chip_number(nummer)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->getHorseByChipNumber: %s\n" % e)

Parameters

Path parameters
Name Description
nummer*
String
Chip number of the horse
Required

Responses

Status: 200 - Successful operation

Status: 404 - Horse not found

Status: 401 - Unauthorized


getHorseById

Get Horse by ID

Returns a horse by its ID


/api/horses/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/horses/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            HorseResponse result = apiInstance.getHorseById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getHorseById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            HorseResponse result = apiInstance.getHorseById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getHorseById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Get Horse by ID
[apiInstance getHorseByIdWith:id
              completionHandler: ^(HorseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getHorseById(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var id = new UUID(); // UUID | 

            try
            {
                // Get Horse by ID
                HorseResponse result = apiInstance.getHorseById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.getHorseById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

eval { 
    my $result = $api_instance->getHorseById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->getHorseById: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Get Horse by ID
    api_response = api_instance.get_horse_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->getHorseById: %s\n" % e)

Parameters

Path parameters
Name Description
id*
UUID (uuid)
Required

Responses

Status: 200 - Successful operation

Status: 404 - Horse not found

Status: 401 - Unauthorized


getHorseByLifeNumber

Find Horse by Life Number

Returns a horse by its life number


/api/horses/search/lebensnummer/{nummer}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/horses/search/lebensnummer/{nummer}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        String nummer = nummer_example; // String | Life number of the horse
        try {
            HorseResponse result = apiInstance.getHorseByLifeNumber(nummer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getHorseByLifeNumber");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        String nummer = nummer_example; // String | Life number of the horse
        try {
            HorseResponse result = apiInstance.getHorseByLifeNumber(nummer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getHorseByLifeNumber");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *nummer = nummer_example; // Life number of the horse

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Find Horse by Life Number
[apiInstance getHorseByLifeNumberWith:nummer
              completionHandler: ^(HorseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var nummer = nummer_example; // {{String}} Life number of the horse

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getHorseByLifeNumber(nummer, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var nummer = nummer_example;  // String | Life number of the horse

            try
            {
                // Find Horse by Life Number
                HorseResponse result = apiInstance.getHorseByLifeNumber(nummer);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.getHorseByLifeNumber: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$nummer = nummer_example; // String | Life number of the horse

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


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $nummer = nummer_example; # String | Life number of the horse

eval { 
    my $result = $api_instance->getHorseByLifeNumber(nummer => $nummer);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->getHorseByLifeNumber: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
nummer = nummer_example # String | Life number of the horse

try: 
    # Find Horse by Life Number
    api_response = api_instance.get_horse_by_life_number(nummer)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->getHorseByLifeNumber: %s\n" % e)

Parameters

Path parameters
Name Description
nummer*
String
Life number of the horse
Required

Responses

Status: 200 - Successful operation

Status: 404 - Horse not found

Status: 401 - Unauthorized


getHorseStats

Get Horse Statistics

Returns statistics about horses in the registry


/api/horses/stats

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/horses/stats"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        try {
            HorseStatsResponse result = apiInstance.getHorseStats();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getHorseStats");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        try {
            HorseStatsResponse result = apiInstance.getHorseStats();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getHorseStats");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Get Horse Statistics
[apiInstance getHorseStatsWithCompletionHandler: 
              ^(HorseStatsResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getHorseStats(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();

            try
            {
                // Get Horse Statistics
                HorseStatsResponse result = apiInstance.getHorseStats();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.getHorseStats: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();

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


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();

eval { 
    my $result = $api_instance->getHorseStats();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->getHorseStats: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()

try: 
    # Get Horse Statistics
    api_response = api_instance.get_horse_stats()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->getHorseStats: %s\n" % e)

Parameters

Responses

Status: 200 - Successful operation

Status: 401 - Unauthorized


getOepsRegisteredHorses

Get OEPS Registered Horses

Returns a list of horses registered with the Austrian Equestrian Federation (OEPS)


/api/horses/oeps-registered

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/horses/oeps-registered?activeOnly="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        Boolean activeOnly = true; // Boolean | Filter to only return active horses
        try {
            HorsesResponse result = apiInstance.getOepsRegisteredHorses(activeOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getOepsRegisteredHorses");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        Boolean activeOnly = true; // Boolean | Filter to only return active horses
        try {
            HorsesResponse result = apiInstance.getOepsRegisteredHorses(activeOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#getOepsRegisteredHorses");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Boolean *activeOnly = true; // Filter to only return active horses (optional) (default to true)

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Get OEPS Registered Horses
[apiInstance getOepsRegisteredHorsesWith:activeOnly
              completionHandler: ^(HorsesResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var opts = { 
  'activeOnly': true // {{Boolean}} Filter to only return active horses
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOepsRegisteredHorses(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var activeOnly = true;  // Boolean | Filter to only return active horses (optional)  (default to true)

            try
            {
                // Get OEPS Registered Horses
                HorsesResponse result = apiInstance.getOepsRegisteredHorses(activeOnly);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.getOepsRegisteredHorses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$activeOnly = true; // Boolean | Filter to only return active horses

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


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $activeOnly = true; # Boolean | Filter to only return active horses

eval { 
    my $result = $api_instance->getOepsRegisteredHorses(activeOnly => $activeOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->getOepsRegisteredHorses: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
activeOnly = true # Boolean | Filter to only return active horses (optional) (default to true)

try: 
    # Get OEPS Registered Horses
    api_response = api_instance.get_oeps_registered_horses(activeOnly=activeOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->getOepsRegisteredHorses: %s\n" % e)

Parameters

Query parameters
Name Description
activeOnly
Boolean
Filter to only return active horses

Responses

Status: 200 - Successful operation

Status: 401 - Unauthorized


registerHorse

Register Horse

Registers a new horse


/api/horses/stats

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.meldestelle.at/api/horses/stats"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        RegisterHorseRequest body = ; // RegisterHorseRequest | 
        try {
            HorseResponse result = apiInstance.registerHorse(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#registerHorse");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        RegisterHorseRequest body = ; // RegisterHorseRequest | 
        try {
            HorseResponse result = apiInstance.registerHorse(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#registerHorse");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
RegisterHorseRequest *body = ; // 

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Register Horse
[apiInstance registerHorseWith:body
              completionHandler: ^(HorseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var body = ; // {{RegisterHorseRequest}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registerHorse(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var body = new RegisterHorseRequest(); // RegisterHorseRequest | 

            try
            {
                // Register Horse
                HorseResponse result = apiInstance.registerHorse(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.registerHorse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$body = ; // RegisterHorseRequest | 

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


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $body = WWW::SwaggerClient::Object::RegisterHorseRequest->new(); # RegisterHorseRequest | 

eval { 
    my $result = $api_instance->registerHorse(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->registerHorse: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
body =  # RegisterHorseRequest | 

try: 
    # Register Horse
    api_response = api_instance.register_horse(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->registerHorse: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Horse successfully registered

Status: 400 - Invalid horse data

Status: 401 - Unauthorized


softDeleteHorse

Soft Delete Horse

Marks a horse as inactive instead of permanently deleting it


/api/horses/{id}/soft-delete

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/horses/{id}/soft-delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            BaseResponse result = apiInstance.softDeleteHorse(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#softDeleteHorse");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            BaseResponse result = apiInstance.softDeleteHorse(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#softDeleteHorse");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Soft Delete Horse
[apiInstance softDeleteHorseWith:id
              completionHandler: ^(BaseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.softDeleteHorse(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var id = new UUID(); // UUID | 

            try
            {
                // Soft Delete Horse
                BaseResponse result = apiInstance.softDeleteHorse(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.softDeleteHorse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

eval { 
    my $result = $api_instance->softDeleteHorse(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->softDeleteHorse: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Soft Delete Horse
    api_response = api_instance.soft_delete_horse(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->softDeleteHorse: %s\n" % e)

Parameters

Path parameters
Name Description
id*
UUID (uuid)
Required

Responses

Status: 200 - Horse successfully marked as inactive

Status: 400 - Invalid request

Status: 401 - Unauthorized

Status: 404 - Horse not found


updateHorse

Update Horse

Updates an existing horse


/api/horses/{id}

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.meldestelle.at/api/horses/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HorseRegistryApi;

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

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        HorseRegistryApi apiInstance = new HorseRegistryApi();
        UpdateHorseRequest body = ; // UpdateHorseRequest | 
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            HorseResponse result = apiInstance.updateHorse(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#updateHorse");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HorseRegistryApi;

public class HorseRegistryApiExample {

    public static void main(String[] args) {
        HorseRegistryApi apiInstance = new HorseRegistryApi();
        UpdateHorseRequest body = ; // UpdateHorseRequest | 
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            HorseResponse result = apiInstance.updateHorse(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HorseRegistryApi#updateHorse");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
UpdateHorseRequest *body = ; // 
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

HorseRegistryApi *apiInstance = [[HorseRegistryApi alloc] init];

// Update Horse
[apiInstance updateHorseWith:body
    id:id
              completionHandler: ^(HorseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.HorseRegistryApi()
var body = ; // {{UpdateHorseRequest}} 
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateHorse(bodyid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HorseRegistryApi();
            var body = new UpdateHorseRequest(); // UpdateHorseRequest | 
            var id = new UUID(); // UUID | 

            try
            {
                // Update Horse
                HorseResponse result = apiInstance.updateHorse(body, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HorseRegistryApi.updateHorse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHorseRegistryApi();
$body = ; // UpdateHorseRequest | 
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

try {
    $result = $api_instance->updateHorse($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HorseRegistryApi->updateHorse: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HorseRegistryApi;


my $api_instance = WWW::SwaggerClient::HorseRegistryApi->new();
my $body = WWW::SwaggerClient::Object::UpdateHorseRequest->new(); # UpdateHorseRequest | 
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

eval { 
    my $result = $api_instance->updateHorse(body => $body, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HorseRegistryApi->updateHorse: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HorseRegistryApi()
body =  # UpdateHorseRequest | 
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Update Horse
    api_response = api_instance.update_horse(body, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HorseRegistryApi->updateHorse: %s\n" % e)

Parameters

Path parameters
Name Description
id*
UUID (uuid)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Horse successfully updated

Status: 400 - Invalid horse data

Status: 401 - Unauthorized

Status: 404 - Horse not found


MasterData

createCountry

Create Country

Creates a new country


/api/masterdata/countries

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.meldestelle.at/api/masterdata/countries"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasterDataApi;

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

public class MasterDataApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MasterDataApi apiInstance = new MasterDataApi();
        CreateCountryRequest body = ; // CreateCountryRequest | 
        try {
            CountryResponse result = apiInstance.createCountry(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasterDataApi#createCountry");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasterDataApi;

public class MasterDataApiExample {

    public static void main(String[] args) {
        MasterDataApi apiInstance = new MasterDataApi();
        CreateCountryRequest body = ; // CreateCountryRequest | 
        try {
            CountryResponse result = apiInstance.createCountry(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasterDataApi#createCountry");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
CreateCountryRequest *body = ; // 

MasterDataApi *apiInstance = [[MasterDataApi alloc] init];

// Create Country
[apiInstance createCountryWith:body
              completionHandler: ^(CountryResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');
var defaultClient = MeldestelleApi.ApiClient.instance;


var api = new MeldestelleApi.MasterDataApi()
var body = ; // {{CreateCountryRequest}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createCountry(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new MasterDataApi();
            var body = new CreateCountryRequest(); // CreateCountryRequest | 

            try
            {
                // Create Country
                CountryResponse result = apiInstance.createCountry(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasterDataApi.createCountry: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMasterDataApi();
$body = ; // CreateCountryRequest | 

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


my $api_instance = WWW::SwaggerClient::MasterDataApi->new();
my $body = WWW::SwaggerClient::Object::CreateCountryRequest->new(); # CreateCountryRequest | 

eval { 
    my $result = $api_instance->createCountry(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasterDataApi->createCountry: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MasterDataApi()
body =  # CreateCountryRequest | 

try: 
    # Create Country
    api_response = api_instance.create_country(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasterDataApi->createCountry: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Country successfully created

Status: 400 - Invalid country data

Status: 401 - Unauthorized


getAllCountries

Get All Countries

Returns a list of all countries


/api/masterdata/countries

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/masterdata/countries"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasterDataApi;

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

public class MasterDataApiExample {

    public static void main(String[] args) {
        
        MasterDataApi apiInstance = new MasterDataApi();
        try {
            CountriesResponse result = apiInstance.getAllCountries();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasterDataApi#getAllCountries");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasterDataApi;

public class MasterDataApiExample {

    public static void main(String[] args) {
        MasterDataApi apiInstance = new MasterDataApi();
        try {
            CountriesResponse result = apiInstance.getAllCountries();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasterDataApi#getAllCountries");
            e.printStackTrace();
        }
    }
}

MasterDataApi *apiInstance = [[MasterDataApi alloc] init];

// Get All Countries
[apiInstance getAllCountriesWithCompletionHandler: 
              ^(CountriesResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');

var api = new MeldestelleApi.MasterDataApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllCountries(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MasterDataApi();

            try
            {
                // Get All Countries
                CountriesResponse result = apiInstance.getAllCountries();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasterDataApi.getAllCountries: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiMasterDataApi();

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

my $api_instance = WWW::SwaggerClient::MasterDataApi->new();

eval { 
    my $result = $api_instance->getAllCountries();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasterDataApi->getAllCountries: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.MasterDataApi()

try: 
    # Get All Countries
    api_response = api_instance.get_all_countries()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasterDataApi->getAllCountries: %s\n" % e)

Parameters

Responses

Status: 200 - Successful operation


getCountryById

Get Country by ID

Returns a country by its ID


/api/masterdata/countries/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://api.meldestelle.at/api/masterdata/countries/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasterDataApi;

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

public class MasterDataApiExample {

    public static void main(String[] args) {
        
        MasterDataApi apiInstance = new MasterDataApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            CountryResponse result = apiInstance.getCountryById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasterDataApi#getCountryById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MasterDataApi;

public class MasterDataApiExample {

    public static void main(String[] args) {
        MasterDataApi apiInstance = new MasterDataApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            CountryResponse result = apiInstance.getCountryById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MasterDataApi#getCountryById");
            e.printStackTrace();
        }
    }
}
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

MasterDataApi *apiInstance = [[MasterDataApi alloc] init];

// Get Country by ID
[apiInstance getCountryByIdWith:id
              completionHandler: ^(CountryResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MeldestelleApi = require('meldestelle_api');

var api = new MeldestelleApi.MasterDataApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCountryById(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new MasterDataApi();
            var id = new UUID(); // UUID | 

            try
            {
                // Get Country by ID
                CountryResponse result = apiInstance.getCountryById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MasterDataApi.getCountryById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiMasterDataApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

my $api_instance = WWW::SwaggerClient::MasterDataApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

eval { 
    my $result = $api_instance->getCountryById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MasterDataApi->getCountryById: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.MasterDataApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Get Country by ID
    api_response = api_instance.get_country_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MasterDataApi->getCountryById: %s\n" % e)

Parameters

Path parameters
Name Description
id*
UUID (uuid)
Required

Responses

Status: 200 - Successful operation

Status: 404 - Country not found