Rewards Framework

HealthController

rewardHealthCheckUsingGET

rewardHealthCheck


/health

Usage and SDK Samples

curl -X GET "http://localhost:8080/health"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.HealthControllerApi;

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

public class HealthControllerApiExample {

    public static void main(String[] args) {
        
        HealthControllerApi apiInstance = new HealthControllerApi();
        try {
            Object result = apiInstance.rewardHealthCheckUsingGET();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HealthControllerApi#rewardHealthCheckUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.HealthControllerApi;

public class HealthControllerApiExample {

    public static void main(String[] args) {
        HealthControllerApi apiInstance = new HealthControllerApi();
        try {
            Object result = apiInstance.rewardHealthCheckUsingGET();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HealthControllerApi#rewardHealthCheckUsingGET");
            e.printStackTrace();
        }
    }
}

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

// rewardHealthCheck
[apiInstance rewardHealthCheckUsingGETWithCompletionHandler: 
              ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

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

namespace Example
{
    public class rewardHealthCheckUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new HealthControllerApi();

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

$api_instance = new OpenAPITools\Client\Api\HealthControllerApi();

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

my $api_instance = WWW::OPenAPIClient::HealthControllerApi->new();

eval { 
    my $result = $api_instance->rewardHealthCheckUsingGET();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HealthControllerApi->rewardHealthCheckUsingGET: $@\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.HealthControllerApi()

try: 
    # rewardHealthCheck
    api_response = api_instance.reward_health_check_using_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HealthControllerApi->rewardHealthCheckUsingGET: %s\n" % e)
extern crate HealthControllerApi;

pub fn main() {

    let mut context = HealthControllerApi::Context::default();
    let result = client.rewardHealthCheckUsingGET(&context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Responses


RewardController

calculateRewardPointsUsingPOST

Reward Calculation

Api to calculate reward points


/reward/calculate

Usage and SDK Samples

curl -X POST "http://localhost:8080/reward/calculate"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RewardControllerApi;

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

public class RewardControllerApiExample {

    public static void main(String[] args) {
        
        RewardControllerApi apiInstance = new RewardControllerApi();
        String appId = appId_example; // String | framework
        UserRewardPointRequestDto userRewardPointRequestDto = ; // UserRewardPointRequestDto | 
        try {
            UserRewardPointResponseDto result = apiInstance.calculateRewardPointsUsingPOST(appId, userRewardPointRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RewardControllerApi#calculateRewardPointsUsingPOST");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RewardControllerApi;

public class RewardControllerApiExample {

    public static void main(String[] args) {
        RewardControllerApi apiInstance = new RewardControllerApi();
        String appId = appId_example; // String | framework
        UserRewardPointRequestDto userRewardPointRequestDto = ; // UserRewardPointRequestDto | 
        try {
            UserRewardPointResponseDto result = apiInstance.calculateRewardPointsUsingPOST(appId, userRewardPointRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RewardControllerApi#calculateRewardPointsUsingPOST");
            e.printStackTrace();
        }
    }
}
String *appId = appId_example; // framework (optional)
UserRewardPointRequestDto *userRewardPointRequestDto = ; //  (optional)

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

// Reward Calculation
[apiInstance calculateRewardPointsUsingPOSTWith:appId
    userRewardPointRequestDto:userRewardPointRequestDto
              completionHandler: ^(UserRewardPointResponseDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.RewardControllerApi()
var opts = {
  'appId': appId_example, // {String} framework
  'userRewardPointRequestDto':  // {UserRewardPointRequestDto} 
};

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

namespace Example
{
    public class calculateRewardPointsUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new RewardControllerApi();
            var appId = appId_example;  // String | framework (optional) 
            var userRewardPointRequestDto = new UserRewardPointRequestDto(); // UserRewardPointRequestDto |  (optional) 

            try
            {
                // Reward Calculation
                UserRewardPointResponseDto result = apiInstance.calculateRewardPointsUsingPOST(appId, userRewardPointRequestDto);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RewardControllerApi.calculateRewardPointsUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\RewardControllerApi();
$appId = appId_example; // String | framework
$userRewardPointRequestDto = ; // UserRewardPointRequestDto | 

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

my $api_instance = WWW::OPenAPIClient::RewardControllerApi->new();
my $appId = appId_example; # String | framework
my $userRewardPointRequestDto = WWW::OPenAPIClient::Object::UserRewardPointRequestDto->new(); # UserRewardPointRequestDto | 

eval { 
    my $result = $api_instance->calculateRewardPointsUsingPOST(appId => $appId, userRewardPointRequestDto => $userRewardPointRequestDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RewardControllerApi->calculateRewardPointsUsingPOST: $@\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.RewardControllerApi()
appId = appId_example # String | framework (optional)
userRewardPointRequestDto =  # UserRewardPointRequestDto |  (optional)

try: 
    # Reward Calculation
    api_response = api_instance.calculate_reward_points_using_post(appId=appId, userRewardPointRequestDto=userRewardPointRequestDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RewardControllerApi->calculateRewardPointsUsingPOST: %s\n" % e)
extern crate RewardControllerApi;

pub fn main() {
    let appId = appId_example; // String
    let userRewardPointRequestDto = ; // UserRewardPointRequestDto

    let mut context = RewardControllerApi::Context::default();
    let result = client.calculateRewardPointsUsingPOST(appId, userRewardPointRequestDto, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Header parameters
Name Description
appId
String
framework
Body parameters
Name Description
userRewardPointRequestDto

{ "userName" : "demo", "transactionType" : "Safety Briefing", "transactionRole" : "Supervisor" }

Responses


getActiveUserRewardPointsByCardNumberUsingGET

Retrieve reward points of an active user using Reward Card Number

Api to fetch reward Points of an active user using Reward Card Number


/reward/cardNumber/{cardNumber}

Usage and SDK Samples

curl -X GET "http://localhost:8080/reward/cardNumber/{cardNumber}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RewardControllerApi;

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

public class RewardControllerApiExample {

    public static void main(String[] args) {
        
        RewardControllerApi apiInstance = new RewardControllerApi();
        String cardNumber = cardNumber_example; // String | Rewards Card Number
        try {
            UserRewardPointResponseDto result = apiInstance.getActiveUserRewardPointsByCardNumberUsingGET(cardNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RewardControllerApi#getActiveUserRewardPointsByCardNumberUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RewardControllerApi;

public class RewardControllerApiExample {

    public static void main(String[] args) {
        RewardControllerApi apiInstance = new RewardControllerApi();
        String cardNumber = cardNumber_example; // String | Rewards Card Number
        try {
            UserRewardPointResponseDto result = apiInstance.getActiveUserRewardPointsByCardNumberUsingGET(cardNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RewardControllerApi#getActiveUserRewardPointsByCardNumberUsingGET");
            e.printStackTrace();
        }
    }
}
String *cardNumber = cardNumber_example; // Rewards Card Number (default to 100013677941)

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

// Retrieve reward points of an active user using Reward Card Number
[apiInstance getActiveUserRewardPointsByCardNumberUsingGETWith:cardNumber
              completionHandler: ^(UserRewardPointResponseDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.RewardControllerApi()
var cardNumber = cardNumber_example; // {String} Rewards Card Number

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

namespace Example
{
    public class getActiveUserRewardPointsByCardNumberUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new RewardControllerApi();
            var cardNumber = cardNumber_example;  // String | Rewards Card Number (default to 100013677941)

            try
            {
                // Retrieve reward points of an active user using Reward Card Number
                UserRewardPointResponseDto result = apiInstance.getActiveUserRewardPointsByCardNumberUsingGET(cardNumber);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RewardControllerApi.getActiveUserRewardPointsByCardNumberUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\RewardControllerApi();
$cardNumber = cardNumber_example; // String | Rewards Card Number

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

my $api_instance = WWW::OPenAPIClient::RewardControllerApi->new();
my $cardNumber = cardNumber_example; # String | Rewards Card Number

eval { 
    my $result = $api_instance->getActiveUserRewardPointsByCardNumberUsingGET(cardNumber => $cardNumber);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RewardControllerApi->getActiveUserRewardPointsByCardNumberUsingGET: $@\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.RewardControllerApi()
cardNumber = cardNumber_example # String | Rewards Card Number (default to 100013677941)

try: 
    # Retrieve reward points of an active user using Reward Card Number
    api_response = api_instance.get_active_user_reward_points_by_card_number_using_get(cardNumber)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RewardControllerApi->getActiveUserRewardPointsByCardNumberUsingGET: %s\n" % e)
extern crate RewardControllerApi;

pub fn main() {
    let cardNumber = cardNumber_example; // String

    let mut context = RewardControllerApi::Context::default();
    let result = client.getActiveUserRewardPointsByCardNumberUsingGET(cardNumber, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
cardNumber*
String
Rewards Card Number
Required

Responses


getActiveUserRewardPointsByUserNameUsingGET

Retrieve reward points of an active user using User Name

Api to fetch reward Points of an active user using User Name


/reward/user/{user}

Usage and SDK Samples

curl -X GET "http://localhost:8080/reward/user/{user}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RewardControllerApi;

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

public class RewardControllerApiExample {

    public static void main(String[] args) {
        
        RewardControllerApi apiInstance = new RewardControllerApi();
        String user = user_example; // String | User Name
        try {
            UserRewardPointResponseDto result = apiInstance.getActiveUserRewardPointsByUserNameUsingGET(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RewardControllerApi#getActiveUserRewardPointsByUserNameUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RewardControllerApi;

public class RewardControllerApiExample {

    public static void main(String[] args) {
        RewardControllerApi apiInstance = new RewardControllerApi();
        String user = user_example; // String | User Name
        try {
            UserRewardPointResponseDto result = apiInstance.getActiveUserRewardPointsByUserNameUsingGET(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RewardControllerApi#getActiveUserRewardPointsByUserNameUsingGET");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // User Name (default to demo)

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

// Retrieve reward points of an active user using User Name
[apiInstance getActiveUserRewardPointsByUserNameUsingGETWith:user
              completionHandler: ^(UserRewardPointResponseDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.RewardControllerApi()
var user = user_example; // {String} User Name

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

namespace Example
{
    public class getActiveUserRewardPointsByUserNameUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new RewardControllerApi();
            var user = user_example;  // String | User Name (default to demo)

            try
            {
                // Retrieve reward points of an active user using User Name
                UserRewardPointResponseDto result = apiInstance.getActiveUserRewardPointsByUserNameUsingGET(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RewardControllerApi.getActiveUserRewardPointsByUserNameUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\RewardControllerApi();
$user = user_example; // String | User Name

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

my $api_instance = WWW::OPenAPIClient::RewardControllerApi->new();
my $user = user_example; # String | User Name

eval { 
    my $result = $api_instance->getActiveUserRewardPointsByUserNameUsingGET(user => $user);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RewardControllerApi->getActiveUserRewardPointsByUserNameUsingGET: $@\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.RewardControllerApi()
user = user_example # String | User Name (default to demo)

try: 
    # Retrieve reward points of an active user using User Name
    api_response = api_instance.get_active_user_reward_points_by_user_name_using_get(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RewardControllerApi->getActiveUserRewardPointsByUserNameUsingGET: %s\n" % e)
extern crate RewardControllerApi;

pub fn main() {
    let user = user_example; // String

    let mut context = RewardControllerApi::Context::default();
    let result = client.getActiveUserRewardPointsByUserNameUsingGET(user, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
user*
String
User Name
Required

Responses


getRewardsHistoryByRewardCardNumberUsingGET

Retrieve reward points history of a user using reward card number

Api to fetch reward points history of an active user using reward card number


/reward/history/cardNumber/{cardNumber}

Usage and SDK Samples

curl -X GET "http://localhost:8080/reward/history/cardNumber/{cardNumber}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RewardControllerApi;

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

public class RewardControllerApiExample {

    public static void main(String[] args) {
        
        RewardControllerApi apiInstance = new RewardControllerApi();
        String cardNumber = cardNumber_example; // String | Rewards Card Number
        try {
            UserRewardPointResponseDto result = apiInstance.getRewardsHistoryByRewardCardNumberUsingGET(cardNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RewardControllerApi#getRewardsHistoryByRewardCardNumberUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RewardControllerApi;

public class RewardControllerApiExample {

    public static void main(String[] args) {
        RewardControllerApi apiInstance = new RewardControllerApi();
        String cardNumber = cardNumber_example; // String | Rewards Card Number
        try {
            UserRewardPointResponseDto result = apiInstance.getRewardsHistoryByRewardCardNumberUsingGET(cardNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RewardControllerApi#getRewardsHistoryByRewardCardNumberUsingGET");
            e.printStackTrace();
        }
    }
}
String *cardNumber = cardNumber_example; // Rewards Card Number (default to 100013677941)

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

// Retrieve reward points history of a user using reward card number
[apiInstance getRewardsHistoryByRewardCardNumberUsingGETWith:cardNumber
              completionHandler: ^(UserRewardPointResponseDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.RewardControllerApi()
var cardNumber = cardNumber_example; // {String} Rewards Card Number

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

namespace Example
{
    public class getRewardsHistoryByRewardCardNumberUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new RewardControllerApi();
            var cardNumber = cardNumber_example;  // String | Rewards Card Number (default to 100013677941)

            try
            {
                // Retrieve reward points history of a user using reward card number
                UserRewardPointResponseDto result = apiInstance.getRewardsHistoryByRewardCardNumberUsingGET(cardNumber);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RewardControllerApi.getRewardsHistoryByRewardCardNumberUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\RewardControllerApi();
$cardNumber = cardNumber_example; // String | Rewards Card Number

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

my $api_instance = WWW::OPenAPIClient::RewardControllerApi->new();
my $cardNumber = cardNumber_example; # String | Rewards Card Number

eval { 
    my $result = $api_instance->getRewardsHistoryByRewardCardNumberUsingGET(cardNumber => $cardNumber);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RewardControllerApi->getRewardsHistoryByRewardCardNumberUsingGET: $@\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.RewardControllerApi()
cardNumber = cardNumber_example # String | Rewards Card Number (default to 100013677941)

try: 
    # Retrieve reward points history of a user using reward card number
    api_response = api_instance.get_rewards_history_by_reward_card_number_using_get(cardNumber)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RewardControllerApi->getRewardsHistoryByRewardCardNumberUsingGET: %s\n" % e)
extern crate RewardControllerApi;

pub fn main() {
    let cardNumber = cardNumber_example; // String

    let mut context = RewardControllerApi::Context::default();
    let result = client.getRewardsHistoryByRewardCardNumberUsingGET(cardNumber, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
cardNumber*
String
Rewards Card Number
Required

Responses


getRewardsHistoryByUserNameUsingGET

Retrieve reward points history of a user using user name

Api to fetch reward points history of an active user using user name


/reward/history/user/{userName}

Usage and SDK Samples

curl -X GET "http://localhost:8080/reward/history/user/{userName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RewardControllerApi;

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

public class RewardControllerApiExample {

    public static void main(String[] args) {
        
        RewardControllerApi apiInstance = new RewardControllerApi();
        String userName = userName_example; // String | User Name
        try {
            UserRewardPointResponseDto result = apiInstance.getRewardsHistoryByUserNameUsingGET(userName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RewardControllerApi#getRewardsHistoryByUserNameUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RewardControllerApi;

public class RewardControllerApiExample {

    public static void main(String[] args) {
        RewardControllerApi apiInstance = new RewardControllerApi();
        String userName = userName_example; // String | User Name
        try {
            UserRewardPointResponseDto result = apiInstance.getRewardsHistoryByUserNameUsingGET(userName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RewardControllerApi#getRewardsHistoryByUserNameUsingGET");
            e.printStackTrace();
        }
    }
}
String *userName = userName_example; // User Name (default to demo)

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

// Retrieve reward points history of a user using user name
[apiInstance getRewardsHistoryByUserNameUsingGETWith:userName
              completionHandler: ^(UserRewardPointResponseDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.RewardControllerApi()
var userName = userName_example; // {String} User Name

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

namespace Example
{
    public class getRewardsHistoryByUserNameUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new RewardControllerApi();
            var userName = userName_example;  // String | User Name (default to demo)

            try
            {
                // Retrieve reward points history of a user using user name
                UserRewardPointResponseDto result = apiInstance.getRewardsHistoryByUserNameUsingGET(userName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RewardControllerApi.getRewardsHistoryByUserNameUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\RewardControllerApi();
$userName = userName_example; // String | User Name

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

my $api_instance = WWW::OPenAPIClient::RewardControllerApi->new();
my $userName = userName_example; # String | User Name

eval { 
    my $result = $api_instance->getRewardsHistoryByUserNameUsingGET(userName => $userName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RewardControllerApi->getRewardsHistoryByUserNameUsingGET: $@\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.RewardControllerApi()
userName = userName_example # String | User Name (default to demo)

try: 
    # Retrieve reward points history of a user using user name
    api_response = api_instance.get_rewards_history_by_user_name_using_get(userName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RewardControllerApi->getRewardsHistoryByUserNameUsingGET: %s\n" % e)
extern crate RewardControllerApi;

pub fn main() {
    let userName = userName_example; // String

    let mut context = RewardControllerApi::Context::default();
    let result = client.getRewardsHistoryByUserNameUsingGET(userName, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
userName*
String
User Name
Required

Responses


TierController

addNewTierUsingPOST

Add a new tier

Api to add a new tier in rewards system


/admin/tier/add

Usage and SDK Samples

curl -X POST "http://localhost:8080/admin/tier/add"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TierControllerApi;

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

public class TierControllerApiExample {

    public static void main(String[] args) {
        
        TierControllerApi apiInstance = new TierControllerApi();
        String appId = appId_example; // String | framework
        RefTierRequestDto refTierRequestDto = ; // RefTierRequestDto | 
        try {
            Object result = apiInstance.addNewTierUsingPOST(appId, refTierRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#addNewTierUsingPOST");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TierControllerApi;

public class TierControllerApiExample {

    public static void main(String[] args) {
        TierControllerApi apiInstance = new TierControllerApi();
        String appId = appId_example; // String | framework
        RefTierRequestDto refTierRequestDto = ; // RefTierRequestDto | 
        try {
            Object result = apiInstance.addNewTierUsingPOST(appId, refTierRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#addNewTierUsingPOST");
            e.printStackTrace();
        }
    }
}
String *appId = appId_example; // framework (optional)
RefTierRequestDto *refTierRequestDto = ; //  (optional)

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

// Add a new tier
[apiInstance addNewTierUsingPOSTWith:appId
    refTierRequestDto:refTierRequestDto
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.TierControllerApi()
var opts = {
  'appId': appId_example, // {String} framework
  'refTierRequestDto':  // {RefTierRequestDto} 
};

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

namespace Example
{
    public class addNewTierUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new TierControllerApi();
            var appId = appId_example;  // String | framework (optional) 
            var refTierRequestDto = new RefTierRequestDto(); // RefTierRequestDto |  (optional) 

            try
            {
                // Add a new tier
                Object result = apiInstance.addNewTierUsingPOST(appId, refTierRequestDto);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TierControllerApi.addNewTierUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TierControllerApi();
$appId = appId_example; // String | framework
$refTierRequestDto = ; // RefTierRequestDto | 

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

my $api_instance = WWW::OPenAPIClient::TierControllerApi->new();
my $appId = appId_example; # String | framework
my $refTierRequestDto = WWW::OPenAPIClient::Object::RefTierRequestDto->new(); # RefTierRequestDto | 

eval { 
    my $result = $api_instance->addNewTierUsingPOST(appId => $appId, refTierRequestDto => $refTierRequestDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TierControllerApi->addNewTierUsingPOST: $@\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.TierControllerApi()
appId = appId_example # String | framework (optional)
refTierRequestDto =  # RefTierRequestDto |  (optional)

try: 
    # Add a new tier
    api_response = api_instance.add_new_tier_using_post(appId=appId, refTierRequestDto=refTierRequestDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TierControllerApi->addNewTierUsingPOST: %s\n" % e)
extern crate TierControllerApi;

pub fn main() {
    let appId = appId_example; // String
    let refTierRequestDto = ; // RefTierRequestDto

    let mut context = TierControllerApi::Context::default();
    let result = client.addNewTierUsingPOST(appId, refTierRequestDto, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Header parameters
Name Description
appId
String
framework
Body parameters
Name Description
refTierRequestDto

{ "tierLevel" : "sample tier", "thresholdPoints" : 10 }

Responses


editTierUsingPUT

Edit a tier

Api to update threshold points for the specified tier in rewards system


/admin/tier/edit

Usage and SDK Samples

curl -X PUT "http://localhost:8080/admin/tier/edit"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TierControllerApi;

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

public class TierControllerApiExample {

    public static void main(String[] args) {
        
        TierControllerApi apiInstance = new TierControllerApi();
        String appId = appId_example; // String | framework
        RefTierRequestDto refTierRequestDto = ; // RefTierRequestDto | 
        try {
            Object result = apiInstance.editTierUsingPUT(appId, refTierRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#editTierUsingPUT");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TierControllerApi;

public class TierControllerApiExample {

    public static void main(String[] args) {
        TierControllerApi apiInstance = new TierControllerApi();
        String appId = appId_example; // String | framework
        RefTierRequestDto refTierRequestDto = ; // RefTierRequestDto | 
        try {
            Object result = apiInstance.editTierUsingPUT(appId, refTierRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#editTierUsingPUT");
            e.printStackTrace();
        }
    }
}
String *appId = appId_example; // framework (optional)
RefTierRequestDto *refTierRequestDto = ; //  (optional)

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

// Edit a tier
[apiInstance editTierUsingPUTWith:appId
    refTierRequestDto:refTierRequestDto
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.TierControllerApi()
var opts = {
  'appId': appId_example, // {String} framework
  'refTierRequestDto':  // {RefTierRequestDto} 
};

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

namespace Example
{
    public class editTierUsingPUTExample
    {
        public void main()
        {
            
            var apiInstance = new TierControllerApi();
            var appId = appId_example;  // String | framework (optional) 
            var refTierRequestDto = new RefTierRequestDto(); // RefTierRequestDto |  (optional) 

            try
            {
                // Edit a tier
                Object result = apiInstance.editTierUsingPUT(appId, refTierRequestDto);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TierControllerApi.editTierUsingPUT: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TierControllerApi();
$appId = appId_example; // String | framework
$refTierRequestDto = ; // RefTierRequestDto | 

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

my $api_instance = WWW::OPenAPIClient::TierControllerApi->new();
my $appId = appId_example; # String | framework
my $refTierRequestDto = WWW::OPenAPIClient::Object::RefTierRequestDto->new(); # RefTierRequestDto | 

eval { 
    my $result = $api_instance->editTierUsingPUT(appId => $appId, refTierRequestDto => $refTierRequestDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TierControllerApi->editTierUsingPUT: $@\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.TierControllerApi()
appId = appId_example # String | framework (optional)
refTierRequestDto =  # RefTierRequestDto |  (optional)

try: 
    # Edit a tier
    api_response = api_instance.edit_tier_using_put(appId=appId, refTierRequestDto=refTierRequestDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TierControllerApi->editTierUsingPUT: %s\n" % e)
extern crate TierControllerApi;

pub fn main() {
    let appId = appId_example; // String
    let refTierRequestDto = ; // RefTierRequestDto

    let mut context = TierControllerApi::Context::default();
    let result = client.editTierUsingPUT(appId, refTierRequestDto, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Header parameters
Name Description
appId
String
framework
Body parameters
Name Description
refTierRequestDto

{ "tierLevel" : "sample tier", "thresholdPoints" : 10 }

Responses


getAllTierLevelsUsingGET

Retrieve all tier levels

Api to fetch all tier levels


/admin/tier/all

Usage and SDK Samples

curl -X GET "http://localhost:8080/admin/tier/all"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TierControllerApi;

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

public class TierControllerApiExample {

    public static void main(String[] args) {
        
        TierControllerApi apiInstance = new TierControllerApi();
        try {
            Object result = apiInstance.getAllTierLevelsUsingGET();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#getAllTierLevelsUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TierControllerApi;

public class TierControllerApiExample {

    public static void main(String[] args) {
        TierControllerApi apiInstance = new TierControllerApi();
        try {
            Object result = apiInstance.getAllTierLevelsUsingGET();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#getAllTierLevelsUsingGET");
            e.printStackTrace();
        }
    }
}

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

// Retrieve all tier levels
[apiInstance getAllTierLevelsUsingGETWithCompletionHandler: 
              ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

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

namespace Example
{
    public class getAllTierLevelsUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new TierControllerApi();

            try
            {
                // Retrieve all tier levels
                Object result = apiInstance.getAllTierLevelsUsingGET();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TierControllerApi.getAllTierLevelsUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TierControllerApi();

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

my $api_instance = WWW::OPenAPIClient::TierControllerApi->new();

eval { 
    my $result = $api_instance->getAllTierLevelsUsingGET();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TierControllerApi->getAllTierLevelsUsingGET: $@\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.TierControllerApi()

try: 
    # Retrieve all tier levels
    api_response = api_instance.get_all_tier_levels_using_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TierControllerApi->getAllTierLevelsUsingGET: %s\n" % e)
extern crate TierControllerApi;

pub fn main() {

    let mut context = TierControllerApi::Context::default();
    let result = client.getAllTierLevelsUsingGET(&context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Responses


getThresholdPointsBasedOnTierLevelUsingGET

Retrieve threshold reward points based on tier level

Api to fetch threshold reward points based on tier level


/tier/points/{tierLevel}

Usage and SDK Samples

curl -X GET "http://localhost:8080/tier/points/{tierLevel}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TierControllerApi;

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

public class TierControllerApiExample {

    public static void main(String[] args) {
        
        TierControllerApi apiInstance = new TierControllerApi();
        String tierLevel = tierLevel_example; // String | Tier level
        try {
            Object result = apiInstance.getThresholdPointsBasedOnTierLevelUsingGET(tierLevel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#getThresholdPointsBasedOnTierLevelUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TierControllerApi;

public class TierControllerApiExample {

    public static void main(String[] args) {
        TierControllerApi apiInstance = new TierControllerApi();
        String tierLevel = tierLevel_example; // String | Tier level
        try {
            Object result = apiInstance.getThresholdPointsBasedOnTierLevelUsingGET(tierLevel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#getThresholdPointsBasedOnTierLevelUsingGET");
            e.printStackTrace();
        }
    }
}
String *tierLevel = tierLevel_example; // Tier level (default to Silver)

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

// Retrieve threshold reward points based on tier level
[apiInstance getThresholdPointsBasedOnTierLevelUsingGETWith:tierLevel
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.TierControllerApi()
var tierLevel = tierLevel_example; // {String} Tier level

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

namespace Example
{
    public class getThresholdPointsBasedOnTierLevelUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new TierControllerApi();
            var tierLevel = tierLevel_example;  // String | Tier level (default to Silver)

            try
            {
                // Retrieve threshold reward points based on tier level
                Object result = apiInstance.getThresholdPointsBasedOnTierLevelUsingGET(tierLevel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TierControllerApi.getThresholdPointsBasedOnTierLevelUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TierControllerApi();
$tierLevel = tierLevel_example; // String | Tier level

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

my $api_instance = WWW::OPenAPIClient::TierControllerApi->new();
my $tierLevel = tierLevel_example; # String | Tier level

eval { 
    my $result = $api_instance->getThresholdPointsBasedOnTierLevelUsingGET(tierLevel => $tierLevel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TierControllerApi->getThresholdPointsBasedOnTierLevelUsingGET: $@\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.TierControllerApi()
tierLevel = tierLevel_example # String | Tier level (default to Silver)

try: 
    # Retrieve threshold reward points based on tier level
    api_response = api_instance.get_threshold_points_based_on_tier_level_using_get(tierLevel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TierControllerApi->getThresholdPointsBasedOnTierLevelUsingGET: %s\n" % e)
extern crate TierControllerApi;

pub fn main() {
    let tierLevel = tierLevel_example; // String

    let mut context = TierControllerApi::Context::default();
    let result = client.getThresholdPointsBasedOnTierLevelUsingGET(tierLevel, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
tierLevel*
String
Tier level
Required

Responses


getTierLevelBasedOnPointsUsingGET

Retrieve tier based on reward points

Api to fetch tier based on reward points


/tier/level/{rewardPoints}

Usage and SDK Samples

curl -X GET "http://localhost:8080/tier/level/{rewardPoints}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TierControllerApi;

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

public class TierControllerApiExample {

    public static void main(String[] args) {
        
        TierControllerApi apiInstance = new TierControllerApi();
        String rewardPoints = rewardPoints_example; // String | reward points
        try {
            Object result = apiInstance.getTierLevelBasedOnPointsUsingGET(rewardPoints);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#getTierLevelBasedOnPointsUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TierControllerApi;

public class TierControllerApiExample {

    public static void main(String[] args) {
        TierControllerApi apiInstance = new TierControllerApi();
        String rewardPoints = rewardPoints_example; // String | reward points
        try {
            Object result = apiInstance.getTierLevelBasedOnPointsUsingGET(rewardPoints);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#getTierLevelBasedOnPointsUsingGET");
            e.printStackTrace();
        }
    }
}
String *rewardPoints = rewardPoints_example; // reward points (default to 700)

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

// Retrieve tier based on reward points
[apiInstance getTierLevelBasedOnPointsUsingGETWith:rewardPoints
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.TierControllerApi()
var rewardPoints = rewardPoints_example; // {String} reward points

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

namespace Example
{
    public class getTierLevelBasedOnPointsUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new TierControllerApi();
            var rewardPoints = rewardPoints_example;  // String | reward points (default to 700)

            try
            {
                // Retrieve tier based on reward points
                Object result = apiInstance.getTierLevelBasedOnPointsUsingGET(rewardPoints);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TierControllerApi.getTierLevelBasedOnPointsUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TierControllerApi();
$rewardPoints = rewardPoints_example; // String | reward points

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

my $api_instance = WWW::OPenAPIClient::TierControllerApi->new();
my $rewardPoints = rewardPoints_example; # String | reward points

eval { 
    my $result = $api_instance->getTierLevelBasedOnPointsUsingGET(rewardPoints => $rewardPoints);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TierControllerApi->getTierLevelBasedOnPointsUsingGET: $@\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.TierControllerApi()
rewardPoints = rewardPoints_example # String | reward points (default to 700)

try: 
    # Retrieve tier based on reward points
    api_response = api_instance.get_tier_level_based_on_points_using_get(rewardPoints)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TierControllerApi->getTierLevelBasedOnPointsUsingGET: %s\n" % e)
extern crate TierControllerApi;

pub fn main() {
    let rewardPoints = rewardPoints_example; // String

    let mut context = TierControllerApi::Context::default();
    let result = client.getTierLevelBasedOnPointsUsingGET(rewardPoints, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
rewardPoints*
String
reward points
Required

Responses


loadTiersRefDataUsingPOST

Import tier levels in database

Api to import tier levels in database


/admin/tier/loadRefData

Usage and SDK Samples

curl -X POST "http://localhost:8080/admin/tier/loadRefData"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TierControllerApi;

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

public class TierControllerApiExample {

    public static void main(String[] args) {
        
        TierControllerApi apiInstance = new TierControllerApi();
        try {
            Object result = apiInstance.loadTiersRefDataUsingPOST();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#loadTiersRefDataUsingPOST");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TierControllerApi;

public class TierControllerApiExample {

    public static void main(String[] args) {
        TierControllerApi apiInstance = new TierControllerApi();
        try {
            Object result = apiInstance.loadTiersRefDataUsingPOST();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TierControllerApi#loadTiersRefDataUsingPOST");
            e.printStackTrace();
        }
    }
}

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

// Import tier levels in database
[apiInstance loadTiersRefDataUsingPOSTWithCompletionHandler: 
              ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

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

namespace Example
{
    public class loadTiersRefDataUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new TierControllerApi();

            try
            {
                // Import tier levels in database
                Object result = apiInstance.loadTiersRefDataUsingPOST();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TierControllerApi.loadTiersRefDataUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TierControllerApi();

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

my $api_instance = WWW::OPenAPIClient::TierControllerApi->new();

eval { 
    my $result = $api_instance->loadTiersRefDataUsingPOST();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TierControllerApi->loadTiersRefDataUsingPOST: $@\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.TierControllerApi()

try: 
    # Import tier levels in database
    api_response = api_instance.load_tiers_ref_data_using_post()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TierControllerApi->loadTiersRefDataUsingPOST: %s\n" % e)
extern crate TierControllerApi;

pub fn main() {

    let mut context = TierControllerApi::Context::default();
    let result = client.loadTiersRefDataUsingPOST(&context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Responses


TransactionRewardPointsController

addNewTierUsingPOST1

Add a new transaction Reward point for a given type and role

Add a new transaction reward point for a given type and role


/admin/transactionRewardPoints/add

Usage and SDK Samples

curl -X POST "http://localhost:8080/admin/transactionRewardPoints/add"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TransactionRewardPointsControllerApi;

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

public class TransactionRewardPointsControllerApiExample {

    public static void main(String[] args) {
        
        TransactionRewardPointsControllerApi apiInstance = new TransactionRewardPointsControllerApi();
        String appId = appId_example; // String | framework
        TransactionRewardPointsRequestDto transactionRewardPointsRequestDto = ; // TransactionRewardPointsRequestDto | 
        try {
            Object result = apiInstance.addNewTierUsingPOST1(appId, transactionRewardPointsRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRewardPointsControllerApi#addNewTierUsingPOST1");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TransactionRewardPointsControllerApi;

public class TransactionRewardPointsControllerApiExample {

    public static void main(String[] args) {
        TransactionRewardPointsControllerApi apiInstance = new TransactionRewardPointsControllerApi();
        String appId = appId_example; // String | framework
        TransactionRewardPointsRequestDto transactionRewardPointsRequestDto = ; // TransactionRewardPointsRequestDto | 
        try {
            Object result = apiInstance.addNewTierUsingPOST1(appId, transactionRewardPointsRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRewardPointsControllerApi#addNewTierUsingPOST1");
            e.printStackTrace();
        }
    }
}
String *appId = appId_example; // framework (optional)
TransactionRewardPointsRequestDto *transactionRewardPointsRequestDto = ; //  (optional)

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

// Add a new transaction Reward point for a given type and role
[apiInstance addNewTierUsingPOST1With:appId
    transactionRewardPointsRequestDto:transactionRewardPointsRequestDto
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.TransactionRewardPointsControllerApi()
var opts = {
  'appId': appId_example, // {String} framework
  'transactionRewardPointsRequestDto':  // {TransactionRewardPointsRequestDto} 
};

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

namespace Example
{
    public class addNewTierUsingPOST1Example
    {
        public void main()
        {
            
            var apiInstance = new TransactionRewardPointsControllerApi();
            var appId = appId_example;  // String | framework (optional) 
            var transactionRewardPointsRequestDto = new TransactionRewardPointsRequestDto(); // TransactionRewardPointsRequestDto |  (optional) 

            try
            {
                // Add a new transaction Reward point for a given type and role
                Object result = apiInstance.addNewTierUsingPOST1(appId, transactionRewardPointsRequestDto);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TransactionRewardPointsControllerApi.addNewTierUsingPOST1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TransactionRewardPointsControllerApi();
$appId = appId_example; // String | framework
$transactionRewardPointsRequestDto = ; // TransactionRewardPointsRequestDto | 

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

my $api_instance = WWW::OPenAPIClient::TransactionRewardPointsControllerApi->new();
my $appId = appId_example; # String | framework
my $transactionRewardPointsRequestDto = WWW::OPenAPIClient::Object::TransactionRewardPointsRequestDto->new(); # TransactionRewardPointsRequestDto | 

eval { 
    my $result = $api_instance->addNewTierUsingPOST1(appId => $appId, transactionRewardPointsRequestDto => $transactionRewardPointsRequestDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TransactionRewardPointsControllerApi->addNewTierUsingPOST1: $@\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.TransactionRewardPointsControllerApi()
appId = appId_example # String | framework (optional)
transactionRewardPointsRequestDto =  # TransactionRewardPointsRequestDto |  (optional)

try: 
    # Add a new transaction Reward point for a given type and role
    api_response = api_instance.add_new_tier_using_post1(appId=appId, transactionRewardPointsRequestDto=transactionRewardPointsRequestDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TransactionRewardPointsControllerApi->addNewTierUsingPOST1: %s\n" % e)
extern crate TransactionRewardPointsControllerApi;

pub fn main() {
    let appId = appId_example; // String
    let transactionRewardPointsRequestDto = ; // TransactionRewardPointsRequestDto

    let mut context = TransactionRewardPointsControllerApi::Context::default();
    let result = client.addNewTierUsingPOST1(appId, transactionRewardPointsRequestDto, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Header parameters
Name Description
appId
String
framework
Body parameters
Name Description
transactionRewardPointsRequestDto

{ "transactionType": "sample type", "transactionRole": "sample role", "rewardPoints": 10 }

Responses


editTransactionRewardPointsUsingPUT

Edit transaction reward points record based on transaction type and role

Api to edit transaction reward point record based on transaction type and role


/admin/transactionRewardPoints/edit

Usage and SDK Samples

curl -X PUT "http://localhost:8080/admin/transactionRewardPoints/edit"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TransactionRewardPointsControllerApi;

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

public class TransactionRewardPointsControllerApiExample {

    public static void main(String[] args) {
        
        TransactionRewardPointsControllerApi apiInstance = new TransactionRewardPointsControllerApi();
        String appId = appId_example; // String | framework
        TransactionRewardPointsRequestDto transactionRewardPointsRequestDto = ; // TransactionRewardPointsRequestDto | 
        try {
            Object result = apiInstance.editTransactionRewardPointsUsingPUT(appId, transactionRewardPointsRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRewardPointsControllerApi#editTransactionRewardPointsUsingPUT");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TransactionRewardPointsControllerApi;

public class TransactionRewardPointsControllerApiExample {

    public static void main(String[] args) {
        TransactionRewardPointsControllerApi apiInstance = new TransactionRewardPointsControllerApi();
        String appId = appId_example; // String | framework
        TransactionRewardPointsRequestDto transactionRewardPointsRequestDto = ; // TransactionRewardPointsRequestDto | 
        try {
            Object result = apiInstance.editTransactionRewardPointsUsingPUT(appId, transactionRewardPointsRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRewardPointsControllerApi#editTransactionRewardPointsUsingPUT");
            e.printStackTrace();
        }
    }
}
String *appId = appId_example; // framework (optional)
TransactionRewardPointsRequestDto *transactionRewardPointsRequestDto = ; //  (optional)

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

// Edit transaction reward points record based on transaction type and role
[apiInstance editTransactionRewardPointsUsingPUTWith:appId
    transactionRewardPointsRequestDto:transactionRewardPointsRequestDto
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.TransactionRewardPointsControllerApi()
var opts = {
  'appId': appId_example, // {String} framework
  'transactionRewardPointsRequestDto':  // {TransactionRewardPointsRequestDto} 
};

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

namespace Example
{
    public class editTransactionRewardPointsUsingPUTExample
    {
        public void main()
        {
            
            var apiInstance = new TransactionRewardPointsControllerApi();
            var appId = appId_example;  // String | framework (optional) 
            var transactionRewardPointsRequestDto = new TransactionRewardPointsRequestDto(); // TransactionRewardPointsRequestDto |  (optional) 

            try
            {
                // Edit transaction reward points record based on transaction type and role
                Object result = apiInstance.editTransactionRewardPointsUsingPUT(appId, transactionRewardPointsRequestDto);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TransactionRewardPointsControllerApi.editTransactionRewardPointsUsingPUT: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TransactionRewardPointsControllerApi();
$appId = appId_example; // String | framework
$transactionRewardPointsRequestDto = ; // TransactionRewardPointsRequestDto | 

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

my $api_instance = WWW::OPenAPIClient::TransactionRewardPointsControllerApi->new();
my $appId = appId_example; # String | framework
my $transactionRewardPointsRequestDto = WWW::OPenAPIClient::Object::TransactionRewardPointsRequestDto->new(); # TransactionRewardPointsRequestDto | 

eval { 
    my $result = $api_instance->editTransactionRewardPointsUsingPUT(appId => $appId, transactionRewardPointsRequestDto => $transactionRewardPointsRequestDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TransactionRewardPointsControllerApi->editTransactionRewardPointsUsingPUT: $@\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.TransactionRewardPointsControllerApi()
appId = appId_example # String | framework (optional)
transactionRewardPointsRequestDto =  # TransactionRewardPointsRequestDto |  (optional)

try: 
    # Edit transaction reward points record based on transaction type and role
    api_response = api_instance.edit_transaction_reward_points_using_put(appId=appId, transactionRewardPointsRequestDto=transactionRewardPointsRequestDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TransactionRewardPointsControllerApi->editTransactionRewardPointsUsingPUT: %s\n" % e)
extern crate TransactionRewardPointsControllerApi;

pub fn main() {
    let appId = appId_example; // String
    let transactionRewardPointsRequestDto = ; // TransactionRewardPointsRequestDto

    let mut context = TransactionRewardPointsControllerApi::Context::default();
    let result = client.editTransactionRewardPointsUsingPUT(appId, transactionRewardPointsRequestDto, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Header parameters
Name Description
appId
String
framework
Body parameters
Name Description
transactionRewardPointsRequestDto

{ "transactionType": "sample type", "transactionRole": "sample role", "rewardPoints": 10 }

Responses


getAllTransactionRewardPointsUsingGET

Retrieve all transaction type reward Points

Api to fetch all transaction type reward points


/admin/transactionRewardPoints/all

Usage and SDK Samples

curl -X GET "http://localhost:8080/admin/transactionRewardPoints/all"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TransactionRewardPointsControllerApi;

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

public class TransactionRewardPointsControllerApiExample {

    public static void main(String[] args) {
        
        TransactionRewardPointsControllerApi apiInstance = new TransactionRewardPointsControllerApi();
        try {
            Object result = apiInstance.getAllTransactionRewardPointsUsingGET();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRewardPointsControllerApi#getAllTransactionRewardPointsUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TransactionRewardPointsControllerApi;

public class TransactionRewardPointsControllerApiExample {

    public static void main(String[] args) {
        TransactionRewardPointsControllerApi apiInstance = new TransactionRewardPointsControllerApi();
        try {
            Object result = apiInstance.getAllTransactionRewardPointsUsingGET();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRewardPointsControllerApi#getAllTransactionRewardPointsUsingGET");
            e.printStackTrace();
        }
    }
}

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

// Retrieve all transaction type reward Points 
[apiInstance getAllTransactionRewardPointsUsingGETWithCompletionHandler: 
              ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

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

namespace Example
{
    public class getAllTransactionRewardPointsUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new TransactionRewardPointsControllerApi();

            try
            {
                // Retrieve all transaction type reward Points 
                Object result = apiInstance.getAllTransactionRewardPointsUsingGET();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TransactionRewardPointsControllerApi.getAllTransactionRewardPointsUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TransactionRewardPointsControllerApi();

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

my $api_instance = WWW::OPenAPIClient::TransactionRewardPointsControllerApi->new();

eval { 
    my $result = $api_instance->getAllTransactionRewardPointsUsingGET();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TransactionRewardPointsControllerApi->getAllTransactionRewardPointsUsingGET: $@\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.TransactionRewardPointsControllerApi()

try: 
    # Retrieve all transaction type reward Points 
    api_response = api_instance.get_all_transaction_reward_points_using_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TransactionRewardPointsControllerApi->getAllTransactionRewardPointsUsingGET: %s\n" % e)
extern crate TransactionRewardPointsControllerApi;

pub fn main() {

    let mut context = TransactionRewardPointsControllerApi::Context::default();
    let result = client.getAllTransactionRewardPointsUsingGET(&context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Responses


getRewardPointsBasedOnTxnTypeAndRoleUsingGET

Retrieve transaction's reward Points based on transaction Type and transaction role

Api to fetch transaction's reward points based on transaction type and transaction role


/transactionRewardPoints/{transactionType}/{transactionRole}

Usage and SDK Samples

curl -X GET "http://localhost:8080/transactionRewardPoints/{transactionType}/{transactionRole}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TransactionRewardPointsControllerApi;

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

public class TransactionRewardPointsControllerApiExample {

    public static void main(String[] args) {
        
        TransactionRewardPointsControllerApi apiInstance = new TransactionRewardPointsControllerApi();
        String transactionRole = transactionRole_example; // String | Transaction Role
        String transactionType = transactionType_example; // String | Transaction Type
        try {
            Object result = apiInstance.getRewardPointsBasedOnTxnTypeAndRoleUsingGET(transactionRole, transactionType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRewardPointsControllerApi#getRewardPointsBasedOnTxnTypeAndRoleUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TransactionRewardPointsControllerApi;

public class TransactionRewardPointsControllerApiExample {

    public static void main(String[] args) {
        TransactionRewardPointsControllerApi apiInstance = new TransactionRewardPointsControllerApi();
        String transactionRole = transactionRole_example; // String | Transaction Role
        String transactionType = transactionType_example; // String | Transaction Type
        try {
            Object result = apiInstance.getRewardPointsBasedOnTxnTypeAndRoleUsingGET(transactionRole, transactionType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRewardPointsControllerApi#getRewardPointsBasedOnTxnTypeAndRoleUsingGET");
            e.printStackTrace();
        }
    }
}
String *transactionRole = transactionRole_example; // Transaction Role (default to Supervisor)
String *transactionType = transactionType_example; // Transaction Type (default to Safety Briefing)

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

// Retrieve transaction's reward Points based on transaction Type and transaction role
[apiInstance getRewardPointsBasedOnTxnTypeAndRoleUsingGETWith:transactionRole
    transactionType:transactionType
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.TransactionRewardPointsControllerApi()
var transactionRole = transactionRole_example; // {String} Transaction Role
var transactionType = transactionType_example; // {String} Transaction Type

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

namespace Example
{
    public class getRewardPointsBasedOnTxnTypeAndRoleUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new TransactionRewardPointsControllerApi();
            var transactionRole = transactionRole_example;  // String | Transaction Role (default to Supervisor)
            var transactionType = transactionType_example;  // String | Transaction Type (default to Safety Briefing)

            try
            {
                // Retrieve transaction's reward Points based on transaction Type and transaction role
                Object result = apiInstance.getRewardPointsBasedOnTxnTypeAndRoleUsingGET(transactionRole, transactionType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TransactionRewardPointsControllerApi.getRewardPointsBasedOnTxnTypeAndRoleUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TransactionRewardPointsControllerApi();
$transactionRole = transactionRole_example; // String | Transaction Role
$transactionType = transactionType_example; // String | Transaction Type

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

my $api_instance = WWW::OPenAPIClient::TransactionRewardPointsControllerApi->new();
my $transactionRole = transactionRole_example; # String | Transaction Role
my $transactionType = transactionType_example; # String | Transaction Type

eval { 
    my $result = $api_instance->getRewardPointsBasedOnTxnTypeAndRoleUsingGET(transactionRole => $transactionRole, transactionType => $transactionType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TransactionRewardPointsControllerApi->getRewardPointsBasedOnTxnTypeAndRoleUsingGET: $@\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.TransactionRewardPointsControllerApi()
transactionRole = transactionRole_example # String | Transaction Role (default to Supervisor)
transactionType = transactionType_example # String | Transaction Type (default to Safety Briefing)

try: 
    # Retrieve transaction's reward Points based on transaction Type and transaction role
    api_response = api_instance.get_reward_points_based_on_txn_type_and_role_using_get(transactionRole, transactionType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TransactionRewardPointsControllerApi->getRewardPointsBasedOnTxnTypeAndRoleUsingGET: %s\n" % e)
extern crate TransactionRewardPointsControllerApi;

pub fn main() {
    let transactionRole = transactionRole_example; // String
    let transactionType = transactionType_example; // String

    let mut context = TransactionRewardPointsControllerApi::Context::default();
    let result = client.getRewardPointsBasedOnTxnTypeAndRoleUsingGET(transactionRole, transactionType, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
transactionRole*
String
Transaction Role
Required
transactionType*
String
Transaction Type
Required

Responses


loadTransactionRewardPointsRefDataUsingPOST

Import transaction reward points based on transaction type and role in database

Api to import transaction Reward Points based on transaction type and role in database


/admin/transactionRewardPoints/loadRefData

Usage and SDK Samples

curl -X POST "http://localhost:8080/admin/transactionRewardPoints/loadRefData"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TransactionRewardPointsControllerApi;

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

public class TransactionRewardPointsControllerApiExample {

    public static void main(String[] args) {
        
        TransactionRewardPointsControllerApi apiInstance = new TransactionRewardPointsControllerApi();
        try {
            Object result = apiInstance.loadTransactionRewardPointsRefDataUsingPOST();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRewardPointsControllerApi#loadTransactionRewardPointsRefDataUsingPOST");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TransactionRewardPointsControllerApi;

public class TransactionRewardPointsControllerApiExample {

    public static void main(String[] args) {
        TransactionRewardPointsControllerApi apiInstance = new TransactionRewardPointsControllerApi();
        try {
            Object result = apiInstance.loadTransactionRewardPointsRefDataUsingPOST();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRewardPointsControllerApi#loadTransactionRewardPointsRefDataUsingPOST");
            e.printStackTrace();
        }
    }
}

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

// Import transaction reward points based on transaction type and role in database
[apiInstance loadTransactionRewardPointsRefDataUsingPOSTWithCompletionHandler: 
              ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

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

namespace Example
{
    public class loadTransactionRewardPointsRefDataUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new TransactionRewardPointsControllerApi();

            try
            {
                // Import transaction reward points based on transaction type and role in database
                Object result = apiInstance.loadTransactionRewardPointsRefDataUsingPOST();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TransactionRewardPointsControllerApi.loadTransactionRewardPointsRefDataUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\TransactionRewardPointsControllerApi();

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

my $api_instance = WWW::OPenAPIClient::TransactionRewardPointsControllerApi->new();

eval { 
    my $result = $api_instance->loadTransactionRewardPointsRefDataUsingPOST();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TransactionRewardPointsControllerApi->loadTransactionRewardPointsRefDataUsingPOST: $@\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.TransactionRewardPointsControllerApi()

try: 
    # Import transaction reward points based on transaction type and role in database
    api_response = api_instance.load_transaction_reward_points_ref_data_using_post()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TransactionRewardPointsControllerApi->loadTransactionRewardPointsRefDataUsingPOST: %s\n" % e)
extern crate TransactionRewardPointsControllerApi;

pub fn main() {

    let mut context = TransactionRewardPointsControllerApi::Context::default();
    let result = client.loadTransactionRewardPointsRefDataUsingPOST(&context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Responses


UserProfileController

getUserUsingGET

Retrieve user profile based on user name

Api to fetch user profile based on user name


/user/{id}

Usage and SDK Samples

curl -X GET "http://localhost:8080/user/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserProfileControllerApi;

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

public class UserProfileControllerApiExample {

    public static void main(String[] args) {
        
        UserProfileControllerApi apiInstance = new UserProfileControllerApi();
        String id = id_example; // String | UserName
        try {
            Object result = apiInstance.getUserUsingGET(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserProfileControllerApi#getUserUsingGET");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserProfileControllerApi;

public class UserProfileControllerApiExample {

    public static void main(String[] args) {
        UserProfileControllerApi apiInstance = new UserProfileControllerApi();
        String id = id_example; // String | UserName
        try {
            Object result = apiInstance.getUserUsingGET(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserProfileControllerApi#getUserUsingGET");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // UserName (default to demo)

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

// Retrieve user profile based on user name
[apiInstance getUserUsingGETWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.UserProfileControllerApi()
var id = id_example; // {String} UserName

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

namespace Example
{
    public class getUserUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new UserProfileControllerApi();
            var id = id_example;  // String | UserName (default to demo)

            try
            {
                // Retrieve user profile based on user name
                Object result = apiInstance.getUserUsingGET(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserProfileControllerApi.getUserUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\UserProfileControllerApi();
$id = id_example; // String | UserName

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

my $api_instance = WWW::OPenAPIClient::UserProfileControllerApi->new();
my $id = id_example; # String | UserName

eval { 
    my $result = $api_instance->getUserUsingGET(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserProfileControllerApi->getUserUsingGET: $@\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.UserProfileControllerApi()
id = id_example # String | UserName (default to demo)

try: 
    # Retrieve user profile based on user name
    api_response = api_instance.get_user_using_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserProfileControllerApi->getUserUsingGET: %s\n" % e)
extern crate UserProfileControllerApi;

pub fn main() {
    let id = id_example; // String

    let mut context = UserProfileControllerApi::Context::default();
    let result = client.getUserUsingGET(id, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Path parameters
Name Description
id*
String
UserName
Required

Responses


registerUserUsingPOST

User Registration

Api to register a user


/registration

Usage and SDK Samples

curl -X POST "http://localhost:8080/registration"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserProfileControllerApi;

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

public class UserProfileControllerApiExample {

    public static void main(String[] args) {
        
        UserProfileControllerApi apiInstance = new UserProfileControllerApi();
        String appId = appId_example; // String | framework
        UserProfileRequestDto userProfileRequestDto = ; // UserProfileRequestDto | 
        try {
            UserProfileResponseDto result = apiInstance.registerUserUsingPOST(appId, userProfileRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserProfileControllerApi#registerUserUsingPOST");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserProfileControllerApi;

public class UserProfileControllerApiExample {

    public static void main(String[] args) {
        UserProfileControllerApi apiInstance = new UserProfileControllerApi();
        String appId = appId_example; // String | framework
        UserProfileRequestDto userProfileRequestDto = ; // UserProfileRequestDto | 
        try {
            UserProfileResponseDto result = apiInstance.registerUserUsingPOST(appId, userProfileRequestDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserProfileControllerApi#registerUserUsingPOST");
            e.printStackTrace();
        }
    }
}
String *appId = appId_example; // framework (optional)
UserProfileRequestDto *userProfileRequestDto = ; //  (optional)

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

// User Registration
[apiInstance registerUserUsingPOSTWith:appId
    userProfileRequestDto:userProfileRequestDto
              completionHandler: ^(UserProfileResponseDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RewardsFramework = require('rewards_framework');

var api = new RewardsFramework.UserProfileControllerApi()
var opts = {
  'appId': appId_example, // {String} framework
  'userProfileRequestDto':  // {UserProfileRequestDto} 
};

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

namespace Example
{
    public class registerUserUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new UserProfileControllerApi();
            var appId = appId_example;  // String | framework (optional) 
            var userProfileRequestDto = new UserProfileRequestDto(); // UserProfileRequestDto |  (optional) 

            try
            {
                // User Registration
                UserProfileResponseDto result = apiInstance.registerUserUsingPOST(appId, userProfileRequestDto);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserProfileControllerApi.registerUserUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new OpenAPITools\Client\Api\UserProfileControllerApi();
$appId = appId_example; // String | framework
$userProfileRequestDto = ; // UserProfileRequestDto | 

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

my $api_instance = WWW::OPenAPIClient::UserProfileControllerApi->new();
my $appId = appId_example; # String | framework
my $userProfileRequestDto = WWW::OPenAPIClient::Object::UserProfileRequestDto->new(); # UserProfileRequestDto | 

eval { 
    my $result = $api_instance->registerUserUsingPOST(appId => $appId, userProfileRequestDto => $userProfileRequestDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserProfileControllerApi->registerUserUsingPOST: $@\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.UserProfileControllerApi()
appId = appId_example # String | framework (optional)
userProfileRequestDto =  # UserProfileRequestDto |  (optional)

try: 
    # User Registration
    api_response = api_instance.register_user_using_post(appId=appId, userProfileRequestDto=userProfileRequestDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserProfileControllerApi->registerUserUsingPOST: %s\n" % e)
extern crate UserProfileControllerApi;

pub fn main() {
    let appId = appId_example; // String
    let userProfileRequestDto = ; // UserProfileRequestDto

    let mut context = UserProfileControllerApi::Context::default();
    let result = client.registerUserUsingPOST(appId, userProfileRequestDto, &context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Header parameters
Name Description
appId
String
framework
Body parameters
Name Description
userProfileRequestDto

{ "userName" : "demo", "userStatus" : "ACTIVE" }

Responses