Movie API

Default

actorsDelete

Delete an actor from Kung Fury or Kung Fury 2


/actors

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://localhost:8080/actors"
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 {
            apiInstance.actorsDelete();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance actorsDeleteWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

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

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

            var apiInstance = new DefaultApi();

            try
            {
                apiInstance.actorsDelete();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.actorsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval { 
    $api_instance->actorsDelete();
};
if ($@) {
    warn "Exception when calling DefaultApi->actorsDelete: $@\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_instance.actors_delete()
except ApiException as e:
    print("Exception when calling DefaultApi->actorsDelete: %s\n" % e)

Parameters

Responses

Status: 400 - Invalid request


actorsGet

Returns a list of actors from Kung Fury & Kung Fury 2


/actors

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://localhost:8080/actors"
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 {
            array[actor] result = apiInstance.actorsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance actorsGetWithCompletionHandler: 
              ^(array[actor] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

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

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

            var apiInstance = new DefaultApi();

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

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

try {
    $result = $api_instance->actorsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->actorsGet: ', $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->actorsGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->actorsGet: $@\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_response = api_instance.actors_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->actorsGet: %s\n" % e)

Parameters

Responses

Status: 200 - Successfully returned a list of actors

Status: 400 - Invalid request


actorsIdDelete

Delete an actor from actors


/actors/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://localhost:8080/actors/{id}"
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();
        uuid id = ; // uuid | ID of the actor to delete
        try {
            apiInstance.actorsIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        uuid id = ; // uuid | ID of the actor to delete
        try {
            apiInstance.actorsIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsIdDelete");
            e.printStackTrace();
        }
    }
}
uuid *id = ; // ID of the actor to delete

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

[apiInstance actorsIdDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

var api = new MovieApi.DefaultApi()
var id = ; // {{uuid}} ID of the actor to delete

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

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

            var apiInstance = new DefaultApi();
            var id = new uuid(); // uuid | ID of the actor to delete

            try
            {
                apiInstance.actorsIdDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.actorsIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = ; // uuid | ID of the actor to delete

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = ; # uuid | ID of the actor to delete

eval { 
    $api_instance->actorsIdDelete(id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->actorsIdDelete: $@\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()
id =  # uuid | ID of the actor to delete

try: 
    api_instance.actors_id_delete(id)
except ApiException as e:
    print("Exception when calling DefaultApi->actorsIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
uuid
ID of the actor to delete
Required

Responses

Status: 400 - Invalid request


actorsIdGet

Returns one of Kung Fury actors by its id


/actors/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://localhost:8080/actors/{id}"
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();
        uuid id = ; // uuid | ID of the actor to get
        try {
            actor result = apiInstance.actorsIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        uuid id = ; // uuid | ID of the actor to get
        try {
            actor result = apiInstance.actorsIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsIdGet");
            e.printStackTrace();
        }
    }
}
uuid *id = ; // ID of the actor to get

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

[apiInstance actorsIdGetWith:id
              completionHandler: ^(actor output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

var api = new MovieApi.DefaultApi()
var id = ; // {{uuid}} ID of the actor to get

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

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

            var apiInstance = new DefaultApi();
            var id = new uuid(); // uuid | ID of the actor to get

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = ; // uuid | ID of the actor to get

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = ; # uuid | ID of the actor to get

eval { 
    my $result = $api_instance->actorsIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->actorsIdGet: $@\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()
id =  # uuid | ID of the actor to get

try: 
    api_response = api_instance.actors_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->actorsIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
uuid
ID of the actor to get
Required

Responses

Status: 200 - Successfully returned an actor

Status: 400 - Invalid request


actorsIdMoviesMovieIdDelete

Remove an actor from a Kung Fury movie


/actors/{id}/movies/{movieId}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://localhost:8080/actors/{id}/movies/{movieId}"
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();
        uuid movieId = ; // uuid | ID of the movie to add
        uuid id = ; // uuid | ID of the actor to update
        try {
            uuid result = apiInstance.actorsIdMoviesMovieIdDelete(movieId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsIdMoviesMovieIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        uuid movieId = ; // uuid | ID of the movie to add
        uuid id = ; // uuid | ID of the actor to update
        try {
            uuid result = apiInstance.actorsIdMoviesMovieIdDelete(movieId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsIdMoviesMovieIdDelete");
            e.printStackTrace();
        }
    }
}
uuid *movieId = ; // ID of the movie to add
uuid *id = ; // ID of the actor to update

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

[apiInstance actorsIdMoviesMovieIdDeleteWith:movieId
    id:id
              completionHandler: ^(uuid output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

var api = new MovieApi.DefaultApi()
var movieId = ; // {{uuid}} ID of the movie to add
var id = ; // {{uuid}} ID of the actor to update

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

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

            var apiInstance = new DefaultApi();
            var movieId = new uuid(); // uuid | ID of the movie to add
            var id = new uuid(); // uuid | ID of the actor to update

            try
            {
                uuid result = apiInstance.actorsIdMoviesMovieIdDelete(movieId, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.actorsIdMoviesMovieIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$movieId = ; // uuid | ID of the movie to add
$id = ; // uuid | ID of the actor to update

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $movieId = ; # uuid | ID of the movie to add
my $id = ; # uuid | ID of the actor to update

eval { 
    my $result = $api_instance->actorsIdMoviesMovieIdDelete(movieId => $movieId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->actorsIdMoviesMovieIdDelete: $@\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()
movieId =  # uuid | ID of the movie to add
id =  # uuid | ID of the actor to update

try: 
    api_response = api_instance.actors_id_movies_movie_id_delete(movieId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->actorsIdMoviesMovieIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
movieId*
uuid
ID of the movie to add
Required
id*
uuid
ID of the actor to update
Required

Responses

Status: 200 - Successfully deleted the movie from the actor's movie list

Status: 400 - Invalid request


actorsIdMoviesMovieIdPut

Add a movie to an actor


/actors/{id}/movies/{movieId}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
"https://localhost:8080/actors/{id}/movies/{movieId}"
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();
        uuid movieId = ; // uuid | ID of the movie to add
        uuid id = ; // uuid | ID of the actor to update
        try {
            actor result = apiInstance.actorsIdMoviesMovieIdPut(movieId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsIdMoviesMovieIdPut");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        uuid movieId = ; // uuid | ID of the movie to add
        uuid id = ; // uuid | ID of the actor to update
        try {
            actor result = apiInstance.actorsIdMoviesMovieIdPut(movieId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsIdMoviesMovieIdPut");
            e.printStackTrace();
        }
    }
}
uuid *movieId = ; // ID of the movie to add
uuid *id = ; // ID of the actor to update

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

[apiInstance actorsIdMoviesMovieIdPutWith:movieId
    id:id
              completionHandler: ^(actor output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

var api = new MovieApi.DefaultApi()
var movieId = ; // {{uuid}} ID of the movie to add
var id = ; // {{uuid}} ID of the actor to update

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

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

            var apiInstance = new DefaultApi();
            var movieId = new uuid(); // uuid | ID of the movie to add
            var id = new uuid(); // uuid | ID of the actor to update

            try
            {
                actor result = apiInstance.actorsIdMoviesMovieIdPut(movieId, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.actorsIdMoviesMovieIdPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$movieId = ; // uuid | ID of the movie to add
$id = ; // uuid | ID of the actor to update

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $movieId = ; # uuid | ID of the movie to add
my $id = ; # uuid | ID of the actor to update

eval { 
    my $result = $api_instance->actorsIdMoviesMovieIdPut(movieId => $movieId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->actorsIdMoviesMovieIdPut: $@\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()
movieId =  # uuid | ID of the movie to add
id =  # uuid | ID of the actor to update

try: 
    api_response = api_instance.actors_id_movies_movie_id_put(movieId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->actorsIdMoviesMovieIdPut: %s\n" % e)

Parameters

Path parameters
Name Description
movieId*
uuid
ID of the movie to add
Required
id*
uuid
ID of the actor to update
Required

Responses

Status: 202 - The movie has been succesfully added to the movies of the actor

Status: 400 - Invalid request


actorsPost

Create an actor from Kung Fury or Kung Fury 2


/actors

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"https://localhost:8080/actors"
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 {
            apiInstance.actorsPost();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#actorsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance actorsPostWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

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

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

            var apiInstance = new DefaultApi();

            try
            {
                apiInstance.actorsPost();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.actorsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval { 
    $api_instance->actorsPost();
};
if ($@) {
    warn "Exception when calling DefaultApi->actorsPost: $@\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_instance.actors_post()
except ApiException as e:
    print("Exception when calling DefaultApi->actorsPost: %s\n" % e)

Parameters

Responses

Status: 400 - Invalid request


moviesGet

Returns a list of Kung Fury movies


/movies

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://localhost:8080/movies"
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 {
            array[movie] result = apiInstance.moviesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance moviesGetWithCompletionHandler: 
              ^(array[movie] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

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

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

            var apiInstance = new DefaultApi();

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

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

try {
    $result = $api_instance->moviesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->moviesGet: ', $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->moviesGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->moviesGet: $@\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_response = api_instance.movies_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->moviesGet: %s\n" % e)

Parameters

Responses

Status: 200 - Successfully returned a list of movies

Status: 400 - Invalid request


moviesIdActorsActorIdDelete

Remove an actor from a Kung Fury movie


/movies/{id}/actors/{actorId}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://localhost:8080/movies/{id}/actors/{actorId}"
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();
        uuid id = ; // uuid | ID of the movie to update
        uuid actorId = ; // uuid | ID of the actor to delete
        try {
            uuid result = apiInstance.moviesIdActorsActorIdDelete(id, actorId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesIdActorsActorIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        uuid id = ; // uuid | ID of the movie to update
        uuid actorId = ; // uuid | ID of the actor to delete
        try {
            uuid result = apiInstance.moviesIdActorsActorIdDelete(id, actorId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesIdActorsActorIdDelete");
            e.printStackTrace();
        }
    }
}
uuid *id = ; // ID of the movie to update
uuid *actorId = ; // ID of the actor to delete

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

[apiInstance moviesIdActorsActorIdDeleteWith:id
    actorId:actorId
              completionHandler: ^(uuid output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

var api = new MovieApi.DefaultApi()
var id = ; // {{uuid}} ID of the movie to update
var actorId = ; // {{uuid}} ID of the actor to delete

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

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

            var apiInstance = new DefaultApi();
            var id = new uuid(); // uuid | ID of the movie to update
            var actorId = new uuid(); // uuid | ID of the actor to delete

            try
            {
                uuid result = apiInstance.moviesIdActorsActorIdDelete(id, actorId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.moviesIdActorsActorIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = ; // uuid | ID of the movie to update
$actorId = ; // uuid | ID of the actor to delete

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = ; # uuid | ID of the movie to update
my $actorId = ; # uuid | ID of the actor to delete

eval { 
    my $result = $api_instance->moviesIdActorsActorIdDelete(id => $id, actorId => $actorId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->moviesIdActorsActorIdDelete: $@\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()
id =  # uuid | ID of the movie to update
actorId =  # uuid | ID of the actor to delete

try: 
    api_response = api_instance.movies_id_actors_actor_id_delete(id, actorId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->moviesIdActorsActorIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
uuid
ID of the movie to update
Required
actorId*
uuid
ID of the actor to delete
Required

Responses

Status: 200 - Successfully deleted the actor from the movie

Status: 400 - Invalid request


moviesIdActorsActorIdPut

Add an actor to a movie


/movies/{id}/actors/{actorId}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
"https://localhost:8080/movies/{id}/actors/{actorId}"
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();
        uuid id = ; // uuid | ID of the movie to update
        uuid actorId = ; // uuid | ID of the movie to add
        try {
            actor result = apiInstance.moviesIdActorsActorIdPut(id, actorId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesIdActorsActorIdPut");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        uuid id = ; // uuid | ID of the movie to update
        uuid actorId = ; // uuid | ID of the movie to add
        try {
            actor result = apiInstance.moviesIdActorsActorIdPut(id, actorId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesIdActorsActorIdPut");
            e.printStackTrace();
        }
    }
}
uuid *id = ; // ID of the movie to update
uuid *actorId = ; // ID of the movie to add

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

[apiInstance moviesIdActorsActorIdPutWith:id
    actorId:actorId
              completionHandler: ^(actor output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

var api = new MovieApi.DefaultApi()
var id = ; // {{uuid}} ID of the movie to update
var actorId = ; // {{uuid}} ID of the movie to add

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

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

            var apiInstance = new DefaultApi();
            var id = new uuid(); // uuid | ID of the movie to update
            var actorId = new uuid(); // uuid | ID of the movie to add

            try
            {
                actor result = apiInstance.moviesIdActorsActorIdPut(id, actorId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.moviesIdActorsActorIdPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = ; // uuid | ID of the movie to update
$actorId = ; // uuid | ID of the movie to add

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = ; # uuid | ID of the movie to update
my $actorId = ; # uuid | ID of the movie to add

eval { 
    my $result = $api_instance->moviesIdActorsActorIdPut(id => $id, actorId => $actorId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->moviesIdActorsActorIdPut: $@\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()
id =  # uuid | ID of the movie to update
actorId =  # uuid | ID of the movie to add

try: 
    api_response = api_instance.movies_id_actors_actor_id_put(id, actorId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->moviesIdActorsActorIdPut: %s\n" % e)

Parameters

Path parameters
Name Description
id*
uuid
ID of the movie to update
Required
actorId*
uuid
ID of the movie to add
Required

Responses

Status: 202 - The actor has been succesfully added to movie

Status: 400 - Invalid request


moviesIdDelete

Delete Kung Fury or Kung Fury 2 from movies


/movies/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"https://localhost:8080/movies/{id}"
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();
        uuid id = ; // uuid | ID of the movie to delete
        try {
            uuid result = apiInstance.moviesIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        uuid id = ; // uuid | ID of the movie to delete
        try {
            uuid result = apiInstance.moviesIdDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesIdDelete");
            e.printStackTrace();
        }
    }
}
uuid *id = ; // ID of the movie to delete

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

[apiInstance moviesIdDeleteWith:id
              completionHandler: ^(uuid output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

var api = new MovieApi.DefaultApi()
var id = ; // {{uuid}} ID of the movie to delete

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

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

            var apiInstance = new DefaultApi();
            var id = new uuid(); // uuid | ID of the movie to delete

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = ; // uuid | ID of the movie to delete

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = ; # uuid | ID of the movie to delete

eval { 
    my $result = $api_instance->moviesIdDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->moviesIdDelete: $@\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()
id =  # uuid | ID of the movie to delete

try: 
    api_response = api_instance.movies_id_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->moviesIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
uuid
ID of the movie to delete
Required

Responses

Status: 200 - Successfully deleted the movie

Status: 400 - Invalid request


moviesIdGet

Returns one of Kung Fury movies by its id


/movies/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://localhost:8080/movies/{id}"
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();
        uuid id = ; // uuid | ID of the movie to get
        try {
            movie result = apiInstance.moviesIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        uuid id = ; // uuid | ID of the movie to get
        try {
            movie result = apiInstance.moviesIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesIdGet");
            e.printStackTrace();
        }
    }
}
uuid *id = ; // ID of the movie to get

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

[apiInstance moviesIdGetWith:id
              completionHandler: ^(movie output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

var api = new MovieApi.DefaultApi()
var id = ; // {{uuid}} ID of the movie to get

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

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

            var apiInstance = new DefaultApi();
            var id = new uuid(); // uuid | ID of the movie to get

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = ; // uuid | ID of the movie to get

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = ; # uuid | ID of the movie to get

eval { 
    my $result = $api_instance->moviesIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->moviesIdGet: $@\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()
id =  # uuid | ID of the movie to get

try: 
    api_response = api_instance.movies_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->moviesIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
uuid
ID of the movie to get
Required

Responses

Status: 200 - Successfully returned the movie

Status: 400 - Invalid request


moviesPost

Add Kung Fury or Kung Fury 2 to movies


/movies

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://localhost:8080/movies"
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();
        Movie body = ; // Movie | Movie to add
        try {
            movie result = apiInstance.moviesPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Movie body = ; // Movie | Movie to add
        try {
            movie result = apiInstance.moviesPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moviesPost");
            e.printStackTrace();
        }
    }
}
Movie *body = ; // Movie to add

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

[apiInstance moviesPostWith:body
              completionHandler: ^(movie output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MovieApi = require('movie_api');

var api = new MovieApi.DefaultApi()
var body = ; // {{Movie}} Movie to add

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

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

            var apiInstance = new DefaultApi();
            var body = new Movie(); // Movie | Movie to add

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // Movie | Movie to add

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Movie->new(); # Movie | Movie to add

eval { 
    my $result = $api_instance->moviesPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->moviesPost: $@\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()
body =  # Movie | Movie to add

try: 
    api_response = api_instance.movies_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->moviesPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Successfully created the movie

Status: 400 - Invalid request