All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createTermCalendarYear() | POST /employers/{employerId}/termcalendaryears/{termCalendarId} | Create Term Calendar Year |
deleteTermCalendarYear() | DELETE /employers/{employerId}/termcalendaryears/{termCalendarId}/{id} | Delete Term Calendar Year |
getTermCalendarYear() | GET /employers/{employerId}/termcalendaryears/{termCalendarId}/{id} | Get Term Calendar Year |
indexTermCalendarYear() | GET /employers/{employerId}/termcalendaryears/{termCalendarId} | List Term Calendar Years |
updateTermCalendarYear() | PUT /employers/{employerId}/termcalendaryears/{termCalendarId}/{id} | Update Term Calendar Year |
createTermCalendarYear($employerId, $termCalendarId, $contractTermCalendarYearRequest): \SynergiTech\Staffology\Model\ContractTermCalendarYearResponse
Create Term Calendar Year
Creates a new Year data for the Employer and given Term Calendar.
<?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\TermCalendarYearApi(
// 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 Term Calendar Year belongs.
$termCalendarId = 'termCalendarId_example'; // string | The Id of the Term Calendar which you want to add a new year
$contractTermCalendarYearRequest = new \SynergiTech\Staffology\Model\ContractTermCalendarYearRequest(); // \SynergiTech\Staffology\Model\ContractTermCalendarYearRequest
try {
$result = $apiInstance->createTermCalendarYear($employerId, $termCalendarId, $contractTermCalendarYearRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TermCalendarYearApi->createTermCalendarYear: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer to which the Term Calendar Year belongs. | |
termCalendarId | string | The Id of the Term Calendar which you want to add a new year | |
contractTermCalendarYearRequest | \SynergiTech\Staffology\Model\ContractTermCalendarYearRequest | [optional] |
\SynergiTech\Staffology\Model\ContractTermCalendarYearResponse
- Content-Type:
application/json-patch+json
,application/json
,text/json
,application/*+json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteTermCalendarYear($employerId, $termCalendarId, $id)
Delete Term Calendar Year
Deletes a specified Term Calendar Year.
<?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\TermCalendarYearApi(
// 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 Term Calendar Year belongs.
$termCalendarId = 'termCalendarId_example'; // string | The Id of the Term Calendar which you want to delete a year
$id = 'id_example'; // string | The Id of the Term Calendar Year which you want to delete
try {
$apiInstance->deleteTermCalendarYear($employerId, $termCalendarId, $id);
} catch (Exception $e) {
echo 'Exception when calling TermCalendarYearApi->deleteTermCalendarYear: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer to which the Term Calendar Year belongs. | |
termCalendarId | string | The Id of the Term Calendar which you want to delete a year | |
id | string | The Id of the Term Calendar Year which you want to delete |
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]
getTermCalendarYear($employerId, $termCalendarId, $id): \SynergiTech\Staffology\Model\ContractTermCalendarYearResponse
Get Term Calendar Year
Gets a specified Term Calendar Year.
<?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\TermCalendarYearApi(
// 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 Term Calendar Year belongs.
$termCalendarId = 'termCalendarId_example'; // string | The Id of the Term Calendar to which the Year belongs
$id = 'id_example'; // string | The Id of the Term Calendar Year which you want to fetch
try {
$result = $apiInstance->getTermCalendarYear($employerId, $termCalendarId, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TermCalendarYearApi->getTermCalendarYear: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer to which the Term Calendar Year belongs. | |
termCalendarId | string | The Id of the Term Calendar to which the Year belongs | |
id | string | The Id of the Term Calendar Year which you want to fetch |
\SynergiTech\Staffology\Model\ContractTermCalendarYearResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
indexTermCalendarYear($employerId, $termCalendarId): \SynergiTech\Staffology\Model\ContractTermCalendarYearResponse[]
List Term Calendar Years
Lists all Years for an Employer and given Term Calendar.
<?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\TermCalendarYearApi(
// 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 get Term Calendar Year list
$termCalendarId = 'termCalendarId_example'; // string | The Id of the Term Calendar for which you want to list Years
try {
$result = $apiInstance->indexTermCalendarYear($employerId, $termCalendarId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TermCalendarYearApi->indexTermCalendarYear: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer for which you want to get Term Calendar Year list | |
termCalendarId | string | The Id of the Term Calendar for which you want to list Years |
\SynergiTech\Staffology\Model\ContractTermCalendarYearResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateTermCalendarYear($employerId, $termCalendarId, $id, $contractTermCalendarYearRequest): \SynergiTech\Staffology\Model\ContractTermCalendarYearResponse
Update Term Calendar Year
Updates Year data for the Employer and given Term Calendar.
<?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\TermCalendarYearApi(
// 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 Term Calendar Year belongs.
$termCalendarId = 'termCalendarId_example'; // string | The Id of the Term Calendar which you want to update existing year
$id = 'id_example'; // string | The Id of the Term Calendar Year which you want to update data
$contractTermCalendarYearRequest = new \SynergiTech\Staffology\Model\ContractTermCalendarYearRequest(); // \SynergiTech\Staffology\Model\ContractTermCalendarYearRequest
try {
$result = $apiInstance->updateTermCalendarYear($employerId, $termCalendarId, $id, $contractTermCalendarYearRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TermCalendarYearApi->updateTermCalendarYear: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer to which the Term Calendar Year belongs. | |
termCalendarId | string | The Id of the Term Calendar which you want to update existing year | |
id | string | The Id of the Term Calendar Year which you want to update data | |
contractTermCalendarYearRequest | \SynergiTech\Staffology\Model\ContractTermCalendarYearRequest | [optional] |
\SynergiTech\Staffology\Model\ContractTermCalendarYearResponse
- Content-Type:
application/json-patch+json
,application/json
,text/json
,application/*+json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]