Skip to content

Latest commit

 

History

History
113 lines (72 loc) · 2.44 KB

SystemServiceApi.md

File metadata and controls

113 lines (72 loc) · 2.44 KB

OpenAPI\Client\SystemServiceApi

All URIs are relative to http://api.madana.io/rest.

Method HTTP request Description
getAllObjects() GET /system/health
getApplication2() GET /system/usage Return the current application usage.

getAllObjects()

getAllObjects(): \SplFileObject

Example

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



$apiInstance = new OpenAPI\Client\Api\SystemServiceApi(
    // 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()
);

try {
    $result = $apiInstance->getAllObjects();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SystemServiceApi->getAllObjects: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\SplFileObject

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

getApplication2()

getApplication2(): map[string,object]

Return the current application usage.

Return the current application usage

Example

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



$apiInstance = new OpenAPI\Client\Api\SystemServiceApi(
    // 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()
);

try {
    $result = $apiInstance->getApplication2();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SystemServiceApi->getApplication2: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

map[string,object]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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