Skip to content

Latest commit

 

History

History
114 lines (73 loc) · 2.38 KB

SecretsApi.md

File metadata and controls

114 lines (73 loc) · 2.38 KB

OpenAPI\Client\SecretsApi

All URIs are relative to http://localhost:59999, except if the operation defines another base path.

Method HTTP request Description
getSecret() GET /secrets/{name}
getSecretKeys() GET /secrets

getSecret()

getSecret($name): string

Example

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



$apiInstance = new OpenAPI\Client\Api\SecretsApi(
    // 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()
);
$name = 'name_example'; // string

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

Parameters

Name Type Description Notes
name string

Return type

string

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]

getSecretKeys()

getSecretKeys(): string[]

Example

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



$apiInstance = new OpenAPI\Client\Api\SecretsApi(
    // 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->getSecretKeys();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecretsApi->getSecretKeys: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

string[]

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]