OpenAPI definition

BackendApplication

getMessage


/message

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8443/message"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackendApplicationApi;

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

public class BackendApplicationApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BackendApplicationApi apiInstance = new BackendApplicationApi();

        try {
            'String' result = apiInstance.getMessage();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackendApplicationApi#getMessage");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BackendApplicationApi;

public class BackendApplicationApiExample {
    public static void main(String[] args) {
        BackendApplicationApi apiInstance = new BackendApplicationApi();

        try {
            'String' result = apiInstance.getMessage();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackendApplicationApi#getMessage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BackendApplicationApi *apiInstance = [[BackendApplicationApi alloc] init];

[apiInstance getMessageWithCompletionHandler: 
              ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.BackendApplicationApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMessage(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getMessageExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BackendApplicationApi();

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackendApplicationApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackendApplicationApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.BackendApplicationApi()

try:
    api_response = api_instance.get_message()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackendApplicationApi->getMessage: %s\n" % e)
extern crate BackendApplicationApi;

pub fn main() {

    let mut context = BackendApplicationApi::Context::default();
    let result = client.getMessage(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


DietRestController

getDietAll


/api/diets/

Usage and SDK Samples

curl -X GET \
 "https://localhost:8443/api/diets/"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DietRestControllerApi;

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

public class DietRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DietRestControllerApi apiInstance = new DietRestControllerApi();

        try {
            apiInstance.getDietAll();
        } catch (ApiException e) {
            System.err.println("Exception when calling DietRestControllerApi#getDietAll");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DietRestControllerApi;

public class DietRestControllerApiExample {
    public static void main(String[] args) {
        DietRestControllerApi apiInstance = new DietRestControllerApi();

        try {
            apiInstance.getDietAll();
        } catch (ApiException e) {
            System.err.println("Exception when calling DietRestControllerApi#getDietAll");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DietRestControllerApi *apiInstance = [[DietRestControllerApi alloc] init];

[apiInstance getDietAllWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.DietRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getDietAll(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getDietAllExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DietRestControllerApi();

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DietRestControllerApi();

try {
    $api_instance->getDietAll();
} catch (Exception $e) {
    echo 'Exception when calling DietRestControllerApi->getDietAll: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DietRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DietRestControllerApi->new();

eval {
    $api_instance->getDietAll();
};
if ($@) {
    warn "Exception when calling DietRestControllerApi->getDietAll: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DietRestControllerApi()

try:
    api_instance.get_diet_all()
except ApiException as e:
    print("Exception when calling DietRestControllerApi->getDietAll: %s\n" % e)
extern crate DietRestControllerApi;

pub fn main() {

    let mut context = DietRestControllerApi::Context::default();
    let result = client.getDietAll(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


getDietPage


/api/diets/{id}

Usage and SDK Samples

curl -X GET \
 "https://localhost:8443/api/diets/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DietRestControllerApi;

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

public class DietRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DietRestControllerApi apiInstance = new DietRestControllerApi();
        Long id = 789; // Long | 

        try {
            apiInstance.getDietPage(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DietRestControllerApi#getDietPage");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DietRestControllerApi;

public class DietRestControllerApiExample {
    public static void main(String[] args) {
        DietRestControllerApi apiInstance = new DietRestControllerApi();
        Long id = 789; // Long | 

        try {
            apiInstance.getDietPage(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DietRestControllerApi#getDietPage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DietRestControllerApi *apiInstance = [[DietRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance getDietPageWith:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.DietRestControllerApi()
var id = 789; // {Long} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getDietPage(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getDietPageExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DietRestControllerApi();
            var id = 789;  // Long |  (default to null)

            try {
                apiInstance.getDietPage(id);
            } catch (Exception e) {
                Debug.Print("Exception when calling DietRestControllerApi.getDietPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DietRestControllerApi();
$id = 789; // Long | 

try {
    $api_instance->getDietPage($id);
} catch (Exception $e) {
    echo 'Exception when calling DietRestControllerApi->getDietPage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DietRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DietRestControllerApi->new();
my $id = 789; # Long | 

eval {
    $api_instance->getDietPage(id => $id);
};
if ($@) {
    warn "Exception when calling DietRestControllerApi->getDietPage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DietRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_instance.get_diet_page(id)
except ApiException as e:
    print("Exception when calling DietRestControllerApi->getDietPage: %s\n" % e)
extern crate DietRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = DietRestControllerApi::Context::default();
    let result = client.getDietPage(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


processAddDiet


/api/diets/menus/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 "https://localhost:8443/api/diets/menus/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DietRestControllerApi;

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

public class DietRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DietRestControllerApi apiInstance = new DietRestControllerApi();
        Long id = 789; // Long | 

        try {
            Menu result = apiInstance.processAddDiet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DietRestControllerApi#processAddDiet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DietRestControllerApi;

public class DietRestControllerApiExample {
    public static void main(String[] args) {
        DietRestControllerApi apiInstance = new DietRestControllerApi();
        Long id = 789; // Long | 

        try {
            Menu result = apiInstance.processAddDiet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DietRestControllerApi#processAddDiet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DietRestControllerApi *apiInstance = [[DietRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance processAddDietWith:id
              completionHandler: ^(Menu output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.DietRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class processAddDietExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DietRestControllerApi();
            var id = 789;  // Long |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DietRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DietRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.DietRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.process_add_diet(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DietRestControllerApi->processAddDiet: %s\n" % e)
extern crate DietRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = DietRestControllerApi::Context::default();
    let result = client.processAddDiet(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


processFormDiet


/api/diets/new

Usage and SDK Samples

curl -X POST \
 "https://localhost:8443/api/diets/new?name=name_example&menuList="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DietRestControllerApi;

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

public class DietRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DietRestControllerApi apiInstance = new DietRestControllerApi();
        String name = name_example; // String | 
        array[Long] menuList = ; // array[Long] | 

        try {
            apiInstance.processFormDiet(name, menuList);
        } catch (ApiException e) {
            System.err.println("Exception when calling DietRestControllerApi#processFormDiet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DietRestControllerApi;

public class DietRestControllerApiExample {
    public static void main(String[] args) {
        DietRestControllerApi apiInstance = new DietRestControllerApi();
        String name = name_example; // String | 
        array[Long] menuList = ; // array[Long] | 

        try {
            apiInstance.processFormDiet(name, menuList);
        } catch (ApiException e) {
            System.err.println("Exception when calling DietRestControllerApi#processFormDiet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DietRestControllerApi *apiInstance = [[DietRestControllerApi alloc] init];
String *name = name_example; //  (default to null)
array[Long] *menuList = ; //  (optional) (default to null)

[apiInstance processFormDietWith:name
    menuList:menuList
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.DietRestControllerApi()
var name = name_example; // {String} 
var opts = {
  'menuList':  // {array[Long]} 
};

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

namespace Example
{
    public class processFormDietExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DietRestControllerApi();
            var name = name_example;  // String |  (default to null)
            var menuList = new array[Long](); // array[Long] |  (optional)  (default to null)

            try {
                apiInstance.processFormDiet(name, menuList);
            } catch (Exception e) {
                Debug.Print("Exception when calling DietRestControllerApi.processFormDiet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DietRestControllerApi();
$name = name_example; // String | 
$menuList = ; // array[Long] | 

try {
    $api_instance->processFormDiet($name, $menuList);
} catch (Exception $e) {
    echo 'Exception when calling DietRestControllerApi->processFormDiet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DietRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DietRestControllerApi->new();
my $name = name_example; # String | 
my $menuList = []; # array[Long] | 

eval {
    $api_instance->processFormDiet(name => $name, menuList => $menuList);
};
if ($@) {
    warn "Exception when calling DietRestControllerApi->processFormDiet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DietRestControllerApi()
name = name_example # String |  (default to null)
menuList =  # array[Long] |  (optional) (default to null)

try:
    api_instance.process_form_diet(name, menuList=menuList)
except ApiException as e:
    print("Exception when calling DietRestControllerApi->processFormDiet: %s\n" % e)
extern crate DietRestControllerApi;

pub fn main() {
    let name = name_example; // String
    let menuList = ; // array[Long]

    let mut context = DietRestControllerApi::Context::default();
    let result = client.processFormDiet(name, menuList, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
name*
String
Required
menuList
array[Long] (int64)

Responses


LoginRestController

logOut


/api/auth/logout

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8443/api/auth/logout"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LoginRestControllerApi;

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

public class LoginRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LoginRestControllerApi apiInstance = new LoginRestControllerApi();

        try {
            AuthResponse result = apiInstance.logOut();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginRestControllerApi#logOut");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.LoginRestControllerApi;

public class LoginRestControllerApiExample {
    public static void main(String[] args) {
        LoginRestControllerApi apiInstance = new LoginRestControllerApi();

        try {
            AuthResponse result = apiInstance.logOut();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginRestControllerApi#logOut");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LoginRestControllerApi *apiInstance = [[LoginRestControllerApi alloc] init];

[apiInstance logOutWithCompletionHandler: 
              ^(AuthResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.LoginRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.logOut(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class logOutExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LoginRestControllerApi();

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LoginRestControllerApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LoginRestControllerApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.LoginRestControllerApi()

try:
    api_response = api_instance.log_out()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoginRestControllerApi->logOut: %s\n" % e)
extern crate LoginRestControllerApi;

pub fn main() {

    let mut context = LoginRestControllerApi::Context::default();
    let result = client.logOut(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


processForm


/api/auth/login

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "https://localhost:8443/api/auth/login" \
 -d '{
  "password" : "password",
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LoginRestControllerApi;

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

public class LoginRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
        LoginRequest loginRequest = ; // LoginRequest | 
        String authToken = authToken_example; // String | 
        String refreshToken = refreshToken_example; // String | 

        try {
            AuthResponse result = apiInstance.processForm(loginRequest, authToken, refreshToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginRestControllerApi#processForm");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.LoginRestControllerApi;

public class LoginRestControllerApiExample {
    public static void main(String[] args) {
        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
        LoginRequest loginRequest = ; // LoginRequest | 
        String authToken = authToken_example; // String | 
        String refreshToken = refreshToken_example; // String | 

        try {
            AuthResponse result = apiInstance.processForm(loginRequest, authToken, refreshToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginRestControllerApi#processForm");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LoginRestControllerApi *apiInstance = [[LoginRestControllerApi alloc] init];
LoginRequest *loginRequest = ; // 
String *authToken = authToken_example; //  (optional) (default to null)
String *refreshToken = refreshToken_example; //  (optional) (default to null)

[apiInstance processFormWith:loginRequest
    authToken:authToken
    refreshToken:refreshToken
              completionHandler: ^(AuthResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.LoginRestControllerApi()
var loginRequest = ; // {LoginRequest} 
var opts = {
  'authToken': authToken_example, // {String} 
  'refreshToken': refreshToken_example // {String} 
};

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

namespace Example
{
    public class processFormExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LoginRestControllerApi();
            var loginRequest = new LoginRequest(); // LoginRequest | 
            var authToken = authToken_example;  // String |  (optional)  (default to null)
            var refreshToken = refreshToken_example;  // String |  (optional)  (default to null)

            try {
                AuthResponse result = apiInstance.processForm(loginRequest, authToken, refreshToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LoginRestControllerApi.processForm: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LoginRestControllerApi();
$loginRequest = ; // LoginRequest | 
$authToken = authToken_example; // String | 
$refreshToken = refreshToken_example; // String | 

try {
    $result = $api_instance->processForm($loginRequest, $authToken, $refreshToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LoginRestControllerApi->processForm: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::LoginRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LoginRestControllerApi->new();
my $loginRequest = WWW::OPenAPIClient::Object::LoginRequest->new(); # LoginRequest | 
my $authToken = authToken_example; # String | 
my $refreshToken = refreshToken_example; # String | 

eval {
    my $result = $api_instance->processForm(loginRequest => $loginRequest, authToken => $authToken, refreshToken => $refreshToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LoginRestControllerApi->processForm: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.LoginRestControllerApi()
loginRequest =  # LoginRequest | 
authToken = authToken_example # String |  (optional) (default to null)
refreshToken = refreshToken_example # String |  (optional) (default to null)

try:
    api_response = api_instance.process_form(loginRequest, authToken=authToken, refreshToken=refreshToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoginRestControllerApi->processForm: %s\n" % e)
extern crate LoginRestControllerApi;

pub fn main() {
    let loginRequest = ; // LoginRequest
    let authToken = authToken_example; // String
    let refreshToken = refreshToken_example; // String

    let mut context = LoginRestControllerApi::Context::default();
    let result = client.processForm(loginRequest, authToken, refreshToken, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
loginRequest *

Responses


refreshToken


/api/auth/refresh

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 "https://localhost:8443/api/auth/refresh"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LoginRestControllerApi;

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

public class LoginRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
        String refreshToken = refreshToken_example; // String | 

        try {
            AuthResponse result = apiInstance.refreshToken(refreshToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginRestControllerApi#refreshToken");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.LoginRestControllerApi;

public class LoginRestControllerApiExample {
    public static void main(String[] args) {
        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
        String refreshToken = refreshToken_example; // String | 

        try {
            AuthResponse result = apiInstance.refreshToken(refreshToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginRestControllerApi#refreshToken");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LoginRestControllerApi *apiInstance = [[LoginRestControllerApi alloc] init];
String *refreshToken = refreshToken_example; //  (optional) (default to null)

[apiInstance refreshTokenWith:refreshToken
              completionHandler: ^(AuthResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.LoginRestControllerApi()
var opts = {
  'refreshToken': refreshToken_example // {String} 
};

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

namespace Example
{
    public class refreshTokenExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LoginRestControllerApi();
            var refreshToken = refreshToken_example;  // String |  (optional)  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LoginRestControllerApi();
$refreshToken = refreshToken_example; // String | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LoginRestControllerApi->new();
my $refreshToken = refreshToken_example; # String | 

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

# Create an instance of the API class
api_instance = openapi_client.LoginRestControllerApi()
refreshToken = refreshToken_example # String |  (optional) (default to null)

try:
    api_response = api_instance.refresh_token(refreshToken=refreshToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoginRestControllerApi->refreshToken: %s\n" % e)
extern crate LoginRestControllerApi;

pub fn main() {
    let refreshToken = refreshToken_example; // String

    let mut context = LoginRestControllerApi::Context::default();
    let result = client.refreshToken(refreshToken, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


MenuRestController

getMenuAll


/api/menus/

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8443/api/menus/"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MenuRestControllerApi;

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

public class MenuRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        MenuRestControllerApi apiInstance = new MenuRestControllerApi();

        try {
            array[Menu] result = apiInstance.getMenuAll();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MenuRestControllerApi#getMenuAll");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.MenuRestControllerApi;

public class MenuRestControllerApiExample {
    public static void main(String[] args) {
        MenuRestControllerApi apiInstance = new MenuRestControllerApi();

        try {
            array[Menu] result = apiInstance.getMenuAll();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MenuRestControllerApi#getMenuAll");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
MenuRestControllerApi *apiInstance = [[MenuRestControllerApi alloc] init];

[apiInstance getMenuAllWithCompletionHandler: 
              ^(array[Menu] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.MenuRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMenuAll(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getMenuAllExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new MenuRestControllerApi();

            try {
                array[Menu] result = apiInstance.getMenuAll();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MenuRestControllerApi.getMenuAll: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MenuRestControllerApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MenuRestControllerApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.MenuRestControllerApi()

try:
    api_response = api_instance.get_menu_all()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MenuRestControllerApi->getMenuAll: %s\n" % e)
extern crate MenuRestControllerApi;

pub fn main() {

    let mut context = MenuRestControllerApi::Context::default();
    let result = client.getMenuAll(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


getMenuSelected


/api/menus/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8443/api/menus/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MenuRestControllerApi;

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

public class MenuRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        MenuRestControllerApi apiInstance = new MenuRestControllerApi();
        Long id = 789; // Long | 

        try {
            Menu result = apiInstance.getMenuSelected(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MenuRestControllerApi#getMenuSelected");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.MenuRestControllerApi;

public class MenuRestControllerApiExample {
    public static void main(String[] args) {
        MenuRestControllerApi apiInstance = new MenuRestControllerApi();
        Long id = 789; // Long | 

        try {
            Menu result = apiInstance.getMenuSelected(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MenuRestControllerApi#getMenuSelected");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
MenuRestControllerApi *apiInstance = [[MenuRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance getMenuSelectedWith:id
              completionHandler: ^(Menu output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.MenuRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class getMenuSelectedExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new MenuRestControllerApi();
            var id = 789;  // Long |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MenuRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MenuRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.MenuRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.get_menu_selected(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MenuRestControllerApi->getMenuSelected: %s\n" % e)
extern crate MenuRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = MenuRestControllerApi::Context::default();
    let result = client.getMenuSelected(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


processRecipeMaker


/api/menus/new

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 "https://localhost:8443/api/menus/new?name=name_example&lunchMonday=789&lunchTuesday=789&lunchWednesday=789&lunchThursday=789&lunchFriday=789&lunchSaturday=789&lunchSunday=789&dinnerMonday=789&dinnerTuesday=789&dinnerWednesday=789&dinnerThursday=789&dinnerFriday=789&dinnerSaturday=789&dinnerSunday=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MenuRestControllerApi;

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

public class MenuRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        MenuRestControllerApi apiInstance = new MenuRestControllerApi();
        String name = name_example; // String | 
        Long lunchMonday = 789; // Long | 
        Long lunchTuesday = 789; // Long | 
        Long lunchWednesday = 789; // Long | 
        Long lunchThursday = 789; // Long | 
        Long lunchFriday = 789; // Long | 
        Long lunchSaturday = 789; // Long | 
        Long lunchSunday = 789; // Long | 
        Long dinnerMonday = 789; // Long | 
        Long dinnerTuesday = 789; // Long | 
        Long dinnerWednesday = 789; // Long | 
        Long dinnerThursday = 789; // Long | 
        Long dinnerFriday = 789; // Long | 
        Long dinnerSaturday = 789; // Long | 
        Long dinnerSunday = 789; // Long | 

        try {
            Menu result = apiInstance.processRecipeMaker(name, lunchMonday, lunchTuesday, lunchWednesday, lunchThursday, lunchFriday, lunchSaturday, lunchSunday, dinnerMonday, dinnerTuesday, dinnerWednesday, dinnerThursday, dinnerFriday, dinnerSaturday, dinnerSunday);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MenuRestControllerApi#processRecipeMaker");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.MenuRestControllerApi;

public class MenuRestControllerApiExample {
    public static void main(String[] args) {
        MenuRestControllerApi apiInstance = new MenuRestControllerApi();
        String name = name_example; // String | 
        Long lunchMonday = 789; // Long | 
        Long lunchTuesday = 789; // Long | 
        Long lunchWednesday = 789; // Long | 
        Long lunchThursday = 789; // Long | 
        Long lunchFriday = 789; // Long | 
        Long lunchSaturday = 789; // Long | 
        Long lunchSunday = 789; // Long | 
        Long dinnerMonday = 789; // Long | 
        Long dinnerTuesday = 789; // Long | 
        Long dinnerWednesday = 789; // Long | 
        Long dinnerThursday = 789; // Long | 
        Long dinnerFriday = 789; // Long | 
        Long dinnerSaturday = 789; // Long | 
        Long dinnerSunday = 789; // Long | 

        try {
            Menu result = apiInstance.processRecipeMaker(name, lunchMonday, lunchTuesday, lunchWednesday, lunchThursday, lunchFriday, lunchSaturday, lunchSunday, dinnerMonday, dinnerTuesday, dinnerWednesday, dinnerThursday, dinnerFriday, dinnerSaturday, dinnerSunday);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MenuRestControllerApi#processRecipeMaker");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
MenuRestControllerApi *apiInstance = [[MenuRestControllerApi alloc] init];
String *name = name_example; //  (default to null)
Long *lunchMonday = 789; //  (default to null)
Long *lunchTuesday = 789; //  (default to null)
Long *lunchWednesday = 789; //  (default to null)
Long *lunchThursday = 789; //  (default to null)
Long *lunchFriday = 789; //  (default to null)
Long *lunchSaturday = 789; //  (default to null)
Long *lunchSunday = 789; //  (default to null)
Long *dinnerMonday = 789; //  (default to null)
Long *dinnerTuesday = 789; //  (default to null)
Long *dinnerWednesday = 789; //  (default to null)
Long *dinnerThursday = 789; //  (default to null)
Long *dinnerFriday = 789; //  (default to null)
Long *dinnerSaturday = 789; //  (default to null)
Long *dinnerSunday = 789; //  (default to null)

[apiInstance processRecipeMakerWith:name
    lunchMonday:lunchMonday
    lunchTuesday:lunchTuesday
    lunchWednesday:lunchWednesday
    lunchThursday:lunchThursday
    lunchFriday:lunchFriday
    lunchSaturday:lunchSaturday
    lunchSunday:lunchSunday
    dinnerMonday:dinnerMonday
    dinnerTuesday:dinnerTuesday
    dinnerWednesday:dinnerWednesday
    dinnerThursday:dinnerThursday
    dinnerFriday:dinnerFriday
    dinnerSaturday:dinnerSaturday
    dinnerSunday:dinnerSunday
              completionHandler: ^(Menu output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.MenuRestControllerApi()
var name = name_example; // {String} 
var lunchMonday = 789; // {Long} 
var lunchTuesday = 789; // {Long} 
var lunchWednesday = 789; // {Long} 
var lunchThursday = 789; // {Long} 
var lunchFriday = 789; // {Long} 
var lunchSaturday = 789; // {Long} 
var lunchSunday = 789; // {Long} 
var dinnerMonday = 789; // {Long} 
var dinnerTuesday = 789; // {Long} 
var dinnerWednesday = 789; // {Long} 
var dinnerThursday = 789; // {Long} 
var dinnerFriday = 789; // {Long} 
var dinnerSaturday = 789; // {Long} 
var dinnerSunday = 789; // {Long} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.processRecipeMaker(name, lunchMonday, lunchTuesday, lunchWednesday, lunchThursday, lunchFriday, lunchSaturday, lunchSunday, dinnerMonday, dinnerTuesday, dinnerWednesday, dinnerThursday, dinnerFriday, dinnerSaturday, dinnerSunday, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class processRecipeMakerExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new MenuRestControllerApi();
            var name = name_example;  // String |  (default to null)
            var lunchMonday = 789;  // Long |  (default to null)
            var lunchTuesday = 789;  // Long |  (default to null)
            var lunchWednesday = 789;  // Long |  (default to null)
            var lunchThursday = 789;  // Long |  (default to null)
            var lunchFriday = 789;  // Long |  (default to null)
            var lunchSaturday = 789;  // Long |  (default to null)
            var lunchSunday = 789;  // Long |  (default to null)
            var dinnerMonday = 789;  // Long |  (default to null)
            var dinnerTuesday = 789;  // Long |  (default to null)
            var dinnerWednesday = 789;  // Long |  (default to null)
            var dinnerThursday = 789;  // Long |  (default to null)
            var dinnerFriday = 789;  // Long |  (default to null)
            var dinnerSaturday = 789;  // Long |  (default to null)
            var dinnerSunday = 789;  // Long |  (default to null)

            try {
                Menu result = apiInstance.processRecipeMaker(name, lunchMonday, lunchTuesday, lunchWednesday, lunchThursday, lunchFriday, lunchSaturday, lunchSunday, dinnerMonday, dinnerTuesday, dinnerWednesday, dinnerThursday, dinnerFriday, dinnerSaturday, dinnerSunday);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MenuRestControllerApi.processRecipeMaker: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\MenuRestControllerApi();
$name = name_example; // String | 
$lunchMonday = 789; // Long | 
$lunchTuesday = 789; // Long | 
$lunchWednesday = 789; // Long | 
$lunchThursday = 789; // Long | 
$lunchFriday = 789; // Long | 
$lunchSaturday = 789; // Long | 
$lunchSunday = 789; // Long | 
$dinnerMonday = 789; // Long | 
$dinnerTuesday = 789; // Long | 
$dinnerWednesday = 789; // Long | 
$dinnerThursday = 789; // Long | 
$dinnerFriday = 789; // Long | 
$dinnerSaturday = 789; // Long | 
$dinnerSunday = 789; // Long | 

try {
    $result = $api_instance->processRecipeMaker($name, $lunchMonday, $lunchTuesday, $lunchWednesday, $lunchThursday, $lunchFriday, $lunchSaturday, $lunchSunday, $dinnerMonday, $dinnerTuesday, $dinnerWednesday, $dinnerThursday, $dinnerFriday, $dinnerSaturday, $dinnerSunday);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MenuRestControllerApi->processRecipeMaker: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::MenuRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::MenuRestControllerApi->new();
my $name = name_example; # String | 
my $lunchMonday = 789; # Long | 
my $lunchTuesday = 789; # Long | 
my $lunchWednesday = 789; # Long | 
my $lunchThursday = 789; # Long | 
my $lunchFriday = 789; # Long | 
my $lunchSaturday = 789; # Long | 
my $lunchSunday = 789; # Long | 
my $dinnerMonday = 789; # Long | 
my $dinnerTuesday = 789; # Long | 
my $dinnerWednesday = 789; # Long | 
my $dinnerThursday = 789; # Long | 
my $dinnerFriday = 789; # Long | 
my $dinnerSaturday = 789; # Long | 
my $dinnerSunday = 789; # Long | 

eval {
    my $result = $api_instance->processRecipeMaker(name => $name, lunchMonday => $lunchMonday, lunchTuesday => $lunchTuesday, lunchWednesday => $lunchWednesday, lunchThursday => $lunchThursday, lunchFriday => $lunchFriday, lunchSaturday => $lunchSaturday, lunchSunday => $lunchSunday, dinnerMonday => $dinnerMonday, dinnerTuesday => $dinnerTuesday, dinnerWednesday => $dinnerWednesday, dinnerThursday => $dinnerThursday, dinnerFriday => $dinnerFriday, dinnerSaturday => $dinnerSaturday, dinnerSunday => $dinnerSunday);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MenuRestControllerApi->processRecipeMaker: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.MenuRestControllerApi()
name = name_example # String |  (default to null)
lunchMonday = 789 # Long |  (default to null)
lunchTuesday = 789 # Long |  (default to null)
lunchWednesday = 789 # Long |  (default to null)
lunchThursday = 789 # Long |  (default to null)
lunchFriday = 789 # Long |  (default to null)
lunchSaturday = 789 # Long |  (default to null)
lunchSunday = 789 # Long |  (default to null)
dinnerMonday = 789 # Long |  (default to null)
dinnerTuesday = 789 # Long |  (default to null)
dinnerWednesday = 789 # Long |  (default to null)
dinnerThursday = 789 # Long |  (default to null)
dinnerFriday = 789 # Long |  (default to null)
dinnerSaturday = 789 # Long |  (default to null)
dinnerSunday = 789 # Long |  (default to null)

try:
    api_response = api_instance.process_recipe_maker(name, lunchMonday, lunchTuesday, lunchWednesday, lunchThursday, lunchFriday, lunchSaturday, lunchSunday, dinnerMonday, dinnerTuesday, dinnerWednesday, dinnerThursday, dinnerFriday, dinnerSaturday, dinnerSunday)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MenuRestControllerApi->processRecipeMaker: %s\n" % e)
extern crate MenuRestControllerApi;

pub fn main() {
    let name = name_example; // String
    let lunchMonday = 789; // Long
    let lunchTuesday = 789; // Long
    let lunchWednesday = 789; // Long
    let lunchThursday = 789; // Long
    let lunchFriday = 789; // Long
    let lunchSaturday = 789; // Long
    let lunchSunday = 789; // Long
    let dinnerMonday = 789; // Long
    let dinnerTuesday = 789; // Long
    let dinnerWednesday = 789; // Long
    let dinnerThursday = 789; // Long
    let dinnerFriday = 789; // Long
    let dinnerSaturday = 789; // Long
    let dinnerSunday = 789; // Long

    let mut context = MenuRestControllerApi::Context::default();
    let result = client.processRecipeMaker(name, lunchMonday, lunchTuesday, lunchWednesday, lunchThursday, lunchFriday, lunchSaturday, lunchSunday, dinnerMonday, dinnerTuesday, dinnerWednesday, dinnerThursday, dinnerFriday, dinnerSaturday, dinnerSunday, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
name*
String
Required
lunchMonday*
Long (int64)
Required
lunchTuesday*
Long (int64)
Required
lunchWednesday*
Long (int64)
Required
lunchThursday*
Long (int64)
Required
lunchFriday*
Long (int64)
Required
lunchSaturday*
Long (int64)
Required
lunchSunday*
Long (int64)
Required
dinnerMonday*
Long (int64)
Required
dinnerTuesday*
Long (int64)
Required
dinnerWednesday*
Long (int64)
Required
dinnerThursday*
Long (int64)
Required
dinnerFriday*
Long (int64)
Required
dinnerSaturday*
Long (int64)
Required
dinnerSunday*
Long (int64)
Required

Responses


RecipeController

getMoreProducts


/getMoreRecipes

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8443/getMoreRecipes?page="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecipeControllerApi;

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

public class RecipeControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RecipeControllerApi apiInstance = new RecipeControllerApi();
        Pageable page = ; // Pageable | 

        try {
            PageRecipe result = apiInstance.getMoreProducts(page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeControllerApi#getMoreProducts");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecipeControllerApi;

public class RecipeControllerApiExample {
    public static void main(String[] args) {
        RecipeControllerApi apiInstance = new RecipeControllerApi();
        Pageable page = ; // Pageable | 

        try {
            PageRecipe result = apiInstance.getMoreProducts(page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeControllerApi#getMoreProducts");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecipeControllerApi *apiInstance = [[RecipeControllerApi alloc] init];
Pageable *page = ; //  (default to null)

[apiInstance getMoreProductsWith:page
              completionHandler: ^(PageRecipe output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.RecipeControllerApi()
var page = ; // {Pageable} 

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

namespace Example
{
    public class getMoreProductsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RecipeControllerApi();
            var page = new Pageable(); // Pageable |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecipeControllerApi();
$page = ; // Pageable | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecipeControllerApi->new();
my $page = ; # Pageable | 

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

# Create an instance of the API class
api_instance = openapi_client.RecipeControllerApi()
page =  # Pageable |  (default to null)

try:
    api_response = api_instance.get_more_products(page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecipeControllerApi->getMoreProducts: %s\n" % e)
extern crate RecipeControllerApi;

pub fn main() {
    let page = ; // Pageable

    let mut context = RecipeControllerApi::Context::default();
    let result = client.getMoreProducts(page, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
page*
Pageable
Required

Responses


RecipeRestController

createRecipe


/api/recipes/new

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 "https://localhost:8443/api/recipes/new?name=name_example&time=56&difficulty=difficulty_example&preparation=preparation_example&ingredients=ingredients_example&booleanos="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecipeRestControllerApi;

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

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        String name = name_example; // String | 
        Integer time = 56; // Integer | 
        String difficulty = difficulty_example; // String | 
        String preparation = preparation_example; // String | 
        String ingredients = ingredients_example; // String | 
        array[String] booleanos = ; // array[String] | 

        try {
            Recipe result = apiInstance.createRecipe(name, time, difficulty, preparation, ingredients, booleanos);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#createRecipe");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecipeRestControllerApi;

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        String name = name_example; // String | 
        Integer time = 56; // Integer | 
        String difficulty = difficulty_example; // String | 
        String preparation = preparation_example; // String | 
        String ingredients = ingredients_example; // String | 
        array[String] booleanos = ; // array[String] | 

        try {
            Recipe result = apiInstance.createRecipe(name, time, difficulty, preparation, ingredients, booleanos);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#createRecipe");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecipeRestControllerApi *apiInstance = [[RecipeRestControllerApi alloc] init];
String *name = name_example; //  (default to null)
Integer *time = 56; //  (default to null)
String *difficulty = difficulty_example; //  (default to null)
String *preparation = preparation_example; //  (default to null)
String *ingredients = ingredients_example; //  (default to null)
array[String] *booleanos = ; //  (default to null)

[apiInstance createRecipeWith:name
    time:time
    difficulty:difficulty
    preparation:preparation
    ingredients:ingredients
    booleanos:booleanos
              completionHandler: ^(Recipe output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.RecipeRestControllerApi()
var name = name_example; // {String} 
var time = 56; // {Integer} 
var difficulty = difficulty_example; // {String} 
var preparation = preparation_example; // {String} 
var ingredients = ingredients_example; // {String} 
var booleanos = ; // {array[String]} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createRecipe(name, time, difficulty, preparation, ingredients, booleanos, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class createRecipeExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RecipeRestControllerApi();
            var name = name_example;  // String |  (default to null)
            var time = 56;  // Integer |  (default to null)
            var difficulty = difficulty_example;  // String |  (default to null)
            var preparation = preparation_example;  // String |  (default to null)
            var ingredients = ingredients_example;  // String |  (default to null)
            var booleanos = new array[String](); // array[String] |  (default to null)

            try {
                Recipe result = apiInstance.createRecipe(name, time, difficulty, preparation, ingredients, booleanos);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RecipeRestControllerApi.createRecipe: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecipeRestControllerApi();
$name = name_example; // String | 
$time = 56; // Integer | 
$difficulty = difficulty_example; // String | 
$preparation = preparation_example; // String | 
$ingredients = ingredients_example; // String | 
$booleanos = ; // array[String] | 

try {
    $result = $api_instance->createRecipe($name, $time, $difficulty, $preparation, $ingredients, $booleanos);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RecipeRestControllerApi->createRecipe: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RecipeRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecipeRestControllerApi->new();
my $name = name_example; # String | 
my $time = 56; # Integer | 
my $difficulty = difficulty_example; # String | 
my $preparation = preparation_example; # String | 
my $ingredients = ingredients_example; # String | 
my $booleanos = []; # array[String] | 

eval {
    my $result = $api_instance->createRecipe(name => $name, time => $time, difficulty => $difficulty, preparation => $preparation, ingredients => $ingredients, booleanos => $booleanos);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RecipeRestControllerApi->createRecipe: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RecipeRestControllerApi()
name = name_example # String |  (default to null)
time = 56 # Integer |  (default to null)
difficulty = difficulty_example # String |  (default to null)
preparation = preparation_example # String |  (default to null)
ingredients = ingredients_example # String |  (default to null)
booleanos =  # array[String] |  (default to null)

try:
    api_response = api_instance.create_recipe(name, time, difficulty, preparation, ingredients, booleanos)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecipeRestControllerApi->createRecipe: %s\n" % e)
extern crate RecipeRestControllerApi;

pub fn main() {
    let name = name_example; // String
    let time = 56; // Integer
    let difficulty = difficulty_example; // String
    let preparation = preparation_example; // String
    let ingredients = ingredients_example; // String
    let booleanos = ; // array[String]

    let mut context = RecipeRestControllerApi::Context::default();
    let result = client.createRecipe(name, time, difficulty, preparation, ingredients, booleanos, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
name*
String
Required
time*
Integer (int32)
Required
difficulty*
String
Required
preparation*
String
Required
ingredients*
String
Required
booleanos*
array[String]
Required

Responses


downloadImage


/api/recipes/{id}/image

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8443/api/recipes/{id}/image"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecipeRestControllerApi;

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

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Long id = 789; // Long | 

        try {
            Object result = apiInstance.downloadImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#downloadImage");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecipeRestControllerApi;

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Long id = 789; // Long | 

        try {
            Object result = apiInstance.downloadImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#downloadImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecipeRestControllerApi *apiInstance = [[RecipeRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance downloadImageWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.RecipeRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class downloadImageExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RecipeRestControllerApi();
            var id = 789;  // Long |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecipeRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecipeRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.RecipeRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.download_image(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecipeRestControllerApi->downloadImage: %s\n" % e)
extern crate RecipeRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = RecipeRestControllerApi::Context::default();
    let result = client.downloadImage(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


getRecipe


/api/recipes/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8443/api/recipes/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecipeRestControllerApi;

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

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Long id = 789; // Long | 

        try {
            Recipe result = apiInstance.getRecipe(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#getRecipe");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecipeRestControllerApi;

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Long id = 789; // Long | 

        try {
            Recipe result = apiInstance.getRecipe(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#getRecipe");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecipeRestControllerApi *apiInstance = [[RecipeRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance getRecipeWith:id
              completionHandler: ^(Recipe output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.RecipeRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class getRecipeExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RecipeRestControllerApi();
            var id = 789;  // Long |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecipeRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecipeRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.RecipeRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.get_recipe(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecipeRestControllerApi->getRecipe: %s\n" % e)
extern crate RecipeRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = RecipeRestControllerApi::Context::default();
    let result = client.getRecipe(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


getRecipes


/api/recipes/

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8443/api/recipes/?page=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecipeRestControllerApi;

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

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Integer page = 56; // Integer | 

        try {
            array[Recipe] result = apiInstance.getRecipes(page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#getRecipes");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecipeRestControllerApi;

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Integer page = 56; // Integer | 

        try {
            array[Recipe] result = apiInstance.getRecipes(page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#getRecipes");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecipeRestControllerApi *apiInstance = [[RecipeRestControllerApi alloc] init];
Integer *page = 56; //  (optional) (default to null)

[apiInstance getRecipesWith:page
              completionHandler: ^(array[Recipe] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.RecipeRestControllerApi()
var opts = {
  'page': 56 // {Integer} 
};

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

namespace Example
{
    public class getRecipesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RecipeRestControllerApi();
            var page = 56;  // Integer |  (optional)  (default to null)

            try {
                array[Recipe] result = apiInstance.getRecipes(page);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RecipeRestControllerApi.getRecipes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecipeRestControllerApi();
$page = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecipeRestControllerApi->new();
my $page = 56; # Integer | 

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

# Create an instance of the API class
api_instance = openapi_client.RecipeRestControllerApi()
page = 56 # Integer |  (optional) (default to null)

try:
    api_response = api_instance.get_recipes(page=page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecipeRestControllerApi->getRecipes: %s\n" % e)
extern crate RecipeRestControllerApi;

pub fn main() {
    let page = 56; // Integer

    let mut context = RecipeRestControllerApi::Context::default();
    let result = client.getRecipes(page, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
page
Integer (int32)

Responses


processDeleteRecipe


/api/recipes/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "https://localhost:8443/api/recipes/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecipeRestControllerApi;

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

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Long id = 789; // Long | 

        try {
            Recipe result = apiInstance.processDeleteRecipe(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#processDeleteRecipe");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecipeRestControllerApi;

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Long id = 789; // Long | 

        try {
            Recipe result = apiInstance.processDeleteRecipe(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#processDeleteRecipe");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecipeRestControllerApi *apiInstance = [[RecipeRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance processDeleteRecipeWith:id
              completionHandler: ^(Recipe output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.RecipeRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class processDeleteRecipeExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RecipeRestControllerApi();
            var id = 789;  // Long |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecipeRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecipeRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.RecipeRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.process_delete_recipe(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecipeRestControllerApi->processDeleteRecipe: %s\n" % e)
extern crate RecipeRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = RecipeRestControllerApi::Context::default();
    let result = client.processDeleteRecipe(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


updateRecipe


/api/recipes/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 "https://localhost:8443/api/recipes/{id}?name=name_example&time=56&difficulty=difficulty_example&preparation=preparation_example&ingredients=ingredients_example&booleanos="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecipeRestControllerApi;

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

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Long id = 789; // Long | 
        String name = name_example; // String | 
        Integer time = 56; // Integer | 
        String difficulty = difficulty_example; // String | 
        String preparation = preparation_example; // String | 
        String ingredients = ingredients_example; // String | 
        array[String] booleanos = ; // array[String] | 

        try {
            Recipe result = apiInstance.updateRecipe(id, name, time, difficulty, preparation, ingredients, booleanos);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#updateRecipe");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecipeRestControllerApi;

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Long id = 789; // Long | 
        String name = name_example; // String | 
        Integer time = 56; // Integer | 
        String difficulty = difficulty_example; // String | 
        String preparation = preparation_example; // String | 
        String ingredients = ingredients_example; // String | 
        array[String] booleanos = ; // array[String] | 

        try {
            Recipe result = apiInstance.updateRecipe(id, name, time, difficulty, preparation, ingredients, booleanos);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#updateRecipe");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecipeRestControllerApi *apiInstance = [[RecipeRestControllerApi alloc] init];
Long *id = 789; //  (default to null)
String *name = name_example; //  (default to null)
Integer *time = 56; //  (default to null)
String *difficulty = difficulty_example; //  (default to null)
String *preparation = preparation_example; //  (default to null)
String *ingredients = ingredients_example; //  (default to null)
array[String] *booleanos = ; //  (default to null)

[apiInstance updateRecipeWith:id
    name:name
    time:time
    difficulty:difficulty
    preparation:preparation
    ingredients:ingredients
    booleanos:booleanos
              completionHandler: ^(Recipe output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.RecipeRestControllerApi()
var id = 789; // {Long} 
var name = name_example; // {String} 
var time = 56; // {Integer} 
var difficulty = difficulty_example; // {String} 
var preparation = preparation_example; // {String} 
var ingredients = ingredients_example; // {String} 
var booleanos = ; // {array[String]} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateRecipe(id, name, time, difficulty, preparation, ingredients, booleanos, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class updateRecipeExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RecipeRestControllerApi();
            var id = 789;  // Long |  (default to null)
            var name = name_example;  // String |  (default to null)
            var time = 56;  // Integer |  (default to null)
            var difficulty = difficulty_example;  // String |  (default to null)
            var preparation = preparation_example;  // String |  (default to null)
            var ingredients = ingredients_example;  // String |  (default to null)
            var booleanos = new array[String](); // array[String] |  (default to null)

            try {
                Recipe result = apiInstance.updateRecipe(id, name, time, difficulty, preparation, ingredients, booleanos);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RecipeRestControllerApi.updateRecipe: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecipeRestControllerApi();
$id = 789; // Long | 
$name = name_example; // String | 
$time = 56; // Integer | 
$difficulty = difficulty_example; // String | 
$preparation = preparation_example; // String | 
$ingredients = ingredients_example; // String | 
$booleanos = ; // array[String] | 

try {
    $result = $api_instance->updateRecipe($id, $name, $time, $difficulty, $preparation, $ingredients, $booleanos);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RecipeRestControllerApi->updateRecipe: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RecipeRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecipeRestControllerApi->new();
my $id = 789; # Long | 
my $name = name_example; # String | 
my $time = 56; # Integer | 
my $difficulty = difficulty_example; # String | 
my $preparation = preparation_example; # String | 
my $ingredients = ingredients_example; # String | 
my $booleanos = []; # array[String] | 

eval {
    my $result = $api_instance->updateRecipe(id => $id, name => $name, time => $time, difficulty => $difficulty, preparation => $preparation, ingredients => $ingredients, booleanos => $booleanos);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RecipeRestControllerApi->updateRecipe: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RecipeRestControllerApi()
id = 789 # Long |  (default to null)
name = name_example # String |  (default to null)
time = 56 # Integer |  (default to null)
difficulty = difficulty_example # String |  (default to null)
preparation = preparation_example # String |  (default to null)
ingredients = ingredients_example # String |  (default to null)
booleanos =  # array[String] |  (default to null)

try:
    api_response = api_instance.update_recipe(id, name, time, difficulty, preparation, ingredients, booleanos)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecipeRestControllerApi->updateRecipe: %s\n" % e)
extern crate RecipeRestControllerApi;

pub fn main() {
    let id = 789; // Long
    let name = name_example; // String
    let time = 56; // Integer
    let difficulty = difficulty_example; // String
    let preparation = preparation_example; // String
    let ingredients = ingredients_example; // String
    let booleanos = ; // array[String]

    let mut context = RecipeRestControllerApi::Context::default();
    let result = client.updateRecipe(id, name, time, difficulty, preparation, ingredients, booleanos, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Query parameters
Name Description
name*
String
Required
time*
Integer (int32)
Required
difficulty*
String
Required
preparation*
String
Required
ingredients*
String
Required
booleanos*
array[String]
Required

Responses


uploadImage


/api/recipes/{id}/image

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "https://localhost:8443/api/recipes/{id}/image" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RecipeRestControllerApi;

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

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Long id = 789; // Long | 
        InlineObject inlineObject = ; // InlineObject | 

        try {
            Recipe result = apiInstance.uploadImage(id, inlineObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#uploadImage");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RecipeRestControllerApi;

public class RecipeRestControllerApiExample {
    public static void main(String[] args) {
        RecipeRestControllerApi apiInstance = new RecipeRestControllerApi();
        Long id = 789; // Long | 
        InlineObject inlineObject = ; // InlineObject | 

        try {
            Recipe result = apiInstance.uploadImage(id, inlineObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RecipeRestControllerApi#uploadImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RecipeRestControllerApi *apiInstance = [[RecipeRestControllerApi alloc] init];
Long *id = 789; //  (default to null)
InlineObject *inlineObject = ; //  (optional)

[apiInstance uploadImageWith:id
    inlineObject:inlineObject
              completionHandler: ^(Recipe output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.RecipeRestControllerApi()
var id = 789; // {Long} 
var opts = {
  'inlineObject':  // {InlineObject} 
};

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

namespace Example
{
    public class uploadImageExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RecipeRestControllerApi();
            var id = 789;  // Long |  (default to null)
            var inlineObject = new InlineObject(); // InlineObject |  (optional) 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RecipeRestControllerApi();
$id = 789; // Long | 
$inlineObject = ; // InlineObject | 

try {
    $result = $api_instance->uploadImage($id, $inlineObject);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RecipeRestControllerApi->uploadImage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RecipeRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RecipeRestControllerApi->new();
my $id = 789; # Long | 
my $inlineObject = WWW::OPenAPIClient::Object::InlineObject->new(); # InlineObject | 

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

# Create an instance of the API class
api_instance = openapi_client.RecipeRestControllerApi()
id = 789 # Long |  (default to null)
inlineObject =  # InlineObject |  (optional)

try:
    api_response = api_instance.upload_image(id, inlineObject=inlineObject)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RecipeRestControllerApi->uploadImage: %s\n" % e)
extern crate RecipeRestControllerApi;

pub fn main() {
    let id = 789; // Long
    let inlineObject = ; // InlineObject

    let mut context = RecipeRestControllerApi::Context::default();
    let result = client.uploadImage(id, inlineObject, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
inlineObject

Responses


UserRestController

activateMenu


/api/users/menu/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 "https://localhost:8443/api/users/menu/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Long id = 789; // Long | 

        try {
            Menu result = apiInstance.activateMenu(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#activateMenu");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Long id = 789; // Long | 

        try {
            Menu result = apiInstance.activateMenu(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#activateMenu");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance activateMenuWith:id
              completionHandler: ^(Menu output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class activateMenuExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();
            var id = 789;  // Long |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.UserRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.activate_menu(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRestControllerApi->activateMenu: %s\n" % e)
extern crate UserRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = UserRestControllerApi::Context::default();
    let result = client.activateMenu(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


addRecipe


/api/users/recipe/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 "https://localhost:8443/api/users/recipe/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Long id = 789; // Long | 

        try {
            Recipe result = apiInstance.addRecipe(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#addRecipe");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Long id = 789; // Long | 

        try {
            Recipe result = apiInstance.addRecipe(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#addRecipe");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance addRecipeWith:id
              completionHandler: ^(Recipe output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class addRecipeExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();
            var id = 789;  // Long |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.UserRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.add_recipe(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRestControllerApi->addRecipe: %s\n" % e)
extern crate UserRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = UserRestControllerApi::Context::default();
    let result = client.addRecipe(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


getAllYourRecipes


/api/users/recipes

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8443/api/users/recipes"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            array[Recipe] result = apiInstance.getAllYourRecipes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getAllYourRecipes");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            array[Recipe] result = apiInstance.getAllYourRecipes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getAllYourRecipes");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];

[apiInstance getAllYourRecipesWithCompletionHandler: 
              ^(array[Recipe] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllYourRecipes(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getAllYourRecipesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();

            try {
                array[Recipe] result = apiInstance.getAllYourRecipes();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserRestControllerApi.getAllYourRecipes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.UserRestControllerApi()

try:
    api_response = api_instance.get_all_your_recipes()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRestControllerApi->getAllYourRecipes: %s\n" % e)
extern crate UserRestControllerApi;

pub fn main() {

    let mut context = UserRestControllerApi::Context::default();
    let result = client.getAllYourRecipes(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


getMenuActivo


/api/users/menu

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8443/api/users/menu"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            Menu result = apiInstance.getMenuActivo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getMenuActivo");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            Menu result = apiInstance.getMenuActivo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getMenuActivo");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];

[apiInstance getMenuActivoWithCompletionHandler: 
              ^(Menu output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMenuActivo(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getMenuActivoExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.UserRestControllerApi()

try:
    api_response = api_instance.get_menu_activo()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRestControllerApi->getMenuActivo: %s\n" % e)
extern crate UserRestControllerApi;

pub fn main() {

    let mut context = UserRestControllerApi::Context::default();
    let result = client.getMenuActivo(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


getProfile


/api/users/me

Usage and SDK Samples

curl -X GET \
 "https://localhost:8443/api/users/me"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            apiInstance.getProfile();
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getProfile");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            apiInstance.getProfile();
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getProfile");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];

[apiInstance getProfileWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getProfile(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getProfileExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();

try {
    $api_instance->getProfile();
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->getProfile: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();

eval {
    $api_instance->getProfile();
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->getProfile: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UserRestControllerApi()

try:
    api_instance.get_profile()
except ApiException as e:
    print("Exception when calling UserRestControllerApi->getProfile: %s\n" % e)
extern crate UserRestControllerApi;

pub fn main() {

    let mut context = UserRestControllerApi::Context::default();
    let result = client.getProfile(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


getProfiles


/api/users/all

Usage and SDK Samples

curl -X GET \
 "https://localhost:8443/api/users/all"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            apiInstance.getProfiles();
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getProfiles");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            apiInstance.getProfiles();
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getProfiles");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];

[apiInstance getProfilesWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getProfiles(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getProfilesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();

try {
    $api_instance->getProfiles();
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->getProfiles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();

eval {
    $api_instance->getProfiles();
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->getProfiles: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UserRestControllerApi()

try:
    api_instance.get_profiles()
except ApiException as e:
    print("Exception when calling UserRestControllerApi->getProfiles: %s\n" % e)
extern crate UserRestControllerApi;

pub fn main() {

    let mut context = UserRestControllerApi::Context::default();
    let result = client.getProfiles(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


getStoredDiets


/api/users/diets

Usage and SDK Samples

curl -X GET \
 "https://localhost:8443/api/users/diets"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            apiInstance.getStoredDiets();
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getStoredDiets");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            apiInstance.getStoredDiets();
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getStoredDiets");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];

[apiInstance getStoredDietsWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getStoredDiets(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getStoredDietsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();

try {
    $api_instance->getStoredDiets();
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->getStoredDiets: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();

eval {
    $api_instance->getStoredDiets();
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->getStoredDiets: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UserRestControllerApi()

try:
    api_instance.get_stored_diets()
except ApiException as e:
    print("Exception when calling UserRestControllerApi->getStoredDiets: %s\n" % e)
extern crate UserRestControllerApi;

pub fn main() {

    let mut context = UserRestControllerApi::Context::default();
    let result = client.getStoredDiets(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


getUser


/api/users/{id}

Usage and SDK Samples

curl -X GET \
 "https://localhost:8443/api/users/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Long id = 789; // Long | 

        try {
            apiInstance.getUser(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getUser");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Long id = 789; // Long | 

        try {
            apiInstance.getUser(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance getUserWith:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var id = 789; // {Long} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getUser(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getUserExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();
            var id = 789;  // Long |  (default to null)

            try {
                apiInstance.getUser(id);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserRestControllerApi.getUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
$id = 789; // Long | 

try {
    $api_instance->getUser($id);
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->getUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
my $id = 789; # Long | 

eval {
    $api_instance->getUser(id => $id);
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->getUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UserRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_instance.get_user(id)
except ApiException as e:
    print("Exception when calling UserRestControllerApi->getUser: %s\n" % e)
extern crate UserRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = UserRestControllerApi::Context::default();
    let result = client.getUser(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


processRegister


/api/users/new

Usage and SDK Samples

curl -X POST \
 -H "Content-Type: application/json" \
 "https://localhost:8443/api/users/new" \
 -d '{
  "password" : "password",
  "mail" : "mail",
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        RegisterRequest registerRequest = ; // RegisterRequest | 

        try {
            apiInstance.processRegister(registerRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#processRegister");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        RegisterRequest registerRequest = ; // RegisterRequest | 

        try {
            apiInstance.processRegister(registerRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#processRegister");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
RegisterRequest *registerRequest = ; // 

[apiInstance processRegisterWith:registerRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var registerRequest = ; // {RegisterRequest} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.processRegister(registerRequest, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class processRegisterExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();
            var registerRequest = new RegisterRequest(); // RegisterRequest | 

            try {
                apiInstance.processRegister(registerRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserRestControllerApi.processRegister: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
$registerRequest = ; // RegisterRequest | 

try {
    $api_instance->processRegister($registerRequest);
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->processRegister: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
my $registerRequest = WWW::OPenAPIClient::Object::RegisterRequest->new(); # RegisterRequest | 

eval {
    $api_instance->processRegister(registerRequest => $registerRequest);
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->processRegister: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UserRestControllerApi()
registerRequest =  # RegisterRequest | 

try:
    api_instance.process_register(registerRequest)
except ApiException as e:
    print("Exception when calling UserRestControllerApi->processRegister: %s\n" % e)
extern crate UserRestControllerApi;

pub fn main() {
    let registerRequest = ; // RegisterRequest

    let mut context = UserRestControllerApi::Context::default();
    let result = client.processRegister(registerRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
registerRequest *

Responses