Food Factory

Foods

createFood

To create a food


/foods/create

Usage and SDK Samples

curl -X POST "http://localhost:8080/foods/create"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FoodsApi;

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

public class FoodsApiExample {

    public static void main(String[] args) {
        
        FoodsApi apiInstance = new FoodsApi();
        Request body_8 request body = ; // Request body_8 | The body of the request should be constructed as follows
        try {
            apiInstance.createFood(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#createFood");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FoodsApi;

public class FoodsApiExample {

    public static void main(String[] args) {
        FoodsApi apiInstance = new FoodsApi();
        Request body_8 request body = ; // Request body_8 | The body of the request should be constructed as follows
        try {
            apiInstance.createFood(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#createFood");
            e.printStackTrace();
        }
    }
}
Request body_8 *request body = ; // The body of the request should be constructed as follows (optional)

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

// To create a food
[apiInstance createFoodWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.FoodsApi()

var opts = { 
  'request body':  // {Request body_8} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class createFoodExample
    {
        public void main()
        {
            
            var apiInstance = new FoodsApi();
            var request body = new Request body_8(); // Request body_8 | The body of the request should be constructed as follows (optional) 

            try
            {
                // To create a food
                apiInstance.createFood(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FoodsApi.createFood: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FoodsApi();
$request body = ; // Request body_8 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::FoodsApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_8->new(); # Request body_8 | The body of the request should be constructed as follows

eval { 
    $api_instance->createFood(request body => $request body);
};
if ($@) {
    warn "Exception when calling FoodsApi->createFood: $@\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.FoodsApi()
request body =  # Request body_8 | The body of the request should be constructed as follows (optional)

try: 
    # To create a food
    api_instance.create_food(request body=request body)
except ApiException as e:
    print("Exception when calling FoodsApi->createFood: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Food creation successful; success false - Food creation failed


deleteFood

To delete food


/foods/delete

Usage and SDK Samples

curl -X POST "http://localhost:8080/foods/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FoodsApi;

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

public class FoodsApiExample {

    public static void main(String[] args) {
        
        FoodsApi apiInstance = new FoodsApi();
        Request body_10 request body = ; // Request body_10 | The body of the request should be constructed as follows
        try {
            apiInstance.deleteFood(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#deleteFood");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FoodsApi;

public class FoodsApiExample {

    public static void main(String[] args) {
        FoodsApi apiInstance = new FoodsApi();
        Request body_10 request body = ; // Request body_10 | The body of the request should be constructed as follows
        try {
            apiInstance.deleteFood(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#deleteFood");
            e.printStackTrace();
        }
    }
}
Request body_10 *request body = ; // The body of the request should be constructed as follows (optional)

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

// To delete food
[apiInstance deleteFoodWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.FoodsApi()

var opts = { 
  'request body':  // {Request body_10} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class deleteFoodExample
    {
        public void main()
        {
            
            var apiInstance = new FoodsApi();
            var request body = new Request body_10(); // Request body_10 | The body of the request should be constructed as follows (optional) 

            try
            {
                // To delete food
                apiInstance.deleteFood(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FoodsApi.deleteFood: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FoodsApi();
$request body = ; // Request body_10 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::FoodsApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_10->new(); # Request body_10 | The body of the request should be constructed as follows

eval { 
    $api_instance->deleteFood(request body => $request body);
};
if ($@) {
    warn "Exception when calling FoodsApi->deleteFood: $@\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.FoodsApi()
request body =  # Request body_10 | The body of the request should be constructed as follows (optional)

try: 
    # To delete food
    api_instance.delete_food(request body=request body)
except ApiException as e:
    print("Exception when calling FoodsApi->deleteFood: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Food delete successful; success false - Food delete failed


foodDetail

To fetch a foodDetail


/foods/detail

Usage and SDK Samples

curl -X GET "http://localhost:8080/foods/detail?Params="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FoodsApi;

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

public class FoodsApiExample {

    public static void main(String[] args) {
        
        FoodsApi apiInstance = new FoodsApi();
        String params = params_example; // String | lotNumber required
        try {
            apiInstance.foodDetail(params);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#foodDetail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FoodsApi;

public class FoodsApiExample {

    public static void main(String[] args) {
        FoodsApi apiInstance = new FoodsApi();
        String params = params_example; // String | lotNumber required
        try {
            apiInstance.foodDetail(params);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#foodDetail");
            e.printStackTrace();
        }
    }
}
String *params = params_example; // lotNumber required (optional)

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

// To fetch a foodDetail
[apiInstance foodDetailWith:params
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.FoodsApi()

var opts = { 
  'params': params_example // {String} lotNumber required
};

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

namespace Example
{
    public class foodDetailExample
    {
        public void main()
        {
            
            var apiInstance = new FoodsApi();
            var params = params_example;  // String | lotNumber required (optional) 

            try
            {
                // To fetch a foodDetail
                apiInstance.foodDetail(params);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FoodsApi.foodDetail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FoodsApi();
$params = params_example; // String | lotNumber required

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

my $api_instance = WWW::SwaggerClient::FoodsApi->new();
my $params = params_example; # String | lotNumber required

eval { 
    $api_instance->foodDetail(params => $params);
};
if ($@) {
    warn "Exception when calling FoodsApi->foodDetail: $@\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.FoodsApi()
params = params_example # String | lotNumber required (optional)

try: 
    # To fetch a foodDetail
    api_instance.food_detail(params=params)
except ApiException as e:
    print("Exception when calling FoodsApi->foodDetail: %s\n" % e)

Parameters

Query parameters
Name Description
Params
String
lotNumber required

Responses

Status: 200 - success true - Food detail fetched successfully; success false - Food detail fetch failed


foodcost

To determine food with costOfProduction > sellingCost


/foods/cost

Usage and SDK Samples

curl -X GET "http://localhost:8080/foods/cost?Params="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FoodsApi;

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

public class FoodsApiExample {

    public static void main(String[] args) {
        
        FoodsApi apiInstance = new FoodsApi();
        String params = params_example; // String | No parameters required
        try {
            apiInstance.foodcost(params);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#foodcost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FoodsApi;

public class FoodsApiExample {

    public static void main(String[] args) {
        FoodsApi apiInstance = new FoodsApi();
        String params = params_example; // String | No parameters required
        try {
            apiInstance.foodcost(params);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#foodcost");
            e.printStackTrace();
        }
    }
}
String *params = params_example; // No parameters required (optional)

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

// To determine food with costOfProduction > sellingCost 
[apiInstance foodcostWith:params
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.FoodsApi()

var opts = { 
  'params': params_example // {String} No parameters required
};

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

namespace Example
{
    public class foodcostExample
    {
        public void main()
        {
            
            var apiInstance = new FoodsApi();
            var params = params_example;  // String | No parameters required (optional) 

            try
            {
                // To determine food with costOfProduction > sellingCost 
                apiInstance.foodcost(params);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FoodsApi.foodcost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FoodsApi();
$params = params_example; // String | No parameters required

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

my $api_instance = WWW::SwaggerClient::FoodsApi->new();
my $params = params_example; # String | No parameters required

eval { 
    $api_instance->foodcost(params => $params);
};
if ($@) {
    warn "Exception when calling FoodsApi->foodcost: $@\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.FoodsApi()
params = params_example # String | No parameters required (optional)

try: 
    # To determine food with costOfProduction > sellingCost 
    api_instance.foodcost(params=params)
except ApiException as e:
    print("Exception when calling FoodsApi->foodcost: %s\n" % e)

Parameters

Query parameters
Name Description
Params
String
No parameters required

Responses

Status: 200 - success true - Data return successful; success false - Error occured while estimating.


foodlist

To fetch list of foods


/foods/list

Usage and SDK Samples

curl -X GET "http://localhost:8080/foods/list?Params="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FoodsApi;

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

public class FoodsApiExample {

    public static void main(String[] args) {
        
        FoodsApi apiInstance = new FoodsApi();
        String params = params_example; // String | No parameters required
        try {
            apiInstance.foodlist(params);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#foodlist");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FoodsApi;

public class FoodsApiExample {

    public static void main(String[] args) {
        FoodsApi apiInstance = new FoodsApi();
        String params = params_example; // String | No parameters required
        try {
            apiInstance.foodlist(params);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#foodlist");
            e.printStackTrace();
        }
    }
}
String *params = params_example; // No parameters required (optional)

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

// To fetch list of foods
[apiInstance foodlistWith:params
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.FoodsApi()

var opts = { 
  'params': params_example // {String} No parameters required
};

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

namespace Example
{
    public class foodlistExample
    {
        public void main()
        {
            
            var apiInstance = new FoodsApi();
            var params = params_example;  // String | No parameters required (optional) 

            try
            {
                // To fetch list of foods
                apiInstance.foodlist(params);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FoodsApi.foodlist: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FoodsApi();
$params = params_example; // String | No parameters required

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

my $api_instance = WWW::SwaggerClient::FoodsApi->new();
my $params = params_example; # String | No parameters required

eval { 
    $api_instance->foodlist(params => $params);
};
if ($@) {
    warn "Exception when calling FoodsApi->foodlist: $@\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.FoodsApi()
params = params_example # String | No parameters required (optional)

try: 
    # To fetch list of foods
    api_instance.foodlist(params=params)
except ApiException as e:
    print("Exception when calling FoodsApi->foodlist: %s\n" % e)

Parameters

Query parameters
Name Description
Params
String
No parameters required

Responses

Status: 200 - success true - Food list fetched successfully; success false - Food list fetch failed


updateFood

To update food


/foods/update

Usage and SDK Samples

curl -X POST "http://localhost:8080/foods/update"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FoodsApi;

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

public class FoodsApiExample {

    public static void main(String[] args) {
        
        FoodsApi apiInstance = new FoodsApi();
        Request body_9 request body = ; // Request body_9 | The body of the request should be constructed as follows
        try {
            apiInstance.updateFood(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#updateFood");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FoodsApi;

public class FoodsApiExample {

    public static void main(String[] args) {
        FoodsApi apiInstance = new FoodsApi();
        Request body_9 request body = ; // Request body_9 | The body of the request should be constructed as follows
        try {
            apiInstance.updateFood(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling FoodsApi#updateFood");
            e.printStackTrace();
        }
    }
}
Request body_9 *request body = ; // The body of the request should be constructed as follows (optional)

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

// To update food
[apiInstance updateFoodWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.FoodsApi()

var opts = { 
  'request body':  // {Request body_9} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class updateFoodExample
    {
        public void main()
        {
            
            var apiInstance = new FoodsApi();
            var request body = new Request body_9(); // Request body_9 | The body of the request should be constructed as follows (optional) 

            try
            {
                // To update food
                apiInstance.updateFood(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FoodsApi.updateFood: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\FoodsApi();
$request body = ; // Request body_9 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::FoodsApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_9->new(); # Request body_9 | The body of the request should be constructed as follows

eval { 
    $api_instance->updateFood(request body => $request body);
};
if ($@) {
    warn "Exception when calling FoodsApi->updateFood: $@\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.FoodsApi()
request body =  # Request body_9 | The body of the request should be constructed as follows (optional)

try: 
    # To update food
    api_instance.update_food(request body=request body)
except ApiException as e:
    print("Exception when calling FoodsApi->updateFood: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Food update successful; success false - Food update failed


Orders

neworder

To place a new order


/orders/newOrder

Usage and SDK Samples

curl -X POST "http://localhost:8080/orders/newOrder"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersApi;

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

public class OrdersApiExample {

    public static void main(String[] args) {
        
        OrdersApi apiInstance = new OrdersApi();
        Request body_11 request body = ; // Request body_11 | The body of the request should be constructed as follows
        try {
            apiInstance.neworder(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersApi#neworder");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersApi;

public class OrdersApiExample {

    public static void main(String[] args) {
        OrdersApi apiInstance = new OrdersApi();
        Request body_11 request body = ; // Request body_11 | The body of the request should be constructed as follows
        try {
            apiInstance.neworder(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersApi#neworder");
            e.printStackTrace();
        }
    }
}
Request body_11 *request body = ; // The body of the request should be constructed as follows (optional)

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

// To place a new order
[apiInstance neworderWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.OrdersApi()

var opts = { 
  'request body':  // {Request body_11} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class neworderExample
    {
        public void main()
        {
            
            var apiInstance = new OrdersApi();
            var request body = new Request body_11(); // Request body_11 | The body of the request should be constructed as follows (optional) 

            try
            {
                // To place a new order
                apiInstance.neworder(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersApi.neworder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\OrdersApi();
$request body = ; // Request body_11 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::OrdersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_11->new(); # Request body_11 | The body of the request should be constructed as follows

eval { 
    $api_instance->neworder(request body => $request body);
};
if ($@) {
    warn "Exception when calling OrdersApi->neworder: $@\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.OrdersApi()
request body =  # Request body_11 | The body of the request should be constructed as follows (optional)

try: 
    # To place a new order
    api_instance.neworder(request body=request body)
except ApiException as e:
    print("Exception when calling OrdersApi->neworder: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Order placed successfully; success false - Error occured while placing order.


orderlist

To fetch all orders


/orders/list

Usage and SDK Samples

curl -X GET "http://localhost:8080/orders/list?Params="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersApi;

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

public class OrdersApiExample {

    public static void main(String[] args) {
        
        OrdersApi apiInstance = new OrdersApi();
        String params = params_example; // String | No parameters required
        try {
            apiInstance.orderlist(params);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersApi#orderlist");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersApi;

public class OrdersApiExample {

    public static void main(String[] args) {
        OrdersApi apiInstance = new OrdersApi();
        String params = params_example; // String | No parameters required
        try {
            apiInstance.orderlist(params);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersApi#orderlist");
            e.printStackTrace();
        }
    }
}
String *params = params_example; // No parameters required (optional)

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

// To fetch all orders 
[apiInstance orderlistWith:params
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.OrdersApi()

var opts = { 
  'params': params_example // {String} No parameters required
};

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

namespace Example
{
    public class orderlistExample
    {
        public void main()
        {
            
            var apiInstance = new OrdersApi();
            var params = params_example;  // String | No parameters required (optional) 

            try
            {
                // To fetch all orders 
                apiInstance.orderlist(params);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersApi.orderlist: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\OrdersApi();
$params = params_example; // String | No parameters required

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

my $api_instance = WWW::SwaggerClient::OrdersApi->new();
my $params = params_example; # String | No parameters required

eval { 
    $api_instance->orderlist(params => $params);
};
if ($@) {
    warn "Exception when calling OrdersApi->orderlist: $@\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.OrdersApi()
params = params_example # String | No parameters required (optional)

try: 
    # To fetch all orders 
    api_instance.orderlist(params=params)
except ApiException as e:
    print("Exception when calling OrdersApi->orderlist: %s\n" % e)

Parameters

Query parameters
Name Description
Params
String
No parameters required

Responses

Status: 200 - success true - Orders fetched successfully; success false - Error occured while fetching all orders.


orderstatus

To update order status


/orders/status

Usage and SDK Samples

curl -X POST "http://localhost:8080/orders/status"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersApi;

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

public class OrdersApiExample {

    public static void main(String[] args) {
        
        OrdersApi apiInstance = new OrdersApi();
        Request body_12 request body = ; // Request body_12 | The body of the request should be constructed as follows
        try {
            apiInstance.orderstatus(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersApi#orderstatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersApi;

public class OrdersApiExample {

    public static void main(String[] args) {
        OrdersApi apiInstance = new OrdersApi();
        Request body_12 request body = ; // Request body_12 | The body of the request should be constructed as follows
        try {
            apiInstance.orderstatus(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersApi#orderstatus");
            e.printStackTrace();
        }
    }
}
Request body_12 *request body = ; // The body of the request should be constructed as follows (optional)

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

// To update order status 
[apiInstance orderstatusWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.OrdersApi()

var opts = { 
  'request body':  // {Request body_12} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class orderstatusExample
    {
        public void main()
        {
            
            var apiInstance = new OrdersApi();
            var request body = new Request body_12(); // Request body_12 | The body of the request should be constructed as follows (optional) 

            try
            {
                // To update order status 
                apiInstance.orderstatus(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersApi.orderstatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\OrdersApi();
$request body = ; // Request body_12 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::OrdersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_12->new(); # Request body_12 | The body of the request should be constructed as follows

eval { 
    $api_instance->orderstatus(request body => $request body);
};
if ($@) {
    warn "Exception when calling OrdersApi->orderstatus: $@\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.OrdersApi()
request body =  # Request body_12 | The body of the request should be constructed as follows (optional)

try: 
    # To update order status 
    api_instance.orderstatus(request body=request body)
except ApiException as e:
    print("Exception when calling OrdersApi->orderstatus: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Order updated successfully; success false - Error occured while updating order.


userorders

To fetch user order


/orders/userOrders

Usage and SDK Samples

curl -X POST "http://localhost:8080/orders/userOrders"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersApi;

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

public class OrdersApiExample {

    public static void main(String[] args) {
        
        OrdersApi apiInstance = new OrdersApi();
        Request body_13 request body = ; // Request body_13 | The body of the request should be constructed as follows
        try {
            apiInstance.userorders(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersApi#userorders");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdersApi;

public class OrdersApiExample {

    public static void main(String[] args) {
        OrdersApi apiInstance = new OrdersApi();
        Request body_13 request body = ; // Request body_13 | The body of the request should be constructed as follows
        try {
            apiInstance.userorders(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdersApi#userorders");
            e.printStackTrace();
        }
    }
}
Request body_13 *request body = ; // The body of the request should be constructed as follows (optional)

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

// To fetch user order 
[apiInstance userordersWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.OrdersApi()

var opts = { 
  'request body':  // {Request body_13} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class userordersExample
    {
        public void main()
        {
            
            var apiInstance = new OrdersApi();
            var request body = new Request body_13(); // Request body_13 | The body of the request should be constructed as follows (optional) 

            try
            {
                // To fetch user order 
                apiInstance.userorders(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdersApi.userorders: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\OrdersApi();
$request body = ; // Request body_13 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::OrdersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_13->new(); # Request body_13 | The body of the request should be constructed as follows

eval { 
    $api_instance->userorders(request body => $request body);
};
if ($@) {
    warn "Exception when calling OrdersApi->userorders: $@\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.OrdersApi()
request body =  # Request body_13 | The body of the request should be constructed as follows (optional)

try: 
    # To fetch user order 
    api_instance.userorders(request body=request body)
except ApiException as e:
    print("Exception when calling OrdersApi->userorders: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Successfully fetched user orders; success false - Error occured while fetching user orders.


Users

changePassword

user Change Password


/users/changePassword

Usage and SDK Samples

curl -X POST "http://localhost:8080/users/changePassword"
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) {
        
        UsersApi apiInstance = new UsersApi();
        Request body_2 request body = ; // Request body_2 | The body of the request should be constructed as follows
        try {
            apiInstance.changePassword(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#changePassword");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Request body_2 request body = ; // Request body_2 | The body of the request should be constructed as follows
        try {
            apiInstance.changePassword(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#changePassword");
            e.printStackTrace();
        }
    }
}
Request body_2 *request body = ; // The body of the request should be constructed as follows (optional)

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

// user Change Password
[apiInstance changePasswordWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.UsersApi()

var opts = { 
  'request body':  // {Request body_2} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class changePasswordExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var request body = new Request body_2(); // Request body_2 | The body of the request should be constructed as follows (optional) 

            try
            {
                // user Change Password
                apiInstance.changePassword(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.changePassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$request body = ; // Request body_2 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_2->new(); # Request body_2 | The body of the request should be constructed as follows

eval { 
    $api_instance->changePassword(request body => $request body);
};
if ($@) {
    warn "Exception when calling UsersApi->changePassword: $@\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.UsersApi()
request body =  # Request body_2 | The body of the request should be constructed as follows (optional)

try: 
    # user Change Password
    api_instance.change_password(request body=request body)
except ApiException as e:
    print("Exception when calling UsersApi->changePassword: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Change Password successful; success false - Change Password failed


deactivate

Deactivate a user


/users/deactivate

Usage and SDK Samples

curl -X POST "http://localhost:8080/users/deactivate"
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) {
        
        UsersApi apiInstance = new UsersApi();
        Request body_4 request body = ; // Request body_4 | The body of the request should be constructed as follows
        try {
            apiInstance.deactivate(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#deactivate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Request body_4 request body = ; // Request body_4 | The body of the request should be constructed as follows
        try {
            apiInstance.deactivate(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#deactivate");
            e.printStackTrace();
        }
    }
}
Request body_4 *request body = ; // The body of the request should be constructed as follows (optional)

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

// Deactivate a user
[apiInstance deactivateWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.UsersApi()

var opts = { 
  'request body':  // {Request body_4} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class deactivateExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var request body = new Request body_4(); // Request body_4 | The body of the request should be constructed as follows (optional) 

            try
            {
                // Deactivate a user
                apiInstance.deactivate(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.deactivate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$request body = ; // Request body_4 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_4->new(); # Request body_4 | The body of the request should be constructed as follows

eval { 
    $api_instance->deactivate(request body => $request body);
};
if ($@) {
    warn "Exception when calling UsersApi->deactivate: $@\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.UsersApi()
request body =  # Request body_4 | The body of the request should be constructed as follows (optional)

try: 
    # Deactivate a user
    api_instance.deactivate(request body=request body)
except ApiException as e:
    print("Exception when calling UsersApi->deactivate: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - User deactivation successful; success false - User deactivation failed


delete

To delete an user


/users/delete

Usage and SDK Samples

curl -X POST "http://localhost:8080/users/delete"
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) {
        
        UsersApi apiInstance = new UsersApi();
        Request body_7 request body = ; // Request body_7 | The body of the request should be constructed as follows
        try {
            apiInstance.delete(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#delete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Request body_7 request body = ; // Request body_7 | The body of the request should be constructed as follows
        try {
            apiInstance.delete(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#delete");
            e.printStackTrace();
        }
    }
}
Request body_7 *request body = ; // The body of the request should be constructed as follows (optional)

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

// To delete an user
[apiInstance deleteWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.UsersApi()

var opts = { 
  'request body':  // {Request body_7} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class deleteExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var request body = new Request body_7(); // Request body_7 | The body of the request should be constructed as follows (optional) 

            try
            {
                // To delete an user
                apiInstance.delete(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$request body = ; // Request body_7 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_7->new(); # Request body_7 | The body of the request should be constructed as follows

eval { 
    $api_instance->delete(request body => $request body);
};
if ($@) {
    warn "Exception when calling UsersApi->delete: $@\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.UsersApi()
request body =  # Request body_7 | The body of the request should be constructed as follows (optional)

try: 
    # To delete an user
    api_instance.delete(request body=request body)
except ApiException as e:
    print("Exception when calling UsersApi->delete: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - User delete successful; success false - User delete failed


list

To list all users


/users/list

Usage and SDK Samples

curl -X GET "http://localhost:8080/users/list?Params="
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) {
        
        UsersApi apiInstance = new UsersApi();
        String params = params_example; // String | No parameters required
        try {
            apiInstance.list(params);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#list");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String params = params_example; // String | No parameters required
        try {
            apiInstance.list(params);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#list");
            e.printStackTrace();
        }
    }
}
String *params = params_example; // No parameters required (optional)

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

// To list all users
[apiInstance listWith:params
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.UsersApi()

var opts = { 
  'params': params_example // {String} No parameters required
};

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

namespace Example
{
    public class listExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var params = params_example;  // String | No parameters required (optional) 

            try
            {
                // To list all users
                apiInstance.list(params);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.list: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$params = params_example; // String | No parameters required

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

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $params = params_example; # String | No parameters required

eval { 
    $api_instance->list(params => $params);
};
if ($@) {
    warn "Exception when calling UsersApi->list: $@\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.UsersApi()
params = params_example # String | No parameters required (optional)

try: 
    # To list all users
    api_instance.list(params=params)
except ApiException as e:
    print("Exception when calling UsersApi->list: %s\n" % e)

Parameters

Query parameters
Name Description
Params
String
No parameters required

Responses

Status: 200 - success true - Fetching user list successful; success false - Fetching User list failed


login

user Login


/users/login

Usage and SDK Samples

curl -X POST "http://localhost:8080/users/login"
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) {
        
        UsersApi apiInstance = new UsersApi();
        Request body_1 request body = ; // Request body_1 | The body of the request should be constructed as follows
        try {
            apiInstance.login(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#login");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Request body_1 request body = ; // Request body_1 | The body of the request should be constructed as follows
        try {
            apiInstance.login(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#login");
            e.printStackTrace();
        }
    }
}
Request body_1 *request body = ; // The body of the request should be constructed as follows (optional)

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

// user Login
[apiInstance loginWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.UsersApi()

var opts = { 
  'request body':  // {Request body_1} The body of the request should be constructed as follows
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.login(opts, 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 UsersApi();
            var request body = new Request body_1(); // Request body_1 | The body of the request should be constructed as follows (optional) 

            try
            {
                // user Login
                apiInstance.login(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.login: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$request body = ; // Request body_1 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_1->new(); # Request body_1 | The body of the request should be constructed as follows

eval { 
    $api_instance->login(request body => $request body);
};
if ($@) {
    warn "Exception when calling UsersApi->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.UsersApi()
request body =  # Request body_1 | The body of the request should be constructed as follows (optional)

try: 
    # user Login
    api_instance.login(request body=request body)
except ApiException as e:
    print("Exception when calling UsersApi->login: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Login successful; success false - Login failed


resetPassword

user Reset Password


/users/resetPassword

Usage and SDK Samples

curl -X POST "http://localhost:8080/users/resetPassword"
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) {
        
        UsersApi apiInstance = new UsersApi();
        Request body_3 request body = ; // Request body_3 | The body of the request should be constructed as follows
        try {
            apiInstance.resetPassword(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#resetPassword");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Request body_3 request body = ; // Request body_3 | The body of the request should be constructed as follows
        try {
            apiInstance.resetPassword(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#resetPassword");
            e.printStackTrace();
        }
    }
}
Request body_3 *request body = ; // The body of the request should be constructed as follows (optional)

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

// user Reset Password
[apiInstance resetPasswordWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.UsersApi()

var opts = { 
  'request body':  // {Request body_3} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class resetPasswordExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var request body = new Request body_3(); // Request body_3 | The body of the request should be constructed as follows (optional) 

            try
            {
                // user Reset Password
                apiInstance.resetPassword(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.resetPassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$request body = ; // Request body_3 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_3->new(); # Request body_3 | The body of the request should be constructed as follows

eval { 
    $api_instance->resetPassword(request body => $request body);
};
if ($@) {
    warn "Exception when calling UsersApi->resetPassword: $@\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.UsersApi()
request body =  # Request body_3 | The body of the request should be constructed as follows (optional)

try: 
    # user Reset Password
    api_instance.reset_password(request body=request body)
except ApiException as e:
    print("Exception when calling UsersApi->resetPassword: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Reset password successful; success false - Reset password failed


signup

New user signup


/users/signup

Usage and SDK Samples

curl -X POST "http://localhost:8080/users/signup"
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) {
        
        UsersApi apiInstance = new UsersApi();
        Request body request body = ; // Request body | The body of the request should be constructed as follows
        try {
            apiInstance.signup(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#signup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Request body request body = ; // Request body | The body of the request should be constructed as follows
        try {
            apiInstance.signup(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#signup");
            e.printStackTrace();
        }
    }
}
Request body *request body = ; // The body of the request should be constructed as follows (optional)

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

// New user signup
[apiInstance signupWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.UsersApi()

var opts = { 
  'request body':  // {Request body} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class signupExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var request body = new Request body(); // Request body | The body of the request should be constructed as follows (optional) 

            try
            {
                // New user signup
                apiInstance.signup(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.signup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$request body = ; // Request body | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body->new(); # Request body | The body of the request should be constructed as follows

eval { 
    $api_instance->signup(request body => $request body);
};
if ($@) {
    warn "Exception when calling UsersApi->signup: $@\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.UsersApi()
request body =  # Request body | The body of the request should be constructed as follows (optional)

try: 
    # New user signup
    api_instance.signup(request body=request body)
except ApiException as e:
    print("Exception when calling UsersApi->signup: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Signup successful; success false - Signup failed


update

To update a user


/users/update

Usage and SDK Samples

curl -X POST "http://localhost:8080/users/update"
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) {
        
        UsersApi apiInstance = new UsersApi();
        Request body_5 request body = ; // Request body_5 | The body of the request should be constructed as follows
        try {
            apiInstance.update(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Request body_5 request body = ; // Request body_5 | The body of the request should be constructed as follows
        try {
            apiInstance.update(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#update");
            e.printStackTrace();
        }
    }
}
Request body_5 *request body = ; // The body of the request should be constructed as follows (optional)

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

// To update a user
[apiInstance updateWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.UsersApi()

var opts = { 
  'request body':  // {Request body_5} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class updateExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var request body = new Request body_5(); // Request body_5 | The body of the request should be constructed as follows (optional) 

            try
            {
                // To update a user
                apiInstance.update(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$request body = ; // Request body_5 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_5->new(); # Request body_5 | The body of the request should be constructed as follows

eval { 
    $api_instance->update(request body => $request body);
};
if ($@) {
    warn "Exception when calling UsersApi->update: $@\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.UsersApi()
request body =  # Request body_5 | The body of the request should be constructed as follows (optional)

try: 
    # To update a user
    api_instance.update(request body=request body)
except ApiException as e:
    print("Exception when calling UsersApi->update: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - User update successful; success false - user update failed


userdetail

View an user


/users/userdetail

Usage and SDK Samples

curl -X POST "http://localhost:8080/users/userdetail"
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) {
        
        UsersApi apiInstance = new UsersApi();
        Request body_6 request body = ; // Request body_6 | The body of the request should be constructed as follows
        try {
            apiInstance.userdetail(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userdetail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsersApi;

public class UsersApiExample {

    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Request body_6 request body = ; // Request body_6 | The body of the request should be constructed as follows
        try {
            apiInstance.userdetail(request body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userdetail");
            e.printStackTrace();
        }
    }
}
Request body_6 *request body = ; // The body of the request should be constructed as follows (optional)

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

// View an user
[apiInstance userdetailWith:request body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FoodFactory = require('food_factory');

var api = new FoodFactory.UsersApi()

var opts = { 
  'request body':  // {Request body_6} The body of the request should be constructed as follows
};

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

namespace Example
{
    public class userdetailExample
    {
        public void main()
        {
            
            var apiInstance = new UsersApi();
            var request body = new Request body_6(); // Request body_6 | The body of the request should be constructed as follows (optional) 

            try
            {
                // View an user
                apiInstance.userdetail(request body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsersApi.userdetail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsersApi();
$request body = ; // Request body_6 | The body of the request should be constructed as follows

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

my $api_instance = WWW::SwaggerClient::UsersApi->new();
my $request body = WWW::SwaggerClient::Object::Request body_6->new(); # Request body_6 | The body of the request should be constructed as follows

eval { 
    $api_instance->userdetail(request body => $request body);
};
if ($@) {
    warn "Exception when calling UsersApi->userdetail: $@\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.UsersApi()
request body =  # Request body_6 | The body of the request should be constructed as follows (optional)

try: 
    # View an user
    api_instance.userdetail(request body=request body)
except ApiException as e:
    print("Exception when calling UsersApi->userdetail: %s\n" % e)

Parameters

Body parameters
Name Description
request body

Responses

Status: 200 - success true - Fetching user detail successful; success false - Fetching user detail failed