REQ | RES API

CreateUser

createUser


/users

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/reqres/api/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CreateUserApi;

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

public class CreateUserApiExample {

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

public class CreateUserApiExample {

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

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

[apiInstance createUserWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ReqResApi = require('req__res_api');

var api = new ReqResApi.CreateUserApi()

var apiecoKey = apiecoKey_example; // {String} 

var body = ; // {Body} 


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

namespace Example
{
    public class createUserExample
    {
        public void main()
        {
            
            var apiInstance = new CreateUserApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var body = new Body(); // Body | 

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

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

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

my $api_instance = WWW::SwaggerClient::CreateUserApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $body = WWW::SwaggerClient::Object::Body->new(); # Body | 

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

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

try: 
    api_response = api_instance.create_user(apiecoKey, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CreateUserApi->createUser: %s\n" % e)

Parameters

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

Responses

Status: 200 - Successful


DeleteUser

deleteUser


/users/{userid}

Usage and SDK Samples

curl -X DELETE "https://api.apieco.ir/reqres/api/users/{userid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeleteUserApi;

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

public class DeleteUserApiExample {

    public static void main(String[] args) {
        
        DeleteUserApi apiInstance = new DeleteUserApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal userid = 8.14; // BigDecimal | 
        try {
            apiInstance.deleteUser(apiecoKey, userid);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeleteUserApi#deleteUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeleteUserApi;

public class DeleteUserApiExample {

    public static void main(String[] args) {
        DeleteUserApi apiInstance = new DeleteUserApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal userid = 8.14; // BigDecimal | 
        try {
            apiInstance.deleteUser(apiecoKey, userid);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeleteUserApi#deleteUser");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *userid = 8.14; // 

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

[apiInstance deleteUserWith:apiecoKey
    userid:userid
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ReqResApi = require('req__res_api');

var api = new ReqResApi.DeleteUserApi()

var apiecoKey = apiecoKey_example; // {String} 

var userid = 8.14; // {BigDecimal} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteUser(apiecoKey, userid, 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()
        {
            
            var apiInstance = new DeleteUserApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var userid = 8.14;  // BigDecimal | 

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

$api_instance = new Swagger\Client\Api\DeleteUserApi();
$apiecoKey = apiecoKey_example; // String | 
$userid = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::DeleteUserApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $userid = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.DeleteUserApi()
apiecoKey = apiecoKey_example # String | 
userid = 8.14 # BigDecimal | 

try: 
    api_instance.delete_user(apiecoKey, userid)
except ApiException as e:
    print("Exception when calling DeleteUserApi->deleteUser: %s\n" % e)

Parameters

Path parameters
Name Description
userid*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


ListResource

listResource


/unknown

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/reqres/api/unknown?page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ListResourceApi;

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

public class ListResourceApiExample {

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

public class ListResourceApiExample {

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

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

[apiInstance listResourceWith:apiecoKey
    page:page
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ReqResApi = require('req__res_api');

var api = new ReqResApi.ListResourceApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'page': 8.14 // {BigDecimal} 
};

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

namespace Example
{
    public class listResourceExample
    {
        public void main()
        {
            
            var apiInstance = new ListResourceApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var page = 8.14;  // BigDecimal |  (optional) 

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

$api_instance = new Swagger\Client\Api\ListResourceApi();
$apiecoKey = apiecoKey_example; // String | 
$page = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::ListResourceApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $page = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.ListResourceApi()
apiecoKey = apiecoKey_example # String | 
page = 8.14 # BigDecimal |  (optional)

try: 
    api_response = api_instance.list_resource(apiecoKey, page=page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ListResourceApi->listResource: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
page
BigDecimal

Responses

Status: 200 - Successful


ListUsers

listUsers


/users

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/reqres/api/users?page=&delay="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ListUsersApi;

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

public class ListUsersApiExample {

    public static void main(String[] args) {
        
        ListUsersApi apiInstance = new ListUsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal page = 8.14; // BigDecimal | 
        BigDecimal delay = 8.14; // BigDecimal | Get Response With A Delay in seconds
        try {
            inline_response_200 result = apiInstance.listUsers(apiecoKey, page, delay);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListUsersApi#listUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ListUsersApi;

public class ListUsersApiExample {

    public static void main(String[] args) {
        ListUsersApi apiInstance = new ListUsersApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal page = 8.14; // BigDecimal | 
        BigDecimal delay = 8.14; // BigDecimal | Get Response With A Delay in seconds
        try {
            inline_response_200 result = apiInstance.listUsers(apiecoKey, page, delay);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListUsersApi#listUsers");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *page = 8.14; //  (optional)
BigDecimal *delay = 8.14; // Get Response With A Delay in seconds (optional)

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

[apiInstance listUsersWith:apiecoKey
    page:page
    delay:delay
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ReqResApi = require('req__res_api');

var api = new ReqResApi.ListUsersApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'page': 8.14, // {BigDecimal} 
  'delay': 8.14 // {BigDecimal} Get Response With A Delay in seconds
};

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

namespace Example
{
    public class listUsersExample
    {
        public void main()
        {
            
            var apiInstance = new ListUsersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var page = 8.14;  // BigDecimal |  (optional) 
            var delay = 8.14;  // BigDecimal | Get Response With A Delay in seconds (optional) 

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

$api_instance = new Swagger\Client\Api\ListUsersApi();
$apiecoKey = apiecoKey_example; // String | 
$page = 8.14; // BigDecimal | 
$delay = 8.14; // BigDecimal | Get Response With A Delay in seconds

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

my $api_instance = WWW::SwaggerClient::ListUsersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $page = 8.14; # BigDecimal | 
my $delay = 8.14; # BigDecimal | Get Response With A Delay in seconds

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

# create an instance of the API class
api_instance = swagger_client.ListUsersApi()
apiecoKey = apiecoKey_example # String | 
page = 8.14 # BigDecimal |  (optional)
delay = 8.14 # BigDecimal | Get Response With A Delay in seconds (optional)

try: 
    api_response = api_instance.list_users(apiecoKey, page=page, delay=delay)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ListUsersApi->listUsers: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
page
BigDecimal
delay
BigDecimal
Get Response With A Delay in seconds

Responses

Status: 200 - Successful


Login

login


/login

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/reqres/api/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LoginApi;

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

public class LoginApiExample {

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

public class LoginApiExample {

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

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

[apiInstance loginWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ReqResApi = require('req__res_api');

var api = new ReqResApi.LoginApi()

var apiecoKey = apiecoKey_example; // {String} 

var body = ; // {Body_4} 


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

namespace Example
{
    public class loginExample
    {
        public void main()
        {
            
            var apiInstance = new LoginApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var body = new Body_4(); // Body_4 | 

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

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

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

my $api_instance = WWW::SwaggerClient::LoginApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_4->new(); # Body_4 | 

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

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

try: 
    api_response = api_instance.login(apiecoKey, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoginApi->login: %s\n" % e)

Parameters

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

Responses

Status: 200 - Successful


Register

register


/register

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/reqres/api/register"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RegisterApi;

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

public class RegisterApiExample {

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

public class RegisterApiExample {

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

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

[apiInstance registerWith:apiecoKey
    body:body
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ReqResApi = require('req__res_api');

var api = new ReqResApi.RegisterApi()

var apiecoKey = apiecoKey_example; // {String} 

var body = ; // {Body_3} 


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

namespace Example
{
    public class registerExample
    {
        public void main()
        {
            
            var apiInstance = new RegisterApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var body = new Body_3(); // Body_3 | 

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

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

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

my $api_instance = WWW::SwaggerClient::RegisterApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_3->new(); # Body_3 | 

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

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

try: 
    api_response = api_instance.register(apiecoKey, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegisterApi->register: %s\n" % e)

Parameters

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

Responses

Status: 200 - Successful


SingleResource

getResource


/unknown/{resourceid}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/reqres/api/unknown/{resourceid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SingleResourceApi;

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

public class SingleResourceApiExample {

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

public class SingleResourceApiExample {

    public static void main(String[] args) {
        SingleResourceApi apiInstance = new SingleResourceApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal resourceid = 8.14; // BigDecimal | 
        try {
            inline_response_200_2 result = apiInstance.getResource(apiecoKey, resourceid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SingleResourceApi#getResource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *resourceid = 8.14; // 

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

[apiInstance getResourceWith:apiecoKey
    resourceid:resourceid
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ReqResApi = require('req__res_api');

var api = new ReqResApi.SingleResourceApi()

var apiecoKey = apiecoKey_example; // {String} 

var resourceid = 8.14; // {BigDecimal} 


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

namespace Example
{
    public class getResourceExample
    {
        public void main()
        {
            
            var apiInstance = new SingleResourceApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var resourceid = 8.14;  // BigDecimal | 

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

$api_instance = new Swagger\Client\Api\SingleResourceApi();
$apiecoKey = apiecoKey_example; // String | 
$resourceid = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::SingleResourceApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $resourceid = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.SingleResourceApi()
apiecoKey = apiecoKey_example # String | 
resourceid = 8.14 # BigDecimal | 

try: 
    api_response = api_instance.get_resource(apiecoKey, resourceid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SingleResourceApi->getResource: %s\n" % e)

Parameters

Path parameters
Name Description
resourceid*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 400 - NOT FOUND


SingleUser

getUser


/users/{userid}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/reqres/api/users/{userid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SingleUserApi;

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

public class SingleUserApiExample {

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

public class SingleUserApiExample {

    public static void main(String[] args) {
        SingleUserApi apiInstance = new SingleUserApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal userid = 8.14; // BigDecimal | 
        try {
            inline_response_200_2 result = apiInstance.getUser(apiecoKey, userid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SingleUserApi#getUser");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *userid = 8.14; // 

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

[apiInstance getUserWith:apiecoKey
    userid:userid
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ReqResApi = require('req__res_api');

var api = new ReqResApi.SingleUserApi()

var apiecoKey = apiecoKey_example; // {String} 

var userid = 8.14; // {BigDecimal} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUser(apiecoKey, userid, 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()
        {
            
            var apiInstance = new SingleUserApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var userid = 8.14;  // BigDecimal | 

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

$api_instance = new Swagger\Client\Api\SingleUserApi();
$apiecoKey = apiecoKey_example; // String | 
$userid = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::SingleUserApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $userid = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.SingleUserApi()
apiecoKey = apiecoKey_example # String | 
userid = 8.14 # BigDecimal | 

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

Parameters

Path parameters
Name Description
userid*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful

Status: 400 - NOT FOUND


UpdateUser

updateUser


/users/{userid}

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/reqres/api/users/{userid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UpdateUserApi;

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

public class UpdateUserApiExample {

    public static void main(String[] args) {
        
        UpdateUserApi apiInstance = new UpdateUserApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal userid = 8.14; // BigDecimal | 
        Body_1 body = ; // Body_1 | 
        try {
            inline_response_200_3 result = apiInstance.updateUser(apiecoKey, userid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpdateUserApi#updateUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UpdateUserApi;

public class UpdateUserApiExample {

    public static void main(String[] args) {
        UpdateUserApi apiInstance = new UpdateUserApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal userid = 8.14; // BigDecimal | 
        Body_1 body = ; // Body_1 | 
        try {
            inline_response_200_3 result = apiInstance.updateUser(apiecoKey, userid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpdateUserApi#updateUser");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *userid = 8.14; // 
Body_1 *body = ; // 

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

[apiInstance updateUserWith:apiecoKey
    userid:userid
    body:body
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ReqResApi = require('req__res_api');

var api = new ReqResApi.UpdateUserApi()

var apiecoKey = apiecoKey_example; // {String} 

var userid = 8.14; // {BigDecimal} 

var body = ; // {Body_1} 


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

namespace Example
{
    public class updateUserExample
    {
        public void main()
        {
            
            var apiInstance = new UpdateUserApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var userid = 8.14;  // BigDecimal | 
            var body = new Body_1(); // Body_1 | 

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

$api_instance = new Swagger\Client\Api\UpdateUserApi();
$apiecoKey = apiecoKey_example; // String | 
$userid = 8.14; // BigDecimal | 
$body = ; // Body_1 | 

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

my $api_instance = WWW::SwaggerClient::UpdateUserApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $userid = 8.14; # BigDecimal | 
my $body = WWW::SwaggerClient::Object::Body_1->new(); # Body_1 | 

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

# create an instance of the API class
api_instance = swagger_client.UpdateUserApi()
apiecoKey = apiecoKey_example # String | 
userid = 8.14 # BigDecimal | 
body =  # Body_1 | 

try: 
    api_response = api_instance.update_user(apiecoKey, userid, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UpdateUserApi->updateUser: %s\n" % e)

Parameters

Path parameters
Name Description
userid*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Successful


updateUserPatch


/users/{userid}

Usage and SDK Samples

curl -X PATCH "https://api.apieco.ir/reqres/api/users/{userid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UpdateUserApi;

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

public class UpdateUserApiExample {

    public static void main(String[] args) {
        
        UpdateUserApi apiInstance = new UpdateUserApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal userid = 8.14; // BigDecimal | 
        Body_2 body = ; // Body_2 | 
        try {
            inline_response_200_3 result = apiInstance.updateUserPatch(apiecoKey, userid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpdateUserApi#updateUserPatch");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UpdateUserApi;

public class UpdateUserApiExample {

    public static void main(String[] args) {
        UpdateUserApi apiInstance = new UpdateUserApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal userid = 8.14; // BigDecimal | 
        Body_2 body = ; // Body_2 | 
        try {
            inline_response_200_3 result = apiInstance.updateUserPatch(apiecoKey, userid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpdateUserApi#updateUserPatch");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *userid = 8.14; // 
Body_2 *body = ; // 

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

[apiInstance updateUserPatchWith:apiecoKey
    userid:userid
    body:body
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ReqResApi = require('req__res_api');

var api = new ReqResApi.UpdateUserApi()

var apiecoKey = apiecoKey_example; // {String} 

var userid = 8.14; // {BigDecimal} 

var body = ; // {Body_2} 


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

namespace Example
{
    public class updateUserPatchExample
    {
        public void main()
        {
            
            var apiInstance = new UpdateUserApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var userid = 8.14;  // BigDecimal | 
            var body = new Body_2(); // Body_2 | 

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

$api_instance = new Swagger\Client\Api\UpdateUserApi();
$apiecoKey = apiecoKey_example; // String | 
$userid = 8.14; // BigDecimal | 
$body = ; // Body_2 | 

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

my $api_instance = WWW::SwaggerClient::UpdateUserApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $userid = 8.14; # BigDecimal | 
my $body = WWW::SwaggerClient::Object::Body_2->new(); # Body_2 | 

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

# create an instance of the API class
api_instance = swagger_client.UpdateUserApi()
apiecoKey = apiecoKey_example # String | 
userid = 8.14 # BigDecimal | 
body =  # Body_2 | 

try: 
    api_response = api_instance.update_user_patch(apiecoKey, userid, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UpdateUserApi->updateUserPatch: %s\n" % e)

Parameters

Path parameters
Name Description
userid*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Successful