Fake Rest API

Activities

deleteActivity

Deletes the specified activity


/api/Activities/{id}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Activities/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ActivitiesApi;

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

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ActivitiesApi apiInstance = new ActivitiesApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteActivity(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#deleteActivity");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ActivitiesApi;

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ActivitiesApi apiInstance = new ActivitiesApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteActivity(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#deleteActivity");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 

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

// 
[apiInstance deleteActivityWith:apiecoKey
    id:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.ActivitiesApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 


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

namespace Example
{
    public class deleteActivityExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ActivitiesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ActivitiesApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ActivitiesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ActivitiesApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 

try: 
    # 
    api_response = api_instance.delete_activity(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivitiesApi->deleteActivity: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getActivities

Gets all Activities


/api/Activities

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Activities"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ActivitiesApi;

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

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ActivitiesApi apiInstance = new ActivitiesApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.getActivities(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#getActivities");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ActivitiesApi;

public class ActivitiesApiExample {

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

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// 
[apiInstance getActivitiesWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.ActivitiesApi()

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.getActivities(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getActivitiesExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ActivitiesApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ActivitiesApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getActivity

Gets the activity with the specified identifier.


/api/Activities/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Activities/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ActivitiesApi;

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

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ActivitiesApi apiInstance = new ActivitiesApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            activity result = apiInstance.getActivity(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#getActivity");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ActivitiesApi;

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ActivitiesApi apiInstance = new ActivitiesApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            activity result = apiInstance.getActivity(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#getActivity");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 

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

// 
[apiInstance getActivityWith:apiecoKey
    id:id
              completionHandler: ^(activity output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.ActivitiesApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 


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

namespace Example
{
    public class getActivityExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ActivitiesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ActivitiesApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ActivitiesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ActivitiesApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 

try: 
    # 
    api_response = api_instance.get_activity(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivitiesApi->getActivity: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


postActivities

Posts an activity.


/api/Activities

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Activities"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ActivitiesApi;

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

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ActivitiesApi apiInstance = new ActivitiesApi();
        String apiecoKey = apiecoKey_example; // String | 
        Activity activity = ; // Activity | 
        try {
            Object result = apiInstance.postActivities(apiecoKey, activity);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#postActivities");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ActivitiesApi;

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ActivitiesApi apiInstance = new ActivitiesApi();
        String apiecoKey = apiecoKey_example; // String | 
        Activity activity = ; // Activity | 
        try {
            Object result = apiInstance.postActivities(apiecoKey, activity);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#postActivities");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Activity *activity = ; // 

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

// 
[apiInstance postActivitiesWith:apiecoKey
    activity:activity
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.ActivitiesApi()

var apiecoKey = apiecoKey_example; // {String} 

var activity = ; // {Activity} 


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

namespace Example
{
    public class postActivitiesExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ActivitiesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var activity = new Activity(); // Activity | 

            try
            {
                // 
                Object result = apiInstance.postActivities(apiecoKey, activity);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ActivitiesApi.postActivities: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ActivitiesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $activity = WWW::SwaggerClient::Object::Activity->new(); # Activity | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ActivitiesApi()
apiecoKey = apiecoKey_example # String | 
activity =  # Activity | 

try: 
    # 
    api_response = api_instance.post_activities(apiecoKey, activity)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivitiesApi->postActivities: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
activity *

Responses

Status: 200 - Successful

Status: 405 - Invalid input


putActivity

Puts an activity.


/api/Activities/{id}

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Activities/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ActivitiesApi;

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

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ActivitiesApi apiInstance = new ActivitiesApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        Activity_1 activity = ; // Activity_1 | 
        try {
            Object result = apiInstance.putActivity(apiecoKey, id, activity);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#putActivity");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ActivitiesApi;

public class ActivitiesApiExample {

    public static void main(String[] args) {
        ActivitiesApi apiInstance = new ActivitiesApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        Activity_1 activity = ; // Activity_1 | 
        try {
            Object result = apiInstance.putActivity(apiecoKey, id, activity);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivitiesApi#putActivity");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 
Activity_1 *activity = ; // 

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

// 
[apiInstance putActivityWith:apiecoKey
    id:id
    activity:activity
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.ActivitiesApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 

var activity = ; // {Activity_1} 


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

namespace Example
{
    public class putActivityExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ActivitiesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 
            var activity = new Activity_1(); // Activity_1 | 

            try
            {
                // 
                Object result = apiInstance.putActivity(apiecoKey, id, activity);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ActivitiesApi.putActivity: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ActivitiesApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 
$activity = ; // Activity_1 | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ActivitiesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 
my $activity = WWW::SwaggerClient::Object::Activity_1->new(); # Activity_1 | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ActivitiesApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 
activity =  # Activity_1 | 

try: 
    # 
    api_response = api_instance.put_activity(apiecoKey, id, activity)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ActivitiesApi->putActivity: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
activity *

Responses

Status: 200 - Successful

Status: 405 - Invalid input


Authors

deleteAuthor

Deletes the specified author


/api/Authors/{id}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Authors/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthorsApi;

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

public class AuthorsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteAuthor(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#deleteAuthor");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthorsApi;

public class AuthorsApiExample {

    public static void main(String[] args) {
        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteAuthor(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#deleteAuthor");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 

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

// 
[apiInstance deleteAuthorWith:apiecoKey
    id:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.AuthorsApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 


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

namespace Example
{
    public class deleteAuthorExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AuthorsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AuthorsApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AuthorsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AuthorsApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 

try: 
    # 
    api_response = api_instance.delete_author(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthorsApi->deleteAuthor: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getAuthor

Gets the author with the specified identifier.


/api/Authors/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Authors/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthorsApi;

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

public class AuthorsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            author result = apiInstance.getAuthor(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#getAuthor");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthorsApi;

public class AuthorsApiExample {

    public static void main(String[] args) {
        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            author result = apiInstance.getAuthor(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#getAuthor");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 

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

// 
[apiInstance getAuthorWith:apiecoKey
    id:id
              completionHandler: ^(author output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.AuthorsApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 


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

namespace Example
{
    public class getAuthorExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AuthorsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AuthorsApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AuthorsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AuthorsApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 

try: 
    # 
    api_response = api_instance.get_author(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthorsApi->getAuthor: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getAuthors

Gets all Authors


/api/Authors

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Authors"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthorsApi;

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

public class AuthorsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.getAuthors(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#getAuthors");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthorsApi;

public class AuthorsApiExample {

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

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// 
[apiInstance getAuthorsWith:apiecoKey
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.AuthorsApi()

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.getAuthors(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAuthorsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AuthorsApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AuthorsApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getBooksByAuthor

Gets the Book with the specified Author.


/Authors/books/{idBook}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/Authors/books/{idBook}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthorsApi;

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

public class AuthorsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer idBook = 56; // Integer | 
        try {
            author_1 result = apiInstance.getBooksByAuthor(apiecoKey, idBook);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#getBooksByAuthor");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthorsApi;

public class AuthorsApiExample {

    public static void main(String[] args) {
        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer idBook = 56; // Integer | 
        try {
            author_1 result = apiInstance.getBooksByAuthor(apiecoKey, idBook);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#getBooksByAuthor");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *idBook = 56; // 

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

// 
[apiInstance getBooksByAuthorWith:apiecoKey
    idBook:idBook
              completionHandler: ^(author_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.AuthorsApi()

var apiecoKey = apiecoKey_example; // {String} 

var idBook = 56; // {Integer} 


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

namespace Example
{
    public class getBooksByAuthorExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AuthorsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var idBook = 56;  // Integer | 

            try
            {
                // 
                author_1 result = apiInstance.getBooksByAuthor(apiecoKey, idBook);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthorsApi.getBooksByAuthor: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AuthorsApi();
$apiecoKey = apiecoKey_example; // String | 
$idBook = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AuthorsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $idBook = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AuthorsApi()
apiecoKey = apiecoKey_example # String | 
idBook = 56 # Integer | 

try: 
    # 
    api_response = api_instance.get_books_by_author(apiecoKey, idBook)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthorsApi->getBooksByAuthor: %s\n" % e)

Parameters

Path parameters
Name Description
idBook*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


postAuthor

Posts an author.


/api/Authors

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Authors"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthorsApi;

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

public class AuthorsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        Author author = ; // Author | 
        try {
            Object result = apiInstance.postAuthor(apiecoKey, author);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#postAuthor");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthorsApi;

public class AuthorsApiExample {

    public static void main(String[] args) {
        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        Author author = ; // Author | 
        try {
            Object result = apiInstance.postAuthor(apiecoKey, author);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#postAuthor");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Author *author = ; // 

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

// 
[apiInstance postAuthorWith:apiecoKey
    author:author
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.AuthorsApi()

var apiecoKey = apiecoKey_example; // {String} 

var author = ; // {Author} 


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

namespace Example
{
    public class postAuthorExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AuthorsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var author = new Author(); // Author | 

            try
            {
                // 
                Object result = apiInstance.postAuthor(apiecoKey, author);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthorsApi.postAuthor: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AuthorsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $author = WWW::SwaggerClient::Object::Author->new(); # Author | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AuthorsApi()
apiecoKey = apiecoKey_example # String | 
author =  # Author | 

try: 
    # 
    api_response = api_instance.post_author(apiecoKey, author)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthorsApi->postAuthor: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
author *

Responses

Status: 200 - Successful

Status: 405 - Invalid input


putAuthor

Puts an author.


/api/Authors/{id}

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Authors/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthorsApi;

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

public class AuthorsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        Author_1 author = ; // Author_1 | 
        try {
            Object result = apiInstance.putAuthor(apiecoKey, id, author);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#putAuthor");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthorsApi;

public class AuthorsApiExample {

    public static void main(String[] args) {
        AuthorsApi apiInstance = new AuthorsApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        Author_1 author = ; // Author_1 | 
        try {
            Object result = apiInstance.putAuthor(apiecoKey, id, author);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthorsApi#putAuthor");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 
Author_1 *author = ; // 

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

// 
[apiInstance putAuthorWith:apiecoKey
    id:id
    author:author
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.AuthorsApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 

var author = ; // {Author_1} 


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

namespace Example
{
    public class putAuthorExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AuthorsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 
            var author = new Author_1(); // Author_1 | 

            try
            {
                // 
                Object result = apiInstance.putAuthor(apiecoKey, id, author);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthorsApi.putAuthor: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AuthorsApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 
$author = ; // Author_1 | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AuthorsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 
my $author = WWW::SwaggerClient::Object::Author_1->new(); # Author_1 | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AuthorsApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 
author =  # Author_1 | 

try: 
    # 
    api_response = api_instance.put_author(apiecoKey, id, author)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthorsApi->putAuthor: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
author *

Responses

Status: 200 - Successful

Status: 405 - Invalid input


Books

deleteBook

Deletes the specified book


/api/Books/{id}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Books/{id}"
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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        BooksApi apiInstance = new BooksApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteBook(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#deleteBook");
            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 | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteBook(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#deleteBook");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 

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

// 
[apiInstance deleteBookWith:apiecoKey
    id:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.BooksApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 


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

namespace Example
{
    public class deleteBookExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new BooksApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\BooksApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::BooksApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.BooksApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 

try: 
    # 
    api_response = api_instance.delete_book(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BooksApi->deleteBook: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getBook

Gets the Book with the specified identifier.


/api/Books/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Books/{id}"
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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        BooksApi apiInstance = new BooksApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            book result = apiInstance.getBook(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#getBook");
            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 | 
        Integer id = 56; // Integer | 
        try {
            book result = apiInstance.getBook(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#getBook");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 

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

// 
[apiInstance getBookWith:apiecoKey
    id:id
              completionHandler: ^(book output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.BooksApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 


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

namespace Example
{
    public class getBookExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new BooksApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\BooksApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::BooksApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.BooksApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 

try: 
    # 
    api_response = api_instance.get_book(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BooksApi->getBook: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getBooks

Gets all Books


/api/Books

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Books"
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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        BooksApi apiInstance = new BooksApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.getBooks(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#getBooks");
            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 | 
        try {
            inline_response_200_2 result = apiInstance.getBooks(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#getBooks");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// 
[apiInstance getBooksWith:apiecoKey
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.BooksApi()

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.getBooks(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBooksExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new BooksApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.BooksApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


postBooks

Posts a book.


/api/Books

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Books"
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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        BooksApi apiInstance = new BooksApi();
        String apiecoKey = apiecoKey_example; // String | 
        Book book = ; // Book | 
        try {
            Object result = apiInstance.postBooks(apiecoKey, book);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#postBooks");
            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 | 
        Book book = ; // Book | 
        try {
            Object result = apiInstance.postBooks(apiecoKey, book);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#postBooks");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Book *book = ; // 

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

// 
[apiInstance postBooksWith:apiecoKey
    book:book
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.BooksApi()

var apiecoKey = apiecoKey_example; // {String} 

var book = ; // {Book} 


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

namespace Example
{
    public class postBooksExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new BooksApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var book = new Book(); // Book | 

            try
            {
                // 
                Object result = apiInstance.postBooks(apiecoKey, book);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BooksApi.postBooks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::BooksApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $book = WWW::SwaggerClient::Object::Book->new(); # Book | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.BooksApi()
apiecoKey = apiecoKey_example # String | 
book =  # Book | 

try: 
    # 
    api_response = api_instance.post_books(apiecoKey, book)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BooksApi->postBooks: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
book *

Responses

Status: 200 - Successful

Status: 405 - Invalid input


putBook

Puts a book.


/api/Books/{id}

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Books/{id}"
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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        BooksApi apiInstance = new BooksApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        Book_1 book = ; // Book_1 | 
        try {
            Object result = apiInstance.putBook(apiecoKey, id, book);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#putBook");
            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 | 
        Integer id = 56; // Integer | 
        Book_1 book = ; // Book_1 | 
        try {
            Object result = apiInstance.putBook(apiecoKey, id, book);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BooksApi#putBook");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 
Book_1 *book = ; // 

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

// 
[apiInstance putBookWith:apiecoKey
    id:id
    book:book
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.BooksApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 

var book = ; // {Book_1} 


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

namespace Example
{
    public class putBookExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new BooksApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 
            var book = new Book_1(); // Book_1 | 

            try
            {
                // 
                Object result = apiInstance.putBook(apiecoKey, id, book);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BooksApi.putBook: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\BooksApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 
$book = ; // Book_1 | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::BooksApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 
my $book = WWW::SwaggerClient::Object::Book_1->new(); # Book_1 | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.BooksApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 
book =  # Book_1 | 

try: 
    # 
    api_response = api_instance.put_book(apiecoKey, id, book)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BooksApi->putBook: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
book *

Responses

Status: 200 - Successful

Status: 405 - Invalid input


CoverPhotos

deleteCoverPhoto

Deletes the specified CoverPhoto


/api/CoverPhotos/{id}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/CoverPhotos/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CoverPhotosApi;

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

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteCoverPhoto(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#deleteCoverPhoto");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CoverPhotosApi;

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteCoverPhoto(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#deleteCoverPhoto");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 

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

// 
[apiInstance deleteCoverPhotoWith:apiecoKey
    id:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.CoverPhotosApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 


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

namespace Example
{
    public class deleteCoverPhotoExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CoverPhotosApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CoverPhotosApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CoverPhotosApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CoverPhotosApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 

try: 
    # 
    api_response = api_instance.delete_cover_photo(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CoverPhotosApi->deleteCoverPhoto: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getCoverByBooks

Gets Cover of a specificed Book


/books/covers/{idBook}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/books/covers/{idBook}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CoverPhotosApi;

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

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String idBook = idBook_example; // String | 
        try {
            CoverPhoto result = apiInstance.getCoverByBooks(apiecoKey, idBook);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#getCoverByBooks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CoverPhotosApi;

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        String idBook = idBook_example; // String | 
        try {
            CoverPhoto result = apiInstance.getCoverByBooks(apiecoKey, idBook);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#getCoverByBooks");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *idBook = idBook_example; // 

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

// 
[apiInstance getCoverByBooksWith:apiecoKey
    idBook:idBook
              completionHandler: ^(CoverPhoto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.CoverPhotosApi()

var apiecoKey = apiecoKey_example; // {String} 

var idBook = idBook_example; // {String} 


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

namespace Example
{
    public class getCoverByBooksExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CoverPhotosApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var idBook = idBook_example;  // String | 

            try
            {
                // 
                CoverPhoto result = apiInstance.getCoverByBooks(apiecoKey, idBook);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CoverPhotosApi.getCoverByBooks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CoverPhotosApi()
apiecoKey = apiecoKey_example # String | 
idBook = idBook_example # String | 

try: 
    # 
    api_response = api_instance.get_cover_by_books(apiecoKey, idBook)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CoverPhotosApi->getCoverByBooks: %s\n" % e)

Parameters

Path parameters
Name Description
idBook*
String
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getCoverPhoto

Gets the CoverPhoto with the specified identifier.


/api/CoverPhotos/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/CoverPhotos/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CoverPhotosApi;

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

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            coverphoto result = apiInstance.getCoverPhoto(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#getCoverPhoto");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CoverPhotosApi;

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            coverphoto result = apiInstance.getCoverPhoto(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#getCoverPhoto");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 

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

// 
[apiInstance getCoverPhotoWith:apiecoKey
    id:id
              completionHandler: ^(coverphoto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.CoverPhotosApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 


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

namespace Example
{
    public class getCoverPhotoExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CoverPhotosApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CoverPhotosApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CoverPhotosApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CoverPhotosApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 

try: 
    # 
    api_response = api_instance.get_cover_photo(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CoverPhotosApi->getCoverPhoto: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getCoverPhotos

Gets all CoverPhotos


/api/CoverPhotos

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/CoverPhotos"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CoverPhotosApi;

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

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.getCoverPhotos(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#getCoverPhotos");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CoverPhotosApi;

public class CoverPhotosApiExample {

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

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// 
[apiInstance getCoverPhotosWith:apiecoKey
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.CoverPhotosApi()

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.getCoverPhotos(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCoverPhotosExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CoverPhotosApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CoverPhotosApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


postCoverPhoto

Posts a CoverPhoto


/api/CoverPhotos

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/CoverPhotos"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CoverPhotosApi;

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

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        Coverphoto coverphoto = ; // Coverphoto | 
        try {
            Object result = apiInstance.postCoverPhoto(apiecoKey, coverphoto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#postCoverPhoto");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CoverPhotosApi;

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        Coverphoto coverphoto = ; // Coverphoto | 
        try {
            Object result = apiInstance.postCoverPhoto(apiecoKey, coverphoto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#postCoverPhoto");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Coverphoto *coverphoto = ; // 

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

// 
[apiInstance postCoverPhotoWith:apiecoKey
    coverphoto:coverphoto
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.CoverPhotosApi()

var apiecoKey = apiecoKey_example; // {String} 

var coverphoto = ; // {Coverphoto} 


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

namespace Example
{
    public class postCoverPhotoExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CoverPhotosApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var coverphoto = new Coverphoto(); // Coverphoto | 

            try
            {
                // 
                Object result = apiInstance.postCoverPhoto(apiecoKey, coverphoto);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CoverPhotosApi.postCoverPhoto: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CoverPhotosApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $coverphoto = WWW::SwaggerClient::Object::Coverphoto->new(); # Coverphoto | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CoverPhotosApi()
apiecoKey = apiecoKey_example # String | 
coverphoto =  # Coverphoto | 

try: 
    # 
    api_response = api_instance.post_cover_photo(apiecoKey, coverphoto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CoverPhotosApi->postCoverPhoto: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
coverphoto *

Responses

Status: 200 - Successful

Status: 405 - Invalid input


putCoverPhoto

Puts an CoverPhoto


/api/CoverPhotos/{id}

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/CoverPhotos/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CoverPhotosApi;

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

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        CoverPhoto coverPhoto = ; // CoverPhoto | 
        try {
            Object result = apiInstance.putCoverPhoto(apiecoKey, id, coverPhoto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#putCoverPhoto");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CoverPhotosApi;

public class CoverPhotosApiExample {

    public static void main(String[] args) {
        CoverPhotosApi apiInstance = new CoverPhotosApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        CoverPhoto coverPhoto = ; // CoverPhoto | 
        try {
            Object result = apiInstance.putCoverPhoto(apiecoKey, id, coverPhoto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CoverPhotosApi#putCoverPhoto");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 
CoverPhoto *coverPhoto = ; // 

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

// 
[apiInstance putCoverPhotoWith:apiecoKey
    id:id
    coverPhoto:coverPhoto
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.CoverPhotosApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 

var coverPhoto = ; // {CoverPhoto} 


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

namespace Example
{
    public class putCoverPhotoExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CoverPhotosApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 
            var coverPhoto = new CoverPhoto(); // CoverPhoto | 

            try
            {
                // 
                Object result = apiInstance.putCoverPhoto(apiecoKey, id, coverPhoto);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CoverPhotosApi.putCoverPhoto: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CoverPhotosApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 
$coverPhoto = ; // CoverPhoto | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CoverPhotosApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 
my $coverPhoto = WWW::SwaggerClient::Object::CoverPhoto->new(); # CoverPhoto | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CoverPhotosApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 
coverPhoto =  # CoverPhoto | 

try: 
    # 
    api_response = api_instance.put_cover_photo(apiecoKey, id, coverPhoto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CoverPhotosApi->putCoverPhoto: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
coverPhoto *

Responses

Status: 200 - Successful

Status: 405 - Invalid input


Users

deleteUser

Deletes the specified User


/api/Users/{id}

Usage and SDK Samples

curl -X DELETE -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Users/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteUser(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#deleteUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteUser(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#deleteUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 

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

// 
[apiInstance deleteUserWith:apiecoKey
    id:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.UsersApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 


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

namespace Example
{
    public class deleteUserExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new UsersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\UsersApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UsersApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 

try: 
    # 
    api_response = api_instance.delete_user(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->deleteUser: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getUser

Gets the User with the specified identifier.


/api/Users/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Users/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            user result = apiInstance.getUser(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#getUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        try {
            user result = apiInstance.getUser(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#getUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 

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

// 
[apiInstance getUserWith:apiecoKey
    id:id
              completionHandler: ^(user output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.UsersApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 


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

namespace Example
{
    public class getUserExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new UsersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\UsersApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UsersApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 

try: 
    # 
    api_response = api_instance.get_user(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->getUser: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


getUsers

Gets all Users


/api/Users

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_4 result = apiInstance.getUsers(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#getUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

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

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 

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

// 
[apiInstance getUsersWith:apiecoKey
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.UsersApi()

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.getUsers(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUsersExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new UsersApi();
            var apiecoKey = apiecoKey_example;  // String | 

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

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

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

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UsersApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


postUsers

Posts an User.


/api/Users

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        User user = ; // User | 
        try {
            Object result = apiInstance.postUsers(apiecoKey, user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#postUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        User user = ; // User | 
        try {
            Object result = apiInstance.postUsers(apiecoKey, user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#postUsers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
User *user = ; // 

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

// 
[apiInstance postUsersWith:apiecoKey
    user:user
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.UsersApi()

var apiecoKey = apiecoKey_example; // {String} 

var user = ; // {User} 


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

namespace Example
{
    public class postUsersExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new UsersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var user = new User(); // User | 

            try
            {
                // 
                Object result = apiInstance.postUsers(apiecoKey, user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.postUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

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

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $user = WWW::SwaggerClient::Object::User->new(); # User | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UsersApi()
apiecoKey = apiecoKey_example # String | 
user =  # User | 

try: 
    # 
    api_response = api_instance.post_users(apiecoKey, user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->postUsers: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
user *

Responses

Status: 200 - Successful

Status: 405 - Invalid input


putUser

Puts an User.


/api/Users/{id}

Usage and SDK Samples

curl -X PUT -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/fakerestapi/api/Users/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsersApi;

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

public class UsersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        User user = ; // User | 
        try {
            Object result = apiInstance.putUser(apiecoKey, id, user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#putUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        Integer id = 56; // Integer | 
        User user = ; // User | 
        try {
            Object result = apiInstance.putUser(apiecoKey, id, user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#putUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
Integer *id = 56; // 
User *user = ; // 

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

// 
[apiInstance putUserWith:apiecoKey
    id:id
    user:user
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FakeRestApi = require('fake_rest_api');
var defaultClient = FakeRestApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new FakeRestApi.UsersApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 56; // {Integer} 

var user = ; // {User} 


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

namespace Example
{
    public class putUserExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new UsersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 56;  // Integer | 
            var user = new User(); // User | 

            try
            {
                // 
                Object result = apiInstance.putUser(apiecoKey, id, user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.putUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\UsersApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 56; // Integer | 
$user = ; // User | 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 56; # Integer | 
my $user = WWW::SwaggerClient::Object::User->new(); # User | 

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

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UsersApi()
apiecoKey = apiecoKey_example # String | 
id = 56 # Integer | 
user =  # User | 

try: 
    # 
    api_response = api_instance.put_user(apiecoKey, id, user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->putUser: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
user *

Responses

Status: 200 - Successful

Status: 405 - Invalid input