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 |
string deleteKey($key_path, $author_name, $author_email)
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key_path | string | ||
author_name | string | ||
author_email | string |
string
No authorization required
- Content-Type: application/json
- Accept: text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string[] listKeys()
<?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;
}
?>
This endpoint does not need any parameter.
string[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object[] listManifests()
<?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;
}
?>
This endpoint does not need any parameter.
object[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object getDependents($key_path)
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key_path | string |
object
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object getKey($key_path, $revision)
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key_path | string | ||
revision | string | [optional] |
object
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object[] getKeyRevisionHistory($key_path, $since)
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key_path | string | ||
since | string |
object[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object getManifest($key_path, $revision)
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key_path | string | ||
revision | string | [optional] |
object
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string getRevision()
<?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;
}
?>
This endpoint does not need any parameter.
string
No authorization required
- Content-Type: application/json
- Accept: text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string updateKey($key_path, $author_name, $author_email, $new_key_model)
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key_path | string | ||
author_name | string | ||
author_email | string | ||
new_key_model | \Swagger\Client\Model\KeyUpdateModel |
string
No authorization required
- Content-Type: application/json
- Accept: text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]