Skip to content

Latest commit

 

History

History
126 lines (86 loc) · 3.68 KB

ServicesApi.md

File metadata and controls

126 lines (86 loc) · 3.68 KB

Jiwa\ServicesApi

All URIs are relative to https://api.jiwa.com.au

Method HTTP request Description
restartRequestRestartGet GET /Services/Restart Restarts the API site.
stopRequestStopGet GET /Services/Stop Stops the API Service.

restartRequestRestartGet

\Jiwa\Model\Object restartRequestRestartGet($accept, $jiwa_stateful)

Restarts the API site.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basic
$config = Jiwa\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Jiwa\Api\ServicesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$accept = "accept_example"; // string | Accept Header
$jiwa_stateful = true; // bool | Stateful indicator

try {
    $result = $apiInstance->restartRequestRestartGet($accept, $jiwa_stateful);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServicesApi->restartRequestRestartGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
accept string Accept Header
jiwa_stateful bool Stateful indicator [optional]

Return type

\Jiwa\Model\Object

Authorization

basic

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded, application/json, application/xml
  • Accept: application/json, application/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

stopRequestStopGet

\Jiwa\Model\Object stopRequestStopGet($accept, $jiwa_stateful)

Stops the API Service.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basic
$config = Jiwa\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Jiwa\Api\ServicesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$accept = "accept_example"; // string | Accept Header
$jiwa_stateful = true; // bool | Stateful indicator

try {
    $result = $apiInstance->stopRequestStopGet($accept, $jiwa_stateful);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServicesApi->stopRequestStopGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
accept string Accept Header
jiwa_stateful bool Stateful indicator [optional]

Return type

\Jiwa\Model\Object

Authorization

basic

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded, application/json, application/xml
  • Accept: application/json, application/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]