All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createDepartment() | POST /employers/{employerId}/departments | Create Department |
deleteDepartment() | DELETE /employers/{employerId}/departments/{code} | Delete Department (deprecated) |
deleteDepartmentDepartment() | DELETE /employers/{employerId}/departments/department | Delete Department |
getDepartment() | GET /employers/{employerId}/departments/{code} | Get Department (deprecated) |
getDepartmentDepartment() | GET /employers/{employerId}/departments/Department | Get Department |
indexDepartment() | GET /employers/{employerId}/departments | List Departments |
updateDepartment() | PUT /employers/{employerId}/departments/{code} | Update Department (deprecated) |
updateDepartmentDepartment() | PUT /employers/{employerId}/departments/department | Update Department |
createDepartment($employerId, $department): \SynergiTech\Staffology\Model\Department
Create Department
Creates a new Department 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\DepartmentApi(
// 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
$department = new \SynergiTech\Staffology\Model\Department(); // \SynergiTech\Staffology\Model\Department
try {
$result = $apiInstance->createDepartment($employerId, $department);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->createDepartment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
department | \SynergiTech\Staffology\Model\Department | [optional] |
\SynergiTech\Staffology\Model\Department
- 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]
deleteDepartment($employerId, $code)
Delete Department (deprecated)
Deletes the specified Department.
<?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\DepartmentApi(
// 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
$code = 'code_example'; // string
try {
$apiInstance->deleteDepartment($employerId, $code);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->deleteDepartment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
code | 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]
deleteDepartmentDepartment($employerId, $code)
Delete Department
Deletes the specified Department.
<?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\DepartmentApi(
// 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
$code = 'code_example'; // string
try {
$apiInstance->deleteDepartmentDepartment($employerId, $code);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->deleteDepartmentDepartment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
code | string | [optional] |
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]
getDepartment($employerId, $code): \SynergiTech\Staffology\Model\Department
Get Department (deprecated)
Gets the Department specified. Use the other GET endpoint that supports non-alphanumeric characters for a department code
<?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\DepartmentApi(
// 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 Department belongs.
$code = 'code_example'; // string
try {
$result = $apiInstance->getDepartment($employerId, $code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->getDepartment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer to which the Department belongs. | |
code | string |
\SynergiTech\Staffology\Model\Department
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getDepartmentDepartment($employerId, $code): \SynergiTech\Staffology\Model\Department
Get Department
Gets the Department 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\DepartmentApi(
// 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 Department belongs.
$code = 'code_example'; // string | The code of the Department you want to retrieve.
try {
$result = $apiInstance->getDepartmentDepartment($employerId, $code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->getDepartmentDepartment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer to which the Department belongs. | |
code | string | The code of the Department you want to retrieve. | [optional] |
\SynergiTech\Staffology\Model\Department
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
indexDepartment($employerId): \SynergiTech\Staffology\Model\Item[]
List Departments
Lists all Departments for an 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\DepartmentApi(
// 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 Departments
try {
$result = $apiInstance->indexDepartment($employerId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->indexDepartment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer for which you want to list Departments |
\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]
updateDepartment($employerId, $code, $department): \SynergiTech\Staffology\Model\Department
Update Department (deprecated)
Updates a Department 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\DepartmentApi(
// 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
$code = 'code_example'; // string
$department = new \SynergiTech\Staffology\Model\Department(); // \SynergiTech\Staffology\Model\Department
try {
$result = $apiInstance->updateDepartment($employerId, $code, $department);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->updateDepartment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
code | string | ||
department | \SynergiTech\Staffology\Model\Department | [optional] |
\SynergiTech\Staffology\Model\Department
- 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]
updateDepartmentDepartment($employerId, $code, $department): \SynergiTech\Staffology\Model\Department
Update Department
Updates the details of an existing Department.
<?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\DepartmentApi(
// 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
$code = 'code_example'; // string
$department = new \SynergiTech\Staffology\Model\Department(); // \SynergiTech\Staffology\Model\Department
try {
$result = $apiInstance->updateDepartmentDepartment($employerId, $code, $department);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->updateDepartmentDepartment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
code | string | [optional] | |
department | \SynergiTech\Staffology\Model\Department | [optional] |
\SynergiTech\Staffology\Model\Department
- 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]