All URIs are relative to http://localhost, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createWorkingPattern() | POST /employers/{employerId}/workingpatterns | Create WorkingPattern |
| deleteWorkingPattern() | DELETE /employers/{employerId}/workingpatterns/{id} | Delete WorkingPattern |
| getAsyncWorkingPattern() | GET /employers/{employerId}/workingpatterns/{id} | Get WorkingPattern |
| indexAsyncWorkingPattern() | GET /employers/{employerId}/workingpatterns | List WorkingPatterns |
| updateWorkingPattern() | PUT /employers/{employerId}/workingpatterns/{id} | Update WorkingPattern |
createWorkingPattern($employerId, $contractWorkingPatternRequest): \SynergiTech\Staffology\Model\WorkingPatternCreate WorkingPattern
Creates a new WorkingPattern for the Employer.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\WorkingPatternApi(
// 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
);
$employerId = 'employerId_example'; // string
$contractWorkingPatternRequest = new \SynergiTech\Staffology\Model\ContractWorkingPatternRequest(); // \SynergiTech\Staffology\Model\ContractWorkingPatternRequest
try {
$result = $apiInstance->createWorkingPattern($employerId, $contractWorkingPatternRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WorkingPatternApi->createWorkingPattern: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | ||
| contractWorkingPatternRequest | \SynergiTech\Staffology\Model\ContractWorkingPatternRequest | [optional] |
\SynergiTech\Staffology\Model\WorkingPattern
- Content-Type:
application/*+json,application/json,application/json-patch+json,text/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteWorkingPattern($employerId, $id)Delete WorkingPattern
Deletes the specified WorkingPattern.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\WorkingPatternApi(
// 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
);
$employerId = 'employerId_example'; // string
$id = 'id_example'; // string
try {
$apiInstance->deleteWorkingPattern($employerId, $id);
} catch (Exception $e) {
echo 'Exception when calling WorkingPatternApi->deleteWorkingPattern: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | ||
| id | string |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getAsyncWorkingPattern($employerId, $id): \SynergiTech\Staffology\Model\ContractWorkingPatternResponseGet WorkingPattern
Gets the WorkingPattern specified.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\WorkingPatternApi(
// 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
);
$employerId = 'employerId_example'; // string | The Id of the Employer to which the WorkingPattern belongs.
$id = 'id_example'; // string | The id of the WorkingPattern you want to retrieve.
try {
$result = $apiInstance->getAsyncWorkingPattern($employerId, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WorkingPatternApi->getAsyncWorkingPattern: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | The Id of the Employer to which the WorkingPattern belongs. | |
| id | string | The id of the WorkingPattern you want to retrieve. |
\SynergiTech\Staffology\Model\ContractWorkingPatternResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
indexAsyncWorkingPattern($employerId): \SynergiTech\Staffology\Model\Item[]List WorkingPatterns
Lists all WorkingPattern for the Employer specified.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\WorkingPatternApi(
// 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
);
$employerId = 'employerId_example'; // string | The Id of the Employer for which you want to list WorkingPattern
try {
$result = $apiInstance->indexAsyncWorkingPattern($employerId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WorkingPatternApi->indexAsyncWorkingPattern: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | The Id of the Employer for which you want to list WorkingPattern |
\SynergiTech\Staffology\Model\Item[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateWorkingPattern($employerId, $id, $contractWorkingPatternRequest): \SynergiTech\Staffology\Model\ContractWorkingPatternResponseUpdate WorkingPattern
Updates the details of an existing WorkingPattern.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\WorkingPatternApi(
// 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
);
$employerId = 'employerId_example'; // string
$id = 'id_example'; // string
$contractWorkingPatternRequest = new \SynergiTech\Staffology\Model\ContractWorkingPatternRequest(); // \SynergiTech\Staffology\Model\ContractWorkingPatternRequest
try {
$result = $apiInstance->updateWorkingPattern($employerId, $id, $contractWorkingPatternRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WorkingPatternApi->updateWorkingPattern: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | ||
| id | string | ||
| contractWorkingPatternRequest | \SynergiTech\Staffology\Model\ContractWorkingPatternRequest | [optional] |
\SynergiTech\Staffology\Model\ContractWorkingPatternResponse
- Content-Type:
application/*+json,application/json,application/json-patch+json,text/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]