# RoboCupMS - Match API

## API and SDK Documentation

Version: 2.0.0

API zajištuje správů zápasů.

# Default

# allByYearGet

Navratí všechny zápasy pro konkrétní ročník soutěže

    /allByYear

### Usage and SDK Samples

    curl -X GET \
     -H "Accept: application/json" \
     "https://iob04.vas-server.cz:8080/api/match/allByYear?year=56"

    import org.openapitools.client.*;
    import org.openapitools.client.auth.*;
    import org.openapitools.client.model.*;
    import org.openapitools.client.api.DefaultApi;

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

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

            // Create an instance of the API class
            DefaultApi apiInstance = new DefaultApi();
            Integer year = 56; // Integer | Ročník soutěže

            try {
                inline_response_200 result = apiInstance.allByYearGet(year);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#allByYearGet");
                e.printStackTrace();
            }
        }
    }

    import org.openapitools.client.api.DefaultApi;

    public class DefaultApiExample {
        public static void main(String[] args) {
            DefaultApi apiInstance = new DefaultApi();
            Integer year = 56; // Integer | Ročník soutěže

            try {
                inline_response_200 result = apiInstance.allByYearGet(year);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#allByYearGet");
                e.printStackTrace();
            }
        }
    }

    // Create an instance of the API class
    DefaultApi *apiInstance = [[DefaultApi alloc] init];
    Integer *year = 56; // Ročník soutěže (default to null)

    // Navratí všechny zápasy pro konkrétní ročník soutěže
    [apiInstance allByYearGetWith:year
                  completionHandler: ^(inline_response_200 output, NSError* error) {
        if (output) {
            NSLog(@"%@", output);
        }
        if (error) {
            NSLog(@"Error: %@", error);
        }
    }];

    var RoboCupMsMatchApi = require('robo_cup_ms_match_api');

    // Create an instance of the API class
    var api = new RoboCupMsMatchApi.DefaultApi()
    var year = 56; // {Integer} Ročník soutěže

    var callback = function(error, data, response) {
      if (error) {
        console.error(error);
      } else {
        console.log('API called successfully. Returned data: ' + data);
      }
    };
    api.allByYearGet(year, callback);

    using System;
    using System.Diagnostics;
    using Org.OpenAPITools.Api;
    using Org.OpenAPITools.Client;
    using Org.OpenAPITools.Model;

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

                // Create an instance of the API class
                var apiInstance = new DefaultApi();
                var year = 56;  // Integer | Ročník soutěže (default to null)

                try {
                    // Navratí všechny zápasy pro konkrétní ročník soutěže
                    inline_response_200 result = apiInstance.allByYearGet(year);
                    Debug.WriteLine(result);
                } catch (Exception e) {
                    Debug.Print("Exception when calling DefaultApi.allByYearGet: " + e.Message );
                }
            }
        }
    }

    <?php
    require_once(__DIR__ . '/vendor/autoload.php');

    // Create an instance of the API class
    $api_instance = new OpenAPITools\Client\Api\DefaultApi();
    $year = 56; // Integer | Ročník soutěže

    try {
        $result = $api_instance->allByYearGet($year);
        print_r($result);
    } catch (Exception $e) {
        echo 'Exception when calling DefaultApi->allByYearGet: ', $e->getMessage(), PHP_EOL;
    }
    ?>

    use Data::Dumper;
    use WWW::OPenAPIClient::Configuration;
    use WWW::OPenAPIClient::DefaultApi;

    # Create an instance of the API class
    my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
    my $year = 56; # Integer | Ročník soutěže

    eval {
        my $result = $api_instance->allByYearGet(year => $year);
        print Dumper($result);
    };
    if ($@) {
        warn "Exception when calling DefaultApi->allByYearGet: $@\n";
    }

    from __future__ import print_statement
    import time
    import openapi_client
    from openapi_client.rest import ApiException
    from pprint import pprint

    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi()
    year = 56 # Integer | Ročník soutěže (default to null)

    try:
        # Navratí všechny zápasy pro konkrétní ročník soutěže
        api_response = api_instance.all_by_year_get(year)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->allByYearGet: %s\n" % e)

    extern crate DefaultApi;

    pub fn main() {
        let year = 56; // Integer

        let mut context = DefaultApi::Context::default();
        let result = client.allByYearGet(year, &context).wait();

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

## Scopes

## Parameters

Query parameters

Name | Description
--- | ---
year* | Integer Ročník soutěže Required

## Responses

###

# allGet

Navratí všechny zápasy

    /all

### Usage and SDK Samples

    curl -X GET \
     -H "Accept: application/json" \
     "https://iob04.vas-server.cz:8080/api/match/all"

    import org.openapitools.client.*;
    import org.openapitools.client.auth.*;
    import org.openapitools.client.model.*;
    import org.openapitools.client.api.DefaultApi;

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

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

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

            try {
                inline_response_200 result = apiInstance.allGet();
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#allGet");
                e.printStackTrace();
            }
        }
    }

    import org.openapitools.client.api.DefaultApi;

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

            try {
                inline_response_200 result = apiInstance.allGet();
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#allGet");
                e.printStackTrace();
            }
        }
    }

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

    // Navratí všechny zápasy
    [apiInstance allGetWithCompletionHandler:
                  ^(inline_response_200 output, NSError* error) {
        if (output) {
            NSLog(@"%@", output);
        }
        if (error) {
            NSLog(@"Error: %@", error);
        }
    }];

    var RoboCupMsMatchApi = require('robo_cup_ms_match_api');

    // Create an instance of the API class
    var api = new RoboCupMsMatchApi.DefaultApi()
    var callback = function(error, data, response) {
      if (error) {
        console.error(error);
      } else {
        console.log('API called successfully. Returned data: ' + data);
      }
    };
    api.allGet(callback);

    using System;
    using System.Diagnostics;
    using Org.OpenAPITools.Api;
    using Org.OpenAPITools.Client;
    using Org.OpenAPITools.Model;

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

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

                try {
                    // Navratí všechny zápasy
                    inline_response_200 result = apiInstance.allGet();
                    Debug.WriteLine(result);
                } catch (Exception e) {
                    Debug.Print("Exception when calling DefaultApi.allGet: " + e.Message );
                }
            }
        }
    }

    <?php
    require_once(__DIR__ . '/vendor/autoload.php');

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

    try {
        $result = $api_instance->allGet();
        print_r($result);
    } catch (Exception $e) {
        echo 'Exception when calling DefaultApi->allGet: ', $e->getMessage(), PHP_EOL;
    }
    ?>

    use Data::Dumper;
    use WWW::OPenAPIClient::Configuration;
    use WWW::OPenAPIClient::DefaultApi;

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

    eval {
        my $result = $api_instance->allGet();
        print Dumper($result);
    };
    if ($@) {
        warn "Exception when calling DefaultApi->allGet: $@\n";
    }

    from __future__ import print_statement
    import time
    import openapi_client
    from openapi_client.rest import ApiException
    from pprint import pprint

    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi()

    try:
        # Navratí všechny zápasy
        api_response = api_instance.all_get()
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->allGet: %s\n" % e)

    extern crate DefaultApi;

    pub fn main() {

        let mut context = DefaultApi::Context::default();
        let result = client.allGet(&context).wait();

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

## Scopes

## Parameters

## Responses

###

# createPost

Naplánuje nový zápas

Vytvořený zápas je automaticky nastaven do stavu "čeká na odehrání". U skupinového zápasu je nutné zápas naplánovat pro každého robota skupiny (všichni budou mít stejné ID skupiny). Mají přístup jen uživatelé s touto rolí [ADMIN, LEADER, REFEREE].

    /create

### Usage and SDK Samples

    curl -X POST \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     "https://iob04.vas-server.cz:8080/api/match/create" \
     -d ''

    import org.openapitools.client.*;
    import org.openapitools.client.auth.*;
    import org.openapitools.client.model.*;
    import org.openapitools.client.api.DefaultApi;

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

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

            // Create an instance of the API class
            DefaultApi apiInstance = new DefaultApi();
            InlineObject inlineObject = ; // InlineObject |

            try {
                inline_response_200_1 result = apiInstance.createPost(inlineObject);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#createPost");
                e.printStackTrace();
            }
        }
    }

    import org.openapitools.client.api.DefaultApi;

    public class DefaultApiExample {
        public static void main(String[] args) {
            DefaultApi apiInstance = new DefaultApi();
            InlineObject inlineObject = ; // InlineObject |

            try {
                inline_response_200_1 result = apiInstance.createPost(inlineObject);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#createPost");
                e.printStackTrace();
            }
        }
    }

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

    // Naplánuje nový zápas
    [apiInstance createPostWith:inlineObject
                  completionHandler: ^(inline_response_200_1 output, NSError* error) {
        if (output) {
            NSLog(@"%@", output);
        }
        if (error) {
            NSLog(@"Error: %@", error);
        }
    }];

    var RoboCupMsMatchApi = require('robo_cup_ms_match_api');

    // Create an instance of the API class
    var api = new RoboCupMsMatchApi.DefaultApi()
    var inlineObject = ; // {InlineObject}

    var callback = function(error, data, response) {
      if (error) {
        console.error(error);
      } else {
        console.log('API called successfully. Returned data: ' + data);
      }
    };
    api.createPost(inlineObject, callback);

    using System;
    using System.Diagnostics;
    using Org.OpenAPITools.Api;
    using Org.OpenAPITools.Client;
    using Org.OpenAPITools.Model;

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

                // Create an instance of the API class
                var apiInstance = new DefaultApi();
                var inlineObject = new InlineObject(); // InlineObject |

                try {
                    // Naplánuje nový zápas
                    inline_response_200_1 result = apiInstance.createPost(inlineObject);
                    Debug.WriteLine(result);
                } catch (Exception e) {
                    Debug.Print("Exception when calling DefaultApi.createPost: " + e.Message );
                }
            }
        }
    }

    <?php
    require_once(__DIR__ . '/vendor/autoload.php');

    // Create an instance of the API class
    $api_instance = new OpenAPITools\Client\Api\DefaultApi();
    $inlineObject = ; // InlineObject |

    try {
        $result = $api_instance->createPost($inlineObject);
        print_r($result);
    } catch (Exception $e) {
        echo 'Exception when calling DefaultApi->createPost: ', $e->getMessage(), PHP_EOL;
    }
    ?>

    use Data::Dumper;
    use WWW::OPenAPIClient::Configuration;
    use WWW::OPenAPIClient::DefaultApi;

    # Create an instance of the API class
    my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
    my $inlineObject = WWW::OPenAPIClient::Object::InlineObject->new(); # InlineObject |

    eval {
        my $result = $api_instance->createPost(inlineObject => $inlineObject);
        print Dumper($result);
    };
    if ($@) {
        warn "Exception when calling DefaultApi->createPost: $@\n";
    }

    from __future__ import print_statement
    import time
    import openapi_client
    from openapi_client.rest import ApiException
    from pprint import pprint

    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi()
    inlineObject =  # InlineObject |

    try:
        # Naplánuje nový zápas
        api_response = api_instance.create_post(inlineObject)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->createPost: %s\n" % e)

    extern crate DefaultApi;

    pub fn main() {
        let inlineObject = ; // InlineObject

        let mut context = DefaultApi::Context::default();
        let result = client.createPost(inlineObject, &context).wait();

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

## Scopes

## Parameters

Body parameters

Name | Description
--- | ---
inlineObject * |

## Responses

###

# rematchPut

Vyžádá opětovné odehrání zápasu

V případě skupinového zápasu je požadavek automaticky vyžádán i pro ostatní zápasy jednotlivých robotů skupiny. Mají přístup jen uživatelé s touto rolí [ADMIN, LEADER, REFEREE].

    /rematch

### Usage and SDK Samples

    curl -X PUT \
     -H "Accept: application/json" \
     "https://iob04.vas-server.cz:8080/api/match/rematch?id=56&score=8.14"

    import org.openapitools.client.*;
    import org.openapitools.client.auth.*;
    import org.openapitools.client.model.*;
    import org.openapitools.client.api.DefaultApi;

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

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

            // Create an instance of the API class
            DefaultApi apiInstance = new DefaultApi();
            Integer id = 56; // Integer | ID zápasu
            BigDecimal score = 8.14; // BigDecimal | Skóre zápasu

            try {
                inline_response_200_1 result = apiInstance.rematchPut(id, score);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#rematchPut");
                e.printStackTrace();
            }
        }
    }

    import org.openapitools.client.api.DefaultApi;

    public class DefaultApiExample {
        public static void main(String[] args) {
            DefaultApi apiInstance = new DefaultApi();
            Integer id = 56; // Integer | ID zápasu
            BigDecimal score = 8.14; // BigDecimal | Skóre zápasu

            try {
                inline_response_200_1 result = apiInstance.rematchPut(id, score);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#rematchPut");
                e.printStackTrace();
            }
        }
    }

    // Create an instance of the API class
    DefaultApi *apiInstance = [[DefaultApi alloc] init];
    Integer *id = 56; // ID zápasu (default to null)
    BigDecimal *score = 8.14; // Skóre zápasu (default to null)

    // Vyžádá opětovné odehrání zápasu
    [apiInstance rematchPutWith:id
        score:score
                  completionHandler: ^(inline_response_200_1 output, NSError* error) {
        if (output) {
            NSLog(@"%@", output);
        }
        if (error) {
            NSLog(@"Error: %@", error);
        }
    }];

    var RoboCupMsMatchApi = require('robo_cup_ms_match_api');

    // Create an instance of the API class
    var api = new RoboCupMsMatchApi.DefaultApi()
    var id = 56; // {Integer} ID zápasu
    var score = 8.14; // {BigDecimal} Skóre zápasu

    var callback = function(error, data, response) {
      if (error) {
        console.error(error);
      } else {
        console.log('API called successfully. Returned data: ' + data);
      }
    };
    api.rematchPut(id, score, callback);

    using System;
    using System.Diagnostics;
    using Org.OpenAPITools.Api;
    using Org.OpenAPITools.Client;
    using Org.OpenAPITools.Model;

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

                // Create an instance of the API class
                var apiInstance = new DefaultApi();
                var id = 56;  // Integer | ID zápasu (default to null)
                var score = 8.14;  // BigDecimal | Skóre zápasu (default to null)

                try {
                    // Vyžádá opětovné odehrání zápasu
                    inline_response_200_1 result = apiInstance.rematchPut(id, score);
                    Debug.WriteLine(result);
                } catch (Exception e) {
                    Debug.Print("Exception when calling DefaultApi.rematchPut: " + e.Message );
                }
            }
        }
    }

    <?php
    require_once(__DIR__ . '/vendor/autoload.php');

    // Create an instance of the API class
    $api_instance = new OpenAPITools\Client\Api\DefaultApi();
    $id = 56; // Integer | ID zápasu
    $score = 8.14; // BigDecimal | Skóre zápasu

    try {
        $result = $api_instance->rematchPut($id, $score);
        print_r($result);
    } catch (Exception $e) {
        echo 'Exception when calling DefaultApi->rematchPut: ', $e->getMessage(), PHP_EOL;
    }
    ?>

    use Data::Dumper;
    use WWW::OPenAPIClient::Configuration;
    use WWW::OPenAPIClient::DefaultApi;

    # Create an instance of the API class
    my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
    my $id = 56; # Integer | ID zápasu
    my $score = 8.14; # BigDecimal | Skóre zápasu

    eval {
        my $result = $api_instance->rematchPut(id => $id, score => $score);
        print Dumper($result);
    };
    if ($@) {
        warn "Exception when calling DefaultApi->rematchPut: $@\n";
    }

    from __future__ import print_statement
    import time
    import openapi_client
    from openapi_client.rest import ApiException
    from pprint import pprint

    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi()
    id = 56 # Integer | ID zápasu (default to null)
    score = 8.14 # BigDecimal | Skóre zápasu (default to null)

    try:
        # Vyžádá opětovné odehrání zápasu
        api_response = api_instance.rematch_put(id, score)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->rematchPut: %s\n" % e)

    extern crate DefaultApi;

    pub fn main() {
        let id = 56; // Integer
        let score = 8.14; // BigDecimal

        let mut context = DefaultApi::Context::default();
        let result = client.rematchPut(id, score, &context).wait();

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

## Scopes

## Parameters

Query parameters

Name | Description
--- | ---
id* | Integer ID zápasu Required
score* | BigDecimal Skóre zápasu Required

## Responses

###

# removeAllDelete

Odstraní všechny zápasy, které náleží do určité zápasové skupiny

Mají přístup jen uživatelé s touto rolí [ADMIN, LEADER, REFEREE].

    /removeAll

### Usage and SDK Samples

    curl -X DELETE \
     -H "Accept: application/json" \
     "https://iob04.vas-server.cz:8080/api/match/removeAll?id=56"

    import org.openapitools.client.*;
    import org.openapitools.client.auth.*;
    import org.openapitools.client.model.*;
    import org.openapitools.client.api.DefaultApi;

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

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

            // Create an instance of the API class
            DefaultApi apiInstance = new DefaultApi();
            Integer id = 56; // Integer | ID zápasové skupiny

            try {
                inline_response_200_1 result = apiInstance.removeAllDelete(id);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#removeAllDelete");
                e.printStackTrace();
            }
        }
    }

    import org.openapitools.client.api.DefaultApi;

    public class DefaultApiExample {
        public static void main(String[] args) {
            DefaultApi apiInstance = new DefaultApi();
            Integer id = 56; // Integer | ID zápasové skupiny

            try {
                inline_response_200_1 result = apiInstance.removeAllDelete(id);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#removeAllDelete");
                e.printStackTrace();
            }
        }
    }

    // Create an instance of the API class
    DefaultApi *apiInstance = [[DefaultApi alloc] init];
    Integer *id = 56; // ID zápasové skupiny (default to null)

    // Odstraní všechny zápasy, které náleží do určité zápasové skupiny
    [apiInstance removeAllDeleteWith:id
                  completionHandler: ^(inline_response_200_1 output, NSError* error) {
        if (output) {
            NSLog(@"%@", output);
        }
        if (error) {
            NSLog(@"Error: %@", error);
        }
    }];

    var RoboCupMsMatchApi = require('robo_cup_ms_match_api');

    // Create an instance of the API class
    var api = new RoboCupMsMatchApi.DefaultApi()
    var id = 56; // {Integer} ID zápasové skupiny

    var callback = function(error, data, response) {
      if (error) {
        console.error(error);
      } else {
        console.log('API called successfully. Returned data: ' + data);
      }
    };
    api.removeAllDelete(id, callback);

    using System;
    using System.Diagnostics;
    using Org.OpenAPITools.Api;
    using Org.OpenAPITools.Client;
    using Org.OpenAPITools.Model;

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

                // Create an instance of the API class
                var apiInstance = new DefaultApi();
                var id = 56;  // Integer | ID zápasové skupiny (default to null)

                try {
                    // Odstraní všechny zápasy, které náleží do určité zápasové skupiny
                    inline_response_200_1 result = apiInstance.removeAllDelete(id);
                    Debug.WriteLine(result);
                } catch (Exception e) {
                    Debug.Print("Exception when calling DefaultApi.removeAllDelete: " + e.Message );
                }
            }
        }
    }

    <?php
    require_once(__DIR__ . '/vendor/autoload.php');

    // Create an instance of the API class
    $api_instance = new OpenAPITools\Client\Api\DefaultApi();
    $id = 56; // Integer | ID zápasové skupiny

    try {
        $result = $api_instance->removeAllDelete($id);
        print_r($result);
    } catch (Exception $e) {
        echo 'Exception when calling DefaultApi->removeAllDelete: ', $e->getMessage(), PHP_EOL;
    }
    ?>

    use Data::Dumper;
    use WWW::OPenAPIClient::Configuration;
    use WWW::OPenAPIClient::DefaultApi;

    # Create an instance of the API class
    my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
    my $id = 56; # Integer | ID zápasové skupiny

    eval {
        my $result = $api_instance->removeAllDelete(id => $id);
        print Dumper($result);
    };
    if ($@) {
        warn "Exception when calling DefaultApi->removeAllDelete: $@\n";
    }

    from __future__ import print_statement
    import time
    import openapi_client
    from openapi_client.rest import ApiException
    from pprint import pprint

    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi()
    id = 56 # Integer | ID zápasové skupiny (default to null)

    try:
        # Odstraní všechny zápasy, které náleží do určité zápasové skupiny
        api_response = api_instance.remove_all_delete(id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->removeAllDelete: %s\n" % e)

    extern crate DefaultApi;

    pub fn main() {
        let id = 56; // Integer

        let mut context = DefaultApi::Context::default();
        let result = client.removeAllDelete(id, &context).wait();

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

## Scopes

## Parameters

Query parameters

Name | Description
--- | ---
id* | Integer ID zápasové skupiny Required

## Responses

###

# removeDelete

Odstraní zápas

Mají přístup jen uživatelé s touto rolí [ADMIN, LEADER, REFEREE].

    /remove

### Usage and SDK Samples

    curl -X DELETE \
     -H "Accept: application/json" \
     "https://iob04.vas-server.cz:8080/api/match/remove?id=56"

    import org.openapitools.client.*;
    import org.openapitools.client.auth.*;
    import org.openapitools.client.model.*;
    import org.openapitools.client.api.DefaultApi;

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

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

            // Create an instance of the API class
            DefaultApi apiInstance = new DefaultApi();
            Integer id = 56; // Integer | ID zápasu

            try {
                inline_response_200_1 result = apiInstance.removeDelete(id);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#removeDelete");
                e.printStackTrace();
            }
        }
    }

    import org.openapitools.client.api.DefaultApi;

    public class DefaultApiExample {
        public static void main(String[] args) {
            DefaultApi apiInstance = new DefaultApi();
            Integer id = 56; // Integer | ID zápasu

            try {
                inline_response_200_1 result = apiInstance.removeDelete(id);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#removeDelete");
                e.printStackTrace();
            }
        }
    }

    // Create an instance of the API class
    DefaultApi *apiInstance = [[DefaultApi alloc] init];
    Integer *id = 56; // ID zápasu (default to null)

    // Odstraní zápas
    [apiInstance removeDeleteWith:id
                  completionHandler: ^(inline_response_200_1 output, NSError* error) {
        if (output) {
            NSLog(@"%@", output);
        }
        if (error) {
            NSLog(@"Error: %@", error);
        }
    }];

    var RoboCupMsMatchApi = require('robo_cup_ms_match_api');

    // Create an instance of the API class
    var api = new RoboCupMsMatchApi.DefaultApi()
    var id = 56; // {Integer} ID zápasu

    var callback = function(error, data, response) {
      if (error) {
        console.error(error);
      } else {
        console.log('API called successfully. Returned data: ' + data);
      }
    };
    api.removeDelete(id, callback);

    using System;
    using System.Diagnostics;
    using Org.OpenAPITools.Api;
    using Org.OpenAPITools.Client;
    using Org.OpenAPITools.Model;

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

                // Create an instance of the API class
                var apiInstance = new DefaultApi();
                var id = 56;  // Integer | ID zápasu (default to null)

                try {
                    // Odstraní zápas
                    inline_response_200_1 result = apiInstance.removeDelete(id);
                    Debug.WriteLine(result);
                } catch (Exception e) {
                    Debug.Print("Exception when calling DefaultApi.removeDelete: " + e.Message );
                }
            }
        }
    }

    <?php
    require_once(__DIR__ . '/vendor/autoload.php');

    // Create an instance of the API class
    $api_instance = new OpenAPITools\Client\Api\DefaultApi();
    $id = 56; // Integer | ID zápasu

    try {
        $result = $api_instance->removeDelete($id);
        print_r($result);
    } catch (Exception $e) {
        echo 'Exception when calling DefaultApi->removeDelete: ', $e->getMessage(), PHP_EOL;
    }
    ?>

    use Data::Dumper;
    use WWW::OPenAPIClient::Configuration;
    use WWW::OPenAPIClient::DefaultApi;

    # Create an instance of the API class
    my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
    my $id = 56; # Integer | ID zápasu

    eval {
        my $result = $api_instance->removeDelete(id => $id);
        print Dumper($result);
    };
    if ($@) {
        warn "Exception when calling DefaultApi->removeDelete: $@\n";
    }

    from __future__ import print_statement
    import time
    import openapi_client
    from openapi_client.rest import ApiException
    from pprint import pprint

    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi()
    id = 56 # Integer | ID zápasu (default to null)

    try:
        # Odstraní zápas
        api_response = api_instance.remove_delete(id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->removeDelete: %s\n" % e)

    extern crate DefaultApi;

    pub fn main() {
        let id = 56; // Integer

        let mut context = DefaultApi::Context::default();
        let result = client.removeDelete(id, &context).wait();

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

## Scopes

## Parameters

Query parameters

Name | Description
--- | ---
id* | Integer ID zápasu Required

## Responses

###

# writeScorePut

Zapíše výsledné skóre zápasu

Zapíše skóre zápasu a automaticky označí zápas jako odehraný. Skoré je typu "float" a může reprezentovat více typů hodnot. Pokud jde o robosumo, skóre je reprezentováno jako bod za vítězství v zápase. Pokud jde o sledovače čáry, skóre je reprezentováno jako čas, za který robot ujel trasu.

    /writeScore

### Usage and SDK Samples

    curl -X PUT \
     -H "Accept: application/json" \
     "https://iob04.vas-server.cz:8080/api/match/writeScore?id=56&score=8.14"

    import org.openapitools.client.*;
    import org.openapitools.client.auth.*;
    import org.openapitools.client.model.*;
    import org.openapitools.client.api.DefaultApi;

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

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

            // Create an instance of the API class
            DefaultApi apiInstance = new DefaultApi();
            Integer id = 56; // Integer | ID zápasu
            BigDecimal score = 8.14; // BigDecimal | Skóre zápasu

            try {
                inline_response_200_1 result = apiInstance.writeScorePut(id, score);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#writeScorePut");
                e.printStackTrace();
            }
        }
    }

    import org.openapitools.client.api.DefaultApi;

    public class DefaultApiExample {
        public static void main(String[] args) {
            DefaultApi apiInstance = new DefaultApi();
            Integer id = 56; // Integer | ID zápasu
            BigDecimal score = 8.14; // BigDecimal | Skóre zápasu

            try {
                inline_response_200_1 result = apiInstance.writeScorePut(id, score);
                System.out.println(result);
            } catch (ApiException e) {
                System.err.println("Exception when calling DefaultApi#writeScorePut");
                e.printStackTrace();
            }
        }
    }

    // Create an instance of the API class
    DefaultApi *apiInstance = [[DefaultApi alloc] init];
    Integer *id = 56; // ID zápasu (default to null)
    BigDecimal *score = 8.14; // Skóre zápasu (default to null)

    // Zapíše výsledné skóre zápasu
    [apiInstance writeScorePutWith:id
        score:score
                  completionHandler: ^(inline_response_200_1 output, NSError* error) {
        if (output) {
            NSLog(@"%@", output);
        }
        if (error) {
            NSLog(@"Error: %@", error);
        }
    }];

    var RoboCupMsMatchApi = require('robo_cup_ms_match_api');

    // Create an instance of the API class
    var api = new RoboCupMsMatchApi.DefaultApi()
    var id = 56; // {Integer} ID zápasu
    var score = 8.14; // {BigDecimal} Skóre zápasu

    var callback = function(error, data, response) {
      if (error) {
        console.error(error);
      } else {
        console.log('API called successfully. Returned data: ' + data);
      }
    };
    api.writeScorePut(id, score, callback);

    using System;
    using System.Diagnostics;
    using Org.OpenAPITools.Api;
    using Org.OpenAPITools.Client;
    using Org.OpenAPITools.Model;

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

                // Create an instance of the API class
                var apiInstance = new DefaultApi();
                var id = 56;  // Integer | ID zápasu (default to null)
                var score = 8.14;  // BigDecimal | Skóre zápasu (default to null)

                try {
                    // Zapíše výsledné skóre zápasu
                    inline_response_200_1 result = apiInstance.writeScorePut(id, score);
                    Debug.WriteLine(result);
                } catch (Exception e) {
                    Debug.Print("Exception when calling DefaultApi.writeScorePut: " + e.Message );
                }
            }
        }
    }

    <?php
    require_once(__DIR__ . '/vendor/autoload.php');

    // Create an instance of the API class
    $api_instance = new OpenAPITools\Client\Api\DefaultApi();
    $id = 56; // Integer | ID zápasu
    $score = 8.14; // BigDecimal | Skóre zápasu

    try {
        $result = $api_instance->writeScorePut($id, $score);
        print_r($result);
    } catch (Exception $e) {
        echo 'Exception when calling DefaultApi->writeScorePut: ', $e->getMessage(), PHP_EOL;
    }
    ?>

    use Data::Dumper;
    use WWW::OPenAPIClient::Configuration;
    use WWW::OPenAPIClient::DefaultApi;

    # Create an instance of the API class
    my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
    my $id = 56; # Integer | ID zápasu
    my $score = 8.14; # BigDecimal | Skóre zápasu

    eval {
        my $result = $api_instance->writeScorePut(id => $id, score => $score);
        print Dumper($result);
    };
    if ($@) {
        warn "Exception when calling DefaultApi->writeScorePut: $@\n";
    }

    from __future__ import print_statement
    import time
    import openapi_client
    from openapi_client.rest import ApiException
    from pprint import pprint

    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi()
    id = 56 # Integer | ID zápasu (default to null)
    score = 8.14 # BigDecimal | Skóre zápasu (default to null)

    try:
        # Zapíše výsledné skóre zápasu
        api_response = api_instance.write_score_put(id, score)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->writeScorePut: %s\n" % e)

    extern crate DefaultApi;

    pub fn main() {
        let id = 56; // Integer
        let score = 8.14; // BigDecimal

        let mut context = DefaultApi::Context::default();
        let result = client.writeScorePut(id, score, &context).wait();

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

## Scopes

## Parameters

Query parameters

Name | Description
--- | ---
id* | Integer ID zápasu Required
score* | BigDecimal Skóre zápasu Required

## Responses

###