All URIs are relative to https://localhost:9200/graph, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createUser() | POST /v1.0/users | Add new entity to users |
| listUsers() | GET /v1.0/users | Get entities from users |
createUser($user): \OpenAPI\Client\Model\UserAdd new entity to users
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | New entity
try {
$result = $apiInstance->createUser($user);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->createUser: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| user | \OpenAPI\Client\Model\User | New entity |
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listUsers($search, $filter, $orderby, $select, $expand): \OpenAPI\Client\Model\CollectionOfUserGet entities from users
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$search = 'search_example'; // string | Search items by search phrases
$filter = memberOf/any(x:x/id eq 910367f9-4041-4db1-961b-d1e98f708eaf); // string | Filter users by property values and relationship attributes
$orderby = array('orderby_example'); // string[] | Order items by property values
$select = array('select_example'); // string[] | Select properties to be returned
$expand = array('expand_example'); // string[] | Expand related entities
try {
$result = $apiInstance->listUsers($search, $filter, $orderby, $select, $expand);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->listUsers: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| search | string | Search items by search phrases | [optional] |
| filter | string | Filter users by property values and relationship attributes | [optional] |
| orderby | string[] | Order items by property values | [optional] |
| select | string[] | Select properties to be returned | [optional] |
| expand | string[] | Expand related entities | [optional] |
\OpenAPI\Client\Model\CollectionOfUser
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]