All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createWebspace() | POST /webspaces | Create a webspace |
getWebspace() | GET /webspaces/{id} | Get a webspace |
getWebspaces() | GET /webspaces | Get all webspaces |
loginSessionWebspace() | POST /webspaces/{id}/login-session | Login to a webspace |
createWebspace($webspaceCreateWebspaceRequestWebspaceCreate): \NETZFABRIK\Model\WebspaceWebspaceRead
Create a webspace
Creates a Webspace resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: JWT
$config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new NETZFABRIK\Api\WebspaceApi(
// 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(),
$config
);
$webspaceCreateWebspaceRequestWebspaceCreate = new \NETZFABRIK\Model\WebspaceCreateWebspaceRequestWebspaceCreate(); // \NETZFABRIK\Model\WebspaceCreateWebspaceRequestWebspaceCreate | The new Webspace resource
try {
$result = $apiInstance->createWebspace($webspaceCreateWebspaceRequestWebspaceCreate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebspaceApi->createWebspace: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
webspaceCreateWebspaceRequestWebspaceCreate | \NETZFABRIK\Model\WebspaceCreateWebspaceRequestWebspaceCreate | The new Webspace resource |
\NETZFABRIK\Model\WebspaceWebspaceRead
- Content-Type:
application/json
,text/html
- Accept:
application/json
,text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getWebspace($id): \NETZFABRIK\Model\WebspaceWebspaceRead
Get a webspace
Retrieves a Webspace resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: JWT
$config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new NETZFABRIK\Api\WebspaceApi(
// 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(),
$config
);
$id = 'id_example'; // string | Webspace identifier
try {
$result = $apiInstance->getWebspace($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebspaceApi->getWebspace: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Webspace identifier |
\NETZFABRIK\Model\WebspaceWebspaceRead
- Content-Type: Not defined
- Accept:
application/json
,text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getWebspaces($page): \NETZFABRIK\Model\WebspaceWebspaceRead[]
Get all webspaces
Retrieves the collection of Webspace resources.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: JWT
$config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new NETZFABRIK\Api\WebspaceApi(
// 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(),
$config
);
$page = 1; // int | The collection page number
try {
$result = $apiInstance->getWebspaces($page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebspaceApi->getWebspaces: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
page | int | The collection page number | [optional] [default to 1] |
\NETZFABRIK\Model\WebspaceWebspaceRead[]
- Content-Type: Not defined
- Accept:
application/json
,text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
loginSessionWebspace($id, $body): \NETZFABRIK\Model\WebspaceWebspaceLoginSessionResponseWebspaceLoginSession
Login to a webspace
Creates a Webspace resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: JWT
$config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new NETZFABRIK\Api\WebspaceApi(
// 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(),
$config
);
$id = 'id_example'; // string | Webspace identifier
$body = NULL; // mixed | The new Webspace resource
try {
$result = $apiInstance->loginSessionWebspace($id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebspaceApi->loginSessionWebspace: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Webspace identifier | |
body | mixed | The new Webspace resource |
\NETZFABRIK\Model\WebspaceWebspaceLoginSessionResponseWebspaceLoginSession
- Content-Type:
application/json
,text/html
- Accept:
application/json
,text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]