carsByColor
Cars By Color
/api/cars/color/{color}
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/myfakeapi/api/cars/color/{color}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CarsApi;
import java.io.File;
import java.util.*;
public class CarsApiExample {
public static void main(String[] args) {
CarsApi apiInstance = new CarsApi();
String apiecoKey = apiecoKey_example; // String |
String color = color_example; // String |
try {
inline_response_200_4 result = apiInstance.carsByColor(apiecoKey, color);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CarsApi#carsByColor");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CarsApi;
public class CarsApiExample {
public static void main(String[] args) {
CarsApi apiInstance = new CarsApi();
String apiecoKey = apiecoKey_example; // String |
String color = color_example; // String |
try {
inline_response_200_4 result = apiInstance.carsByColor(apiecoKey, color);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CarsApi#carsByColor");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
String *color = color_example; //
CarsApi *apiInstance = [[CarsApi alloc] init];
// Cars By Color
[apiInstance carsByColorWith:apiecoKey
color:color
completionHandler: ^(inline_response_200_4 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var MyFakeApi = require('my_fake_api');
var api = new MyFakeApi.CarsApi()
var apiecoKey = apiecoKey_example; // {String}
var color = color_example; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.carsByColor(apiecoKey, color, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class carsByColorExample
{
public void main()
{
var apiInstance = new CarsApi();
var apiecoKey = apiecoKey_example; // String |
var color = color_example; // String |
try
{
// Cars By Color
inline_response_200_4 result = apiInstance.carsByColor(apiecoKey, color);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CarsApi.carsByColor: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CarsApi();
$apiecoKey = apiecoKey_example; // String |
$color = color_example; // String |
try {
$result = $api_instance->carsByColor($apiecoKey, $color);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CarsApi->carsByColor: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CarsApi;
my $api_instance = WWW::SwaggerClient::CarsApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $color = color_example; # String |
eval {
my $result = $api_instance->carsByColor(apiecoKey => $apiecoKey, color => $color);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CarsApi->carsByColor: $@\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.CarsApi()
apiecoKey = apiecoKey_example # String |
color = color_example # String |
try:
# Cars By Color
api_response = api_instance.cars_by_color(apiecoKey, color)
pprint(api_response)
except ApiException as e:
print("Exception when calling CarsApi->carsByColor: %s\n" % e)
Parameters
Name | Description |
---|---|
color* |
String
Required
|
Name | Description |
---|---|
apieco-key* |
String
Required
|