An API of Ice And Fire

Books

allBooks

List all books


/books

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/game-of-thrones/api/books?name=&fromReleaseDate=&toReleaseDate="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BooksApi;

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

public class BooksApiExample {

    public static void main(String[] args) {
        
        BooksApi apiInstance = new BooksApi();
        String apiecoKey = apiecoKey_example; // String | 
        String name = name_example; // String | Books with the given name are included in the response
        date fromReleaseDate = 2013-10-20; // date | Books that were released after, or on, the given date are included in the response.
        date toReleaseDate = 2013-10-20; // date | Books that were released before, or on, the given date are included in the response.
        try {
            array[inline_response_200_1] result = apiInstance.allBooks(apiecoKey, name, fromReleaseDate, toReleaseDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#allBooks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BooksApi;

public class BooksApiExample {

    public static void main(String[] args) {
        BooksApi apiInstance = new BooksApi();
        String apiecoKey = apiecoKey_example; // String | 
        String name = name_example; // String | Books with the given name are included in the response
        date fromReleaseDate = 2013-10-20; // date | Books that were released after, or on, the given date are included in the response.
        date toReleaseDate = 2013-10-20; // date | Books that were released before, or on, the given date are included in the response.
        try {
            array[inline_response_200_1] result = apiInstance.allBooks(apiecoKey, name, fromReleaseDate, toReleaseDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#allBooks");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *name = name_example; // Books with the given name are included in the response (optional)
date *fromReleaseDate = 2013-10-20; // Books that were released after, or on, the given date are included in the response. (optional)
date *toReleaseDate = 2013-10-20; // Books that were released before, or on, the given date are included in the response. (optional)

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

// List all books
[apiInstance allBooksWith:apiecoKey
    name:name
    fromReleaseDate:fromReleaseDate
    toReleaseDate:toReleaseDate
              completionHandler: ^(array[inline_response_200_1] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnApiOfIceAndFire = require('an_api_of_ice_and_fire');

var api = new AnApiOfIceAndFire.BooksApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'name': name_example, // {String} Books with the given name are included in the response
  'fromReleaseDate': 2013-10-20, // {date} Books that were released after, or on, the given date are included in the response.
  'toReleaseDate': 2013-10-20 // {date} Books that were released before, or on, the given date are included in the response.
};

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

namespace Example
{
    public class allBooksExample
    {
        public void main()
        {
            
            var apiInstance = new BooksApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var name = name_example;  // String | Books with the given name are included in the response (optional) 
            var fromReleaseDate = 2013-10-20;  // date | Books that were released after, or on, the given date are included in the response. (optional) 
            var toReleaseDate = 2013-10-20;  // date | Books that were released before, or on, the given date are included in the response. (optional) 

            try
            {
                // List all books
                array[inline_response_200_1] result = apiInstance.allBooks(apiecoKey, name, fromReleaseDate, toReleaseDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BooksApi.allBooks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BooksApi();
$apiecoKey = apiecoKey_example; // String | 
$name = name_example; // String | Books with the given name are included in the response
$fromReleaseDate = 2013-10-20; // date | Books that were released after, or on, the given date are included in the response.
$toReleaseDate = 2013-10-20; // date | Books that were released before, or on, the given date are included in the response.

try {
    $result = $api_instance->allBooks($apiecoKey, $name, $fromReleaseDate, $toReleaseDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BooksApi->allBooks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BooksApi;

my $api_instance = WWW::SwaggerClient::BooksApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $name = name_example; # String | Books with the given name are included in the response
my $fromReleaseDate = 2013-10-20; # date | Books that were released after, or on, the given date are included in the response.
my $toReleaseDate = 2013-10-20; # date | Books that were released before, or on, the given date are included in the response.

eval { 
    my $result = $api_instance->allBooks(apiecoKey => $apiecoKey, name => $name, fromReleaseDate => $fromReleaseDate, toReleaseDate => $toReleaseDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BooksApi->allBooks: $@\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.BooksApi()
apiecoKey = apiecoKey_example # String | 
name = name_example # String | Books with the given name are included in the response (optional)
fromReleaseDate = 2013-10-20 # date | Books that were released after, or on, the given date are included in the response. (optional)
toReleaseDate = 2013-10-20 # date | Books that were released before, or on, the given date are included in the response. (optional)

try: 
    # List all books
    api_response = api_instance.all_books(apiecoKey, name=name, fromReleaseDate=fromReleaseDate, toReleaseDate=toReleaseDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BooksApi->allBooks: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
name
String
Books with the given name are included in the response
fromReleaseDate
date (date)
Books that were released after, or on, the given date are included in the response.
toReleaseDate
date (date)
Books that were released before, or on, the given date are included in the response.

Responses

Status: 200 - Successful


singleBooks

Get specific book


/books/{bookid}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/game-of-thrones/api/books/{bookid}?name=&fromReleaseDate=&toReleaseDate="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BooksApi;

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

public class BooksApiExample {

    public static void main(String[] args) {
        
        BooksApi apiInstance = new BooksApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal bookid = 8.14; // BigDecimal | 
        String name = name_example; // String | Books with the given name are included in the response
        date fromReleaseDate = 2013-10-20; // date | Books that were released after, or on, the given date are included in the response.
        date toReleaseDate = 2013-10-20; // date | Books that were released before, or on, the given date are included in the response.
        try {
            inline_response_200_1 result = apiInstance.singleBooks(apiecoKey, bookid, name, fromReleaseDate, toReleaseDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#singleBooks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BooksApi;

public class BooksApiExample {

    public static void main(String[] args) {
        BooksApi apiInstance = new BooksApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal bookid = 8.14; // BigDecimal | 
        String name = name_example; // String | Books with the given name are included in the response
        date fromReleaseDate = 2013-10-20; // date | Books that were released after, or on, the given date are included in the response.
        date toReleaseDate = 2013-10-20; // date | Books that were released before, or on, the given date are included in the response.
        try {
            inline_response_200_1 result = apiInstance.singleBooks(apiecoKey, bookid, name, fromReleaseDate, toReleaseDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#singleBooks");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *bookid = 8.14; // 
String *name = name_example; // Books with the given name are included in the response (optional)
date *fromReleaseDate = 2013-10-20; // Books that were released after, or on, the given date are included in the response. (optional)
date *toReleaseDate = 2013-10-20; // Books that were released before, or on, the given date are included in the response. (optional)

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

// Get specific book
[apiInstance singleBooksWith:apiecoKey
    bookid:bookid
    name:name
    fromReleaseDate:fromReleaseDate
    toReleaseDate:toReleaseDate
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnApiOfIceAndFire = require('an_api_of_ice_and_fire');

var api = new AnApiOfIceAndFire.BooksApi()

var apiecoKey = apiecoKey_example; // {String} 

var bookid = 8.14; // {BigDecimal} 

var opts = { 
  'name': name_example, // {String} Books with the given name are included in the response
  'fromReleaseDate': 2013-10-20, // {date} Books that were released after, or on, the given date are included in the response.
  'toReleaseDate': 2013-10-20 // {date} Books that were released before, or on, the given date are included in the response.
};

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

namespace Example
{
    public class singleBooksExample
    {
        public void main()
        {
            
            var apiInstance = new BooksApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var bookid = 8.14;  // BigDecimal | 
            var name = name_example;  // String | Books with the given name are included in the response (optional) 
            var fromReleaseDate = 2013-10-20;  // date | Books that were released after, or on, the given date are included in the response. (optional) 
            var toReleaseDate = 2013-10-20;  // date | Books that were released before, or on, the given date are included in the response. (optional) 

            try
            {
                // Get specific book
                inline_response_200_1 result = apiInstance.singleBooks(apiecoKey, bookid, name, fromReleaseDate, toReleaseDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BooksApi.singleBooks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BooksApi();
$apiecoKey = apiecoKey_example; // String | 
$bookid = 8.14; // BigDecimal | 
$name = name_example; // String | Books with the given name are included in the response
$fromReleaseDate = 2013-10-20; // date | Books that were released after, or on, the given date are included in the response.
$toReleaseDate = 2013-10-20; // date | Books that were released before, or on, the given date are included in the response.

try {
    $result = $api_instance->singleBooks($apiecoKey, $bookid, $name, $fromReleaseDate, $toReleaseDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BooksApi->singleBooks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BooksApi;

my $api_instance = WWW::SwaggerClient::BooksApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $bookid = 8.14; # BigDecimal | 
my $name = name_example; # String | Books with the given name are included in the response
my $fromReleaseDate = 2013-10-20; # date | Books that were released after, or on, the given date are included in the response.
my $toReleaseDate = 2013-10-20; # date | Books that were released before, or on, the given date are included in the response.

eval { 
    my $result = $api_instance->singleBooks(apiecoKey => $apiecoKey, bookid => $bookid, name => $name, fromReleaseDate => $fromReleaseDate, toReleaseDate => $toReleaseDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BooksApi->singleBooks: $@\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.BooksApi()
apiecoKey = apiecoKey_example # String | 
bookid = 8.14 # BigDecimal | 
name = name_example # String | Books with the given name are included in the response (optional)
fromReleaseDate = 2013-10-20 # date | Books that were released after, or on, the given date are included in the response. (optional)
toReleaseDate = 2013-10-20 # date | Books that were released before, or on, the given date are included in the response. (optional)

try: 
    # Get specific book
    api_response = api_instance.single_books(apiecoKey, bookid, name=name, fromReleaseDate=fromReleaseDate, toReleaseDate=toReleaseDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BooksApi->singleBooks: %s\n" % e)

Parameters

Path parameters
Name Description
bookid*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
name
String
Books with the given name are included in the response
fromReleaseDate
date (date)
Books that were released after, or on, the given date are included in the response.
toReleaseDate
date (date)
Books that were released before, or on, the given date are included in the response.

Responses

Status: 200 - Successful


Characters

allCharacters

List all characterss

A Character is an individual within the Ice And Fire universe.


/characters

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/game-of-thrones/api/characters?name=&gender=&culture=&born=&died=&isAlive="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CharactersApi;

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

public class CharactersApiExample {

    public static void main(String[] args) {
        
        CharactersApi apiInstance = new CharactersApi();
        String apiecoKey = apiecoKey_example; // String | 
        String name = name_example; // String | Characters with the given name are included in the response.
        String gender = gender_example; // String | Characters with the given gender are included in the response.
        String culture = culture_example; // String | Characters with the given culture are included in the response.
        String born = born_example; // String | Characters that were born this given year are included in the response.
        date died = 2013-10-20; // date | Characters that died this given year are included in the response.
        Boolean isAlive = true; // Boolean | Characters that are alive or dead (depending on the value) are included in the response.
        try {
            array[inline_response_200_2] result = apiInstance.allCharacters(apiecoKey, name, gender, culture, born, died, isAlive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CharactersApi#allCharacters");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CharactersApi;

public class CharactersApiExample {

    public static void main(String[] args) {
        CharactersApi apiInstance = new CharactersApi();
        String apiecoKey = apiecoKey_example; // String | 
        String name = name_example; // String | Characters with the given name are included in the response.
        String gender = gender_example; // String | Characters with the given gender are included in the response.
        String culture = culture_example; // String | Characters with the given culture are included in the response.
        String born = born_example; // String | Characters that were born this given year are included in the response.
        date died = 2013-10-20; // date | Characters that died this given year are included in the response.
        Boolean isAlive = true; // Boolean | Characters that are alive or dead (depending on the value) are included in the response.
        try {
            array[inline_response_200_2] result = apiInstance.allCharacters(apiecoKey, name, gender, culture, born, died, isAlive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CharactersApi#allCharacters");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *name = name_example; // Characters with the given name are included in the response. (optional)
String *gender = gender_example; // Characters with the given gender are included in the response. (optional)
String *culture = culture_example; // Characters with the given culture are included in the response. (optional)
String *born = born_example; // Characters that were born this given year are included in the response. (optional)
date *died = 2013-10-20; // Characters that died this given year are included in the response. (optional)
Boolean *isAlive = true; // Characters that are alive or dead (depending on the value) are included in the response. (optional)

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

// List all characterss
[apiInstance allCharactersWith:apiecoKey
    name:name
    gender:gender
    culture:culture
    born:born
    died:died
    isAlive:isAlive
              completionHandler: ^(array[inline_response_200_2] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnApiOfIceAndFire = require('an_api_of_ice_and_fire');

var api = new AnApiOfIceAndFire.CharactersApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'name': name_example, // {String} Characters with the given name are included in the response.
  'gender': gender_example, // {String} Characters with the given gender are included in the response.
  'culture': culture_example, // {String} Characters with the given culture are included in the response.
  'born': born_example, // {String} Characters that were born this given year are included in the response.
  'died': 2013-10-20, // {date} Characters that died this given year are included in the response.
  'isAlive': true // {Boolean} Characters that are alive or dead (depending on the value) are included in the response.
};

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

namespace Example
{
    public class allCharactersExample
    {
        public void main()
        {
            
            var apiInstance = new CharactersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var name = name_example;  // String | Characters with the given name are included in the response. (optional) 
            var gender = gender_example;  // String | Characters with the given gender are included in the response. (optional) 
            var culture = culture_example;  // String | Characters with the given culture are included in the response. (optional) 
            var born = born_example;  // String | Characters that were born this given year are included in the response. (optional) 
            var died = 2013-10-20;  // date | Characters that died this given year are included in the response. (optional) 
            var isAlive = true;  // Boolean | Characters that are alive or dead (depending on the value) are included in the response. (optional) 

            try
            {
                // List all characterss
                array[inline_response_200_2] result = apiInstance.allCharacters(apiecoKey, name, gender, culture, born, died, isAlive);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CharactersApi.allCharacters: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CharactersApi();
$apiecoKey = apiecoKey_example; // String | 
$name = name_example; // String | Characters with the given name are included in the response.
$gender = gender_example; // String | Characters with the given gender are included in the response.
$culture = culture_example; // String | Characters with the given culture are included in the response.
$born = born_example; // String | Characters that were born this given year are included in the response.
$died = 2013-10-20; // date | Characters that died this given year are included in the response.
$isAlive = true; // Boolean | Characters that are alive or dead (depending on the value) are included in the response.

try {
    $result = $api_instance->allCharacters($apiecoKey, $name, $gender, $culture, $born, $died, $isAlive);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CharactersApi->allCharacters: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CharactersApi;

my $api_instance = WWW::SwaggerClient::CharactersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $name = name_example; # String | Characters with the given name are included in the response.
my $gender = gender_example; # String | Characters with the given gender are included in the response.
my $culture = culture_example; # String | Characters with the given culture are included in the response.
my $born = born_example; # String | Characters that were born this given year are included in the response.
my $died = 2013-10-20; # date | Characters that died this given year are included in the response.
my $isAlive = true; # Boolean | Characters that are alive or dead (depending on the value) are included in the response.

eval { 
    my $result = $api_instance->allCharacters(apiecoKey => $apiecoKey, name => $name, gender => $gender, culture => $culture, born => $born, died => $died, isAlive => $isAlive);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CharactersApi->allCharacters: $@\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.CharactersApi()
apiecoKey = apiecoKey_example # String | 
name = name_example # String | Characters with the given name are included in the response. (optional)
gender = gender_example # String | Characters with the given gender are included in the response. (optional)
culture = culture_example # String | Characters with the given culture are included in the response. (optional)
born = born_example # String | Characters that were born this given year are included in the response. (optional)
died = 2013-10-20 # date | Characters that died this given year are included in the response. (optional)
isAlive = true # Boolean | Characters that are alive or dead (depending on the value) are included in the response. (optional)

try: 
    # List all characterss
    api_response = api_instance.all_characters(apiecoKey, name=name, gender=gender, culture=culture, born=born, died=died, isAlive=isAlive)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CharactersApi->allCharacters: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
name
String
Characters with the given name are included in the response.
gender
String
Characters with the given gender are included in the response.
culture
String
Characters with the given culture are included in the response.
born
String
Characters that were born this given year are included in the response.
died
date (date)
Characters that died this given year are included in the response.
isAlive
Boolean
Characters that are alive or dead (depending on the value) are included in the response.

Responses

Status: 200 - Successful


singleCharacter

Get specific character


/characters/{characterid}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/game-of-thrones/api/characters/{characterid}?name=&gender=&culture=&born=&died=&isAlive="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CharactersApi;

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

public class CharactersApiExample {

    public static void main(String[] args) {
        
        CharactersApi apiInstance = new CharactersApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal characterid = 8.14; // BigDecimal | 
        String name = name_example; // String | Characters with the given name are included in the response.
        String gender = gender_example; // String | Characters with the given gender are included in the response.
        String culture = culture_example; // String | Characters with the given culture are included in the response.
        String born = born_example; // String | Characters that were born this given year are included in the response.
        date died = 2013-10-20; // date | Characters that died this given year are included in the response.
        Boolean isAlive = true; // Boolean | Characters that are alive or dead (depending on the value) are included in the response.
        try {
            array[inline_response_200_2] result = apiInstance.singleCharacter(apiecoKey, characterid, name, gender, culture, born, died, isAlive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CharactersApi#singleCharacter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CharactersApi;

public class CharactersApiExample {

    public static void main(String[] args) {
        CharactersApi apiInstance = new CharactersApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal characterid = 8.14; // BigDecimal | 
        String name = name_example; // String | Characters with the given name are included in the response.
        String gender = gender_example; // String | Characters with the given gender are included in the response.
        String culture = culture_example; // String | Characters with the given culture are included in the response.
        String born = born_example; // String | Characters that were born this given year are included in the response.
        date died = 2013-10-20; // date | Characters that died this given year are included in the response.
        Boolean isAlive = true; // Boolean | Characters that are alive or dead (depending on the value) are included in the response.
        try {
            array[inline_response_200_2] result = apiInstance.singleCharacter(apiecoKey, characterid, name, gender, culture, born, died, isAlive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CharactersApi#singleCharacter");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *characterid = 8.14; // 
String *name = name_example; // Characters with the given name are included in the response. (optional)
String *gender = gender_example; // Characters with the given gender are included in the response. (optional)
String *culture = culture_example; // Characters with the given culture are included in the response. (optional)
String *born = born_example; // Characters that were born this given year are included in the response. (optional)
date *died = 2013-10-20; // Characters that died this given year are included in the response. (optional)
Boolean *isAlive = true; // Characters that are alive or dead (depending on the value) are included in the response. (optional)

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

// Get specific character
[apiInstance singleCharacterWith:apiecoKey
    characterid:characterid
    name:name
    gender:gender
    culture:culture
    born:born
    died:died
    isAlive:isAlive
              completionHandler: ^(array[inline_response_200_2] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnApiOfIceAndFire = require('an_api_of_ice_and_fire');

var api = new AnApiOfIceAndFire.CharactersApi()

var apiecoKey = apiecoKey_example; // {String} 

var characterid = 8.14; // {BigDecimal} 

var opts = { 
  'name': name_example, // {String} Characters with the given name are included in the response.
  'gender': gender_example, // {String} Characters with the given gender are included in the response.
  'culture': culture_example, // {String} Characters with the given culture are included in the response.
  'born': born_example, // {String} Characters that were born this given year are included in the response.
  'died': 2013-10-20, // {date} Characters that died this given year are included in the response.
  'isAlive': true // {Boolean} Characters that are alive or dead (depending on the value) are included in the response.
};

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

namespace Example
{
    public class singleCharacterExample
    {
        public void main()
        {
            
            var apiInstance = new CharactersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var characterid = 8.14;  // BigDecimal | 
            var name = name_example;  // String | Characters with the given name are included in the response. (optional) 
            var gender = gender_example;  // String | Characters with the given gender are included in the response. (optional) 
            var culture = culture_example;  // String | Characters with the given culture are included in the response. (optional) 
            var born = born_example;  // String | Characters that were born this given year are included in the response. (optional) 
            var died = 2013-10-20;  // date | Characters that died this given year are included in the response. (optional) 
            var isAlive = true;  // Boolean | Characters that are alive or dead (depending on the value) are included in the response. (optional) 

            try
            {
                // Get specific character
                array[inline_response_200_2] result = apiInstance.singleCharacter(apiecoKey, characterid, name, gender, culture, born, died, isAlive);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CharactersApi.singleCharacter: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CharactersApi();
$apiecoKey = apiecoKey_example; // String | 
$characterid = 8.14; // BigDecimal | 
$name = name_example; // String | Characters with the given name are included in the response.
$gender = gender_example; // String | Characters with the given gender are included in the response.
$culture = culture_example; // String | Characters with the given culture are included in the response.
$born = born_example; // String | Characters that were born this given year are included in the response.
$died = 2013-10-20; // date | Characters that died this given year are included in the response.
$isAlive = true; // Boolean | Characters that are alive or dead (depending on the value) are included in the response.

try {
    $result = $api_instance->singleCharacter($apiecoKey, $characterid, $name, $gender, $culture, $born, $died, $isAlive);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CharactersApi->singleCharacter: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CharactersApi;

my $api_instance = WWW::SwaggerClient::CharactersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $characterid = 8.14; # BigDecimal | 
my $name = name_example; # String | Characters with the given name are included in the response.
my $gender = gender_example; # String | Characters with the given gender are included in the response.
my $culture = culture_example; # String | Characters with the given culture are included in the response.
my $born = born_example; # String | Characters that were born this given year are included in the response.
my $died = 2013-10-20; # date | Characters that died this given year are included in the response.
my $isAlive = true; # Boolean | Characters that are alive or dead (depending on the value) are included in the response.

eval { 
    my $result = $api_instance->singleCharacter(apiecoKey => $apiecoKey, characterid => $characterid, name => $name, gender => $gender, culture => $culture, born => $born, died => $died, isAlive => $isAlive);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CharactersApi->singleCharacter: $@\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.CharactersApi()
apiecoKey = apiecoKey_example # String | 
characterid = 8.14 # BigDecimal | 
name = name_example # String | Characters with the given name are included in the response. (optional)
gender = gender_example # String | Characters with the given gender are included in the response. (optional)
culture = culture_example # String | Characters with the given culture are included in the response. (optional)
born = born_example # String | Characters that were born this given year are included in the response. (optional)
died = 2013-10-20 # date | Characters that died this given year are included in the response. (optional)
isAlive = true # Boolean | Characters that are alive or dead (depending on the value) are included in the response. (optional)

try: 
    # Get specific character
    api_response = api_instance.single_character(apiecoKey, characterid, name=name, gender=gender, culture=culture, born=born, died=died, isAlive=isAlive)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CharactersApi->singleCharacter: %s\n" % e)

Parameters

Path parameters
Name Description
characterid*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
name
String
Characters with the given name are included in the response.
gender
String
Characters with the given gender are included in the response.
culture
String
Characters with the given culture are included in the response.
born
String
Characters that were born this given year are included in the response.
died
date (date)
Characters that died this given year are included in the response.
isAlive
Boolean
Characters that are alive or dead (depending on the value) are included in the response.

Responses

Status: 200 - Successful


Houses

allHouses

List all houses

A House is a house branch within the Ice And Fire universe.


/houses

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/game-of-thrones/api/houses?name=®ion=&words=&hasWords=&hasTitles=&hasSeats="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HousesApi;

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

public class HousesApiExample {

    public static void main(String[] args) {
        
        HousesApi apiInstance = new HousesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String name = name_example; // String | Houses with the given name are included in the response
        String region = region_example; // String | Houses that belong in the given region are included in the response.
        String words = words_example; // String | Houses that has the given words are included in the response.
        Boolean hasWords = true; // Boolean | Houses that have words (or not) are included in the response.
        Boolean hasTitles = true; // Boolean | Houses that have titles (or not) are included in the response.
        Boolean hasSeats = true; // Boolean | Houses that have seats (or not) are included in the response.
        try {
            array[inline_response_200_3] result = apiInstance.allHouses(apiecoKey, name, region, words, hasWords, hasTitles, hasSeats);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HousesApi#allHouses");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HousesApi;

public class HousesApiExample {

    public static void main(String[] args) {
        HousesApi apiInstance = new HousesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String name = name_example; // String | Houses with the given name are included in the response
        String region = region_example; // String | Houses that belong in the given region are included in the response.
        String words = words_example; // String | Houses that has the given words are included in the response.
        Boolean hasWords = true; // Boolean | Houses that have words (or not) are included in the response.
        Boolean hasTitles = true; // Boolean | Houses that have titles (or not) are included in the response.
        Boolean hasSeats = true; // Boolean | Houses that have seats (or not) are included in the response.
        try {
            array[inline_response_200_3] result = apiInstance.allHouses(apiecoKey, name, region, words, hasWords, hasTitles, hasSeats);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HousesApi#allHouses");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *name = name_example; // Houses with the given name are included in the response (optional)
String *region = region_example; // Houses that belong in the given region are included in the response. (optional)
String *words = words_example; // Houses that has the given words are included in the response. (optional)
Boolean *hasWords = true; // Houses that have words (or not) are included in the response. (optional)
Boolean *hasTitles = true; // Houses that have titles (or not) are included in the response. (optional)
Boolean *hasSeats = true; // Houses that have seats (or not) are included in the response. (optional)

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

// List all houses
[apiInstance allHousesWith:apiecoKey
    name:name
    region:region
    words:words
    hasWords:hasWords
    hasTitles:hasTitles
    hasSeats:hasSeats
              completionHandler: ^(array[inline_response_200_3] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnApiOfIceAndFire = require('an_api_of_ice_and_fire');

var api = new AnApiOfIceAndFire.HousesApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'name': name_example, // {String} Houses with the given name are included in the response
  'region': region_example, // {String} Houses that belong in the given region are included in the response.
  'words': words_example, // {String} Houses that has the given words are included in the response.
  'hasWords': true, // {Boolean} Houses that have words (or not) are included in the response.
  'hasTitles': true, // {Boolean} Houses that have titles (or not) are included in the response.
  'hasSeats': true // {Boolean} Houses that have seats (or not) are included in the response.
};

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

namespace Example
{
    public class allHousesExample
    {
        public void main()
        {
            
            var apiInstance = new HousesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var name = name_example;  // String | Houses with the given name are included in the response (optional) 
            var region = region_example;  // String | Houses that belong in the given region are included in the response. (optional) 
            var words = words_example;  // String | Houses that has the given words are included in the response. (optional) 
            var hasWords = true;  // Boolean | Houses that have words (or not) are included in the response. (optional) 
            var hasTitles = true;  // Boolean | Houses that have titles (or not) are included in the response. (optional) 
            var hasSeats = true;  // Boolean | Houses that have seats (or not) are included in the response. (optional) 

            try
            {
                // List all houses
                array[inline_response_200_3] result = apiInstance.allHouses(apiecoKey, name, region, words, hasWords, hasTitles, hasSeats);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HousesApi.allHouses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\HousesApi();
$apiecoKey = apiecoKey_example; // String | 
$name = name_example; // String | Houses with the given name are included in the response
$region = region_example; // String | Houses that belong in the given region are included in the response.
$words = words_example; // String | Houses that has the given words are included in the response.
$hasWords = true; // Boolean | Houses that have words (or not) are included in the response.
$hasTitles = true; // Boolean | Houses that have titles (or not) are included in the response.
$hasSeats = true; // Boolean | Houses that have seats (or not) are included in the response.

try {
    $result = $api_instance->allHouses($apiecoKey, $name, $region, $words, $hasWords, $hasTitles, $hasSeats);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HousesApi->allHouses: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HousesApi;

my $api_instance = WWW::SwaggerClient::HousesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $name = name_example; # String | Houses with the given name are included in the response
my $region = region_example; # String | Houses that belong in the given region are included in the response.
my $words = words_example; # String | Houses that has the given words are included in the response.
my $hasWords = true; # Boolean | Houses that have words (or not) are included in the response.
my $hasTitles = true; # Boolean | Houses that have titles (or not) are included in the response.
my $hasSeats = true; # Boolean | Houses that have seats (or not) are included in the response.

eval { 
    my $result = $api_instance->allHouses(apiecoKey => $apiecoKey, name => $name, region => $region, words => $words, hasWords => $hasWords, hasTitles => $hasTitles, hasSeats => $hasSeats);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HousesApi->allHouses: $@\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.HousesApi()
apiecoKey = apiecoKey_example # String | 
name = name_example # String | Houses with the given name are included in the response (optional)
region = region_example # String | Houses that belong in the given region are included in the response. (optional)
words = words_example # String | Houses that has the given words are included in the response. (optional)
hasWords = true # Boolean | Houses that have words (or not) are included in the response. (optional)
hasTitles = true # Boolean | Houses that have titles (or not) are included in the response. (optional)
hasSeats = true # Boolean | Houses that have seats (or not) are included in the response. (optional)

try: 
    # List all houses
    api_response = api_instance.all_houses(apiecoKey, name=name, region=region, words=words, hasWords=hasWords, hasTitles=hasTitles, hasSeats=hasSeats)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HousesApi->allHouses: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
name
String
Houses with the given name are included in the response
region
String
Houses that belong in the given region are included in the response.
words
String
Houses that has the given words are included in the response.
hasWords
Boolean
Houses that have words (or not) are included in the response.
hasTitles
Boolean
Houses that have titles (or not) are included in the response.
hasSeats
Boolean
Houses that have seats (or not) are included in the response.

Responses

Status: 200 - Successful


singleHouse

Get specific house

A House is a house branch within the Ice And Fire universe.


/houses/{houseid}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/game-of-thrones/api/houses/{houseid}?name=®ion=&words=&hasWords=&hasTitles=&hasSeats="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HousesApi;

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

public class HousesApiExample {

    public static void main(String[] args) {
        
        HousesApi apiInstance = new HousesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String houseid = houseid_example; // String | 
        String name = name_example; // String | Houses with the given name are included in the response
        String region = region_example; // String | Houses that belong in the given region are included in the response.
        String words = words_example; // String | Houses that has the given words are included in the response.
        Boolean hasWords = true; // Boolean | Houses that have words (or not) are included in the response.
        Boolean hasTitles = true; // Boolean | Houses that have titles (or not) are included in the response.
        Boolean hasSeats = true; // Boolean | Houses that have seats (or not) are included in the response.
        try {
            array[inline_response_200_3] result = apiInstance.singleHouse(apiecoKey, houseid, name, region, words, hasWords, hasTitles, hasSeats);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HousesApi#singleHouse");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HousesApi;

public class HousesApiExample {

    public static void main(String[] args) {
        HousesApi apiInstance = new HousesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String houseid = houseid_example; // String | 
        String name = name_example; // String | Houses with the given name are included in the response
        String region = region_example; // String | Houses that belong in the given region are included in the response.
        String words = words_example; // String | Houses that has the given words are included in the response.
        Boolean hasWords = true; // Boolean | Houses that have words (or not) are included in the response.
        Boolean hasTitles = true; // Boolean | Houses that have titles (or not) are included in the response.
        Boolean hasSeats = true; // Boolean | Houses that have seats (or not) are included in the response.
        try {
            array[inline_response_200_3] result = apiInstance.singleHouse(apiecoKey, houseid, name, region, words, hasWords, hasTitles, hasSeats);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HousesApi#singleHouse");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *houseid = houseid_example; // 
String *name = name_example; // Houses with the given name are included in the response (optional)
String *region = region_example; // Houses that belong in the given region are included in the response. (optional)
String *words = words_example; // Houses that has the given words are included in the response. (optional)
Boolean *hasWords = true; // Houses that have words (or not) are included in the response. (optional)
Boolean *hasTitles = true; // Houses that have titles (or not) are included in the response. (optional)
Boolean *hasSeats = true; // Houses that have seats (or not) are included in the response. (optional)

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

// Get specific house
[apiInstance singleHouseWith:apiecoKey
    houseid:houseid
    name:name
    region:region
    words:words
    hasWords:hasWords
    hasTitles:hasTitles
    hasSeats:hasSeats
              completionHandler: ^(array[inline_response_200_3] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnApiOfIceAndFire = require('an_api_of_ice_and_fire');

var api = new AnApiOfIceAndFire.HousesApi()

var apiecoKey = apiecoKey_example; // {String} 

var houseid = houseid_example; // {String} 

var opts = { 
  'name': name_example, // {String} Houses with the given name are included in the response
  'region': region_example, // {String} Houses that belong in the given region are included in the response.
  'words': words_example, // {String} Houses that has the given words are included in the response.
  'hasWords': true, // {Boolean} Houses that have words (or not) are included in the response.
  'hasTitles': true, // {Boolean} Houses that have titles (or not) are included in the response.
  'hasSeats': true // {Boolean} Houses that have seats (or not) are included in the response.
};

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

namespace Example
{
    public class singleHouseExample
    {
        public void main()
        {
            
            var apiInstance = new HousesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var houseid = houseid_example;  // String | 
            var name = name_example;  // String | Houses with the given name are included in the response (optional) 
            var region = region_example;  // String | Houses that belong in the given region are included in the response. (optional) 
            var words = words_example;  // String | Houses that has the given words are included in the response. (optional) 
            var hasWords = true;  // Boolean | Houses that have words (or not) are included in the response. (optional) 
            var hasTitles = true;  // Boolean | Houses that have titles (or not) are included in the response. (optional) 
            var hasSeats = true;  // Boolean | Houses that have seats (or not) are included in the response. (optional) 

            try
            {
                // Get specific house
                array[inline_response_200_3] result = apiInstance.singleHouse(apiecoKey, houseid, name, region, words, hasWords, hasTitles, hasSeats);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HousesApi.singleHouse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\HousesApi();
$apiecoKey = apiecoKey_example; // String | 
$houseid = houseid_example; // String | 
$name = name_example; // String | Houses with the given name are included in the response
$region = region_example; // String | Houses that belong in the given region are included in the response.
$words = words_example; // String | Houses that has the given words are included in the response.
$hasWords = true; // Boolean | Houses that have words (or not) are included in the response.
$hasTitles = true; // Boolean | Houses that have titles (or not) are included in the response.
$hasSeats = true; // Boolean | Houses that have seats (or not) are included in the response.

try {
    $result = $api_instance->singleHouse($apiecoKey, $houseid, $name, $region, $words, $hasWords, $hasTitles, $hasSeats);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HousesApi->singleHouse: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HousesApi;

my $api_instance = WWW::SwaggerClient::HousesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $houseid = houseid_example; # String | 
my $name = name_example; # String | Houses with the given name are included in the response
my $region = region_example; # String | Houses that belong in the given region are included in the response.
my $words = words_example; # String | Houses that has the given words are included in the response.
my $hasWords = true; # Boolean | Houses that have words (or not) are included in the response.
my $hasTitles = true; # Boolean | Houses that have titles (or not) are included in the response.
my $hasSeats = true; # Boolean | Houses that have seats (or not) are included in the response.

eval { 
    my $result = $api_instance->singleHouse(apiecoKey => $apiecoKey, houseid => $houseid, name => $name, region => $region, words => $words, hasWords => $hasWords, hasTitles => $hasTitles, hasSeats => $hasSeats);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HousesApi->singleHouse: $@\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.HousesApi()
apiecoKey = apiecoKey_example # String | 
houseid = houseid_example # String | 
name = name_example # String | Houses with the given name are included in the response (optional)
region = region_example # String | Houses that belong in the given region are included in the response. (optional)
words = words_example # String | Houses that has the given words are included in the response. (optional)
hasWords = true # Boolean | Houses that have words (or not) are included in the response. (optional)
hasTitles = true # Boolean | Houses that have titles (or not) are included in the response. (optional)
hasSeats = true # Boolean | Houses that have seats (or not) are included in the response. (optional)

try: 
    # Get specific house
    api_response = api_instance.single_house(apiecoKey, houseid, name=name, region=region, words=words, hasWords=hasWords, hasTitles=hasTitles, hasSeats=hasSeats)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HousesApi->singleHouse: %s\n" % e)

Parameters

Path parameters
Name Description
houseid*
String
Required
Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
name
String
Houses with the given name are included in the response
region
String
Houses that belong in the given region are included in the response.
words
String
Houses that has the given words are included in the response.
hasWords
Boolean
Houses that have words (or not) are included in the response.
hasTitles
Boolean
Houses that have titles (or not) are included in the response.
hasSeats
Boolean
Houses that have seats (or not) are included in the response.

Responses

Status: 200 - Successful


Root

root

Root

The Root resource contains information about all available resources in the API.


/

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/game-of-thrones/api/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RootApi;

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

public class RootApiExample {

    public static void main(String[] args) {
        
        RootApi apiInstance = new RootApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.root(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RootApi#root");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RootApi;

public class RootApiExample {

    public static void main(String[] args) {
        RootApi apiInstance = new RootApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.root(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RootApi#root");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

// Root
[apiInstance rootWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AnApiOfIceAndFire = require('an_api_of_ice_and_fire');

var api = new AnApiOfIceAndFire.RootApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class rootExample
    {
        public void main()
        {
            
            var apiInstance = new RootApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Root
                inline_response_200 result = apiInstance.root(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RootApi.root: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RootApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::RootApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->root(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RootApi->root: $@\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.RootApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Root
    api_response = api_instance.root(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RootApi->root: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful