Extends omsorgCore with full CRUD for Facility/Contract/Order plus configurable value lists and an audit trail, and wires the omsorgapp frontend up to the new facilities, settings, and audit-log modules; includes a sidebar active-nav-item highlight. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
4.3 KiB
4.3 KiB
OmsorgCoreClient\AdminSessionsApi
All URIs are relative to http://localhost, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| apiAdminSessionsGet() | GET /api/admin/sessions | |
| apiAdminSessionsIdRevokePost() | POST /api/admin/sessions/{id}/revoke | |
| apiAdminSessionsRevokeAllPost() | POST /api/admin/sessions/revoke-all |
apiAdminSessionsGet()
apiAdminSessionsGet(): \OmsorgCoreClient\Model\SessionResponse[]
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AdminSessionsApi(
// 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
);
try {
$result = $apiInstance->apiAdminSessionsGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdminSessionsApi->apiAdminSessionsGet: ', $e->getMessage(), PHP_EOL;
}
Parameters
This endpoint does not need any parameter.
Return type
\OmsorgCoreClient\Model\SessionResponse[]
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiAdminSessionsIdRevokePost()
apiAdminSessionsIdRevokePost($id)
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AdminSessionsApi(
// 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
try {
$apiInstance->apiAdminSessionsIdRevokePost($id);
} catch (Exception $e) {
echo 'Exception when calling AdminSessionsApi->apiAdminSessionsIdRevokePost: ', $e->getMessage(), PHP_EOL;
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiAdminSessionsRevokeAllPost()
apiAdminSessionsRevokeAllPost()
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AdminSessionsApi(
// 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
);
try {
$apiInstance->apiAdminSessionsRevokeAllPost();
} catch (Exception $e) {
echo 'Exception when calling AdminSessionsApi->apiAdminSessionsRevokeAllPost: ', $e->getMessage(), PHP_EOL;
}
Parameters
This endpoint does not need any parameter.
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]