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

Latest commit

 

History

History
204 lines (133 loc) · 5.11 KB

SchemaApi.md

File metadata and controls

204 lines (133 loc) · 5.11 KB

Swagger\Client\SchemaApi

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

Method HTTP request Description
addIdentity POST /schemas/{identityType}
deleteIdentity DELETE /schemas/{identityType}
listSchemas GET /schemas
patchIdentity PATCH /schemas/{identityType}

addIdentity

string addIdentity($identity_type, $author_name, $author_email, $value)

Example

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

$api_instance = new Swagger\Client\Api\SchemaApi();
$identity_type = "identity_type_example"; // string | 
$author_name = "author_name_example"; // string | 
$author_email = "author_email_example"; // string | 
$value = new \Swagger\Client\Model\JsonValue(); // \Swagger\Client\Model\JsonValue | 

try {
    $result = $api_instance->addIdentity($identity_type, $author_name, $author_email, $value);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SchemaApi->addIdentity: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
identity_type string
author_name string
author_email string
value \Swagger\Client\Model\JsonValue

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]

deleteIdentity

string deleteIdentity($identity_type, $author_name, $author_email)

Example

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

$api_instance = new Swagger\Client\Api\SchemaApi();
$identity_type = "identity_type_example"; // string | 
$author_name = "author_name_example"; // string | 
$author_email = "author_email_example"; // string | 

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

Parameters

Name Type Description Notes
identity_type 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]

listSchemas

object[] listSchemas()

Example

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

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

try {
    $result = $api_instance->listSchemas();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SchemaApi->listSchemas: ', $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]

patchIdentity

string patchIdentity($identity_type, $author_name, $author_email, $patch)

Example

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

$api_instance = new Swagger\Client\Api\SchemaApi();
$identity_type = "identity_type_example"; // string | 
$author_name = "author_name_example"; // string | 
$author_email = "author_email_example"; // string | 
$patch = new \Swagger\Client\Model\JsonValue(); // \Swagger\Client\Model\JsonValue | 

try {
    $result = $api_instance->patchIdentity($identity_type, $author_name, $author_email, $patch);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SchemaApi->patchIdentity: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
identity_type string
author_name string
author_email string
patch \Swagger\Client\Model\JsonValue

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]