Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Latest commit

 

History

History
426 lines (272 loc) · 9.48 KB

KeysApi.md

File metadata and controls

426 lines (272 loc) · 9.48 KB

Swagger\Client\KeysApi

All URIs are relative to https://tweek-authoring/api/

Method HTTP request Description
deleteKey DELETE /key
listKeys GET /keys
listManifests GET /manifests
getDependents GET /dependent
getKey GET /key
getKeyRevisionHistory GET /revision-history
getManifest GET /manifest
getRevision GET /revision
updateKey PUT /key

deleteKey

string deleteKey($key_path, $author_name, $author_email)

Example

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

$api_instance = new Swagger\Client\Api\KeysApi();
$key_path = "key_path_example"; // string | 
$author_name = "author_name_example"; // string | 
$author_email = "author_email_example"; // string | 

try {
    $result = $api_instance->deleteKey($key_path, $author_name, $author_email);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KeysApi->deleteKey: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
key_path string
author_name string
author_email string

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: text/html

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

listKeys

string[] listKeys()

Example

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

$api_instance = new Swagger\Client\Api\KeysApi();

try {
    $result = $api_instance->listKeys();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KeysApi->listKeys: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

string[]

Authorization

No authorization required

HTTP request headers

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

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

listManifests

object[] listManifests()

Example

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

$api_instance = new Swagger\Client\Api\KeysApi();

try {
    $result = $api_instance->listManifests();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KeysApi->listManifests: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

object[]

Authorization

No authorization required

HTTP request headers

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

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

getDependents

object getDependents($key_path)

Example

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

$api_instance = new Swagger\Client\Api\KeysApi();
$key_path = "key_path_example"; // string | 

try {
    $result = $api_instance->getDependents($key_path);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KeysApi->getDependents: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
key_path string

Return type

object

Authorization

No authorization required

HTTP request headers

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

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

getKey

object getKey($key_path, $revision)

Example

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

$api_instance = new Swagger\Client\Api\KeysApi();
$key_path = "key_path_example"; // string | 
$revision = "revision_example"; // string | 

try {
    $result = $api_instance->getKey($key_path, $revision);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KeysApi->getKey: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
key_path string
revision string [optional]

Return type

object

Authorization

No authorization required

HTTP request headers

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

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

getKeyRevisionHistory

object[] getKeyRevisionHistory($key_path, $since)

Example

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

$api_instance = new Swagger\Client\Api\KeysApi();
$key_path = "key_path_example"; // string | 
$since = "since_example"; // string | 

try {
    $result = $api_instance->getKeyRevisionHistory($key_path, $since);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KeysApi->getKeyRevisionHistory: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
key_path string
since string

Return type

object[]

Authorization

No authorization required

HTTP request headers

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

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

getManifest

object getManifest($key_path, $revision)

Example

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

$api_instance = new Swagger\Client\Api\KeysApi();
$key_path = "key_path_example"; // string | 
$revision = "revision_example"; // string | 

try {
    $result = $api_instance->getManifest($key_path, $revision);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KeysApi->getManifest: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
key_path string
revision string [optional]

Return type

object

Authorization

No authorization required

HTTP request headers

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

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

getRevision

string getRevision()

Example

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

$api_instance = new Swagger\Client\Api\KeysApi();

try {
    $result = $api_instance->getRevision();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KeysApi->getRevision: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: text/html

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

updateKey

string updateKey($key_path, $author_name, $author_email, $new_key_model)

Example

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

$api_instance = new Swagger\Client\Api\KeysApi();
$key_path = "key_path_example"; // string | 
$author_name = "author_name_example"; // string | 
$author_email = "author_email_example"; // string | 
$new_key_model = new \Swagger\Client\Model\KeyUpdateModel(); // \Swagger\Client\Model\KeyUpdateModel | 

try {
    $result = $api_instance->updateKey($key_path, $author_name, $author_email, $new_key_model);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KeysApi->updateKey: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
key_path string
author_name string
author_email string
new_key_model \Swagger\Client\Model\KeyUpdateModel

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: text/html

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