-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Niko Heller
committed
Apr 26, 2024
1 parent
bf072af
commit a3592c5
Showing
60 changed files
with
8,279 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Verdigado\GrueneApiClient\DivisionsApi | ||
|
||
All URIs are relative to https://api.gruene.de, except if the operation defines another base path. | ||
|
||
| Method | HTTP request | Description | | ||
| ------------- | ------------- | ------------- | | ||
| [**findDivisions()**](DivisionsApi.md#findDivisions) | **GET** /v1/divisions | Find divisions | | ||
|
||
|
||
## `findDivisions()` | ||
|
||
```php | ||
findDivisions($limit, $offset, $hierarchy, $level, $division_key, $search): \Verdigado\GrueneApiClient\models\FindDivisionsResponse | ||
``` | ||
|
||
Find divisions | ||
|
||
### Example | ||
|
||
```php | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
|
||
|
||
// Configure API key authorization: api_key | ||
$config = Verdigado\GrueneApiClient\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY'); | ||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
// $config = Verdigado\GrueneApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer'); | ||
|
||
// Configure Bearer (JWT) authorization: bearer | ||
$config = Verdigado\GrueneApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); | ||
|
||
// Configure HTTP basic authorization: basic | ||
$config = Verdigado\GrueneApiClient\Configuration::getDefaultConfiguration() | ||
->setUsername('YOUR_USERNAME') | ||
->setPassword('YOUR_PASSWORD'); | ||
|
||
|
||
$apiInstance = new Verdigado\GrueneApiClient\Api\DivisionsApi( | ||
// 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 | ||
); | ||
$limit = 20; // float | ||
$offset = 3.4; // float | ||
$hierarchy = GR; // string | Filter by hierarchy | ||
$level = BV; // string | Filter by hierarchy level | ||
$division_key = array('division_key_example'); // string[] | Filter by division keys | ||
$search = 'search_example'; // string | Search name attributes for substring | ||
|
||
try { | ||
$result = $apiInstance->findDivisions($limit, $offset, $hierarchy, $level, $division_key, $search); | ||
print_r($result); | ||
} catch (Exception $e) { | ||
echo 'Exception when calling DivisionsApi->findDivisions: ', $e->getMessage(), PHP_EOL; | ||
} | ||
``` | ||
|
||
### Parameters | ||
|
||
| Name | Type | Description | Notes | | ||
| ------------- | ------------- | ------------- | ------------- | | ||
| **limit** | **float**| | [optional] [default to 20] | | ||
| **offset** | **float**| | [optional] | | ||
| **hierarchy** | **string**| Filter by hierarchy | [optional] | | ||
| **level** | **string**| Filter by hierarchy level | [optional] | | ||
| **division_key** | [**string[]**](../Model/string.md)| Filter by division keys | [optional] | | ||
| **search** | **string**| Search name attributes for substring | [optional] | | ||
|
||
### Return type | ||
|
||
[**\Verdigado\GrueneApiClient\models\FindDivisionsResponse**](../Model/FindDivisionsResponse.md) | ||
|
||
### Authorization | ||
|
||
[api_key](../../README.md#api_key), [bearer](../../README.md#bearer), [basic](../../README.md#basic) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: `application/json` | ||
|
||
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) | ||
[[Back to Model list]](../../README.md#models) | ||
[[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# # Address | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**zip** | **string** | Location zip code | | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# # BatchUpdateOffboardingServiceUsers | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**upsert** | [**\Verdigado\GrueneApiClient\models\UpsertOffboardingServiceUser[]**](UpsertOffboardingServiceUser.md) | | [optional] | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# # Division | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**id** | **string** | The division id | | ||
**division_key** | **string** | The division key | | ||
**name1** | **string** | | | ||
**name2** | **string** | | | ||
**short_name** | **string** | Descriptive name of the division. | | ||
**hierarchy** | **object** | The root hierarchy the division belongs to | | ||
**level** | **string** | Level in the hierarchy | | ||
**office_address** | [**\Verdigado\GrueneApiClient\models\DivisionOfficeAddress**](DivisionOfficeAddress.md) | | | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# # DivisionOfficeAddress | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**zip** | **string** | Location zip code | | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# # FindDivisionsResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**data** | [**\Verdigado\GrueneApiClient\models\Division[]**](Division.md) | | | ||
**meta** | [**\Verdigado\GrueneApiClient\models\FindDivisionsResponseMeta**](FindDivisionsResponseMeta.md) | | | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# # FindDivisionsResponseMeta | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**count** | **float** | | [optional] | ||
**total** | **float** | | [optional] | ||
**offset** | **float** | | [optional] | ||
**limit** | **float** | | [optional] | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# # NbExternalRef | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**type** | **string** | Type of the external ref | | ||
**key** | **string** | Id in the external system | | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# # NbGroup | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**name** | **string** | | | ||
**slug** | **string** | | | ||
**type** | **string** | | | ||
**active** | **bool** | | | ||
**level** | **string** | | | ||
**organization** | [**\Verdigado\GrueneApiClient\models\NbOrganization**](NbOrganization.md) | | | ||
**external_refs** | [**\Verdigado\GrueneApiClient\models\NbExternalRef[]**](NbExternalRef.md) | | | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# # NbOrganization | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**id** | **string** | Unique character code to identify organization | | ||
**name** | **string** | Organization name | | ||
**regional_chapter_id_prefix** | **string** | Division keys belonging to this organization are always beginning with this sequence. | | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# # NbRegionalChapter | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**id** | **string** | Id of the regional chapter (division key) | | ||
**name** | **string** | Regional chapter name | | ||
**type** | **string** | Regional chapter type Possible values: BV | LV | KV | OV | | ||
**organization** | [**\Verdigado\GrueneApiClient\models\NbOrganization**](NbOrganization.md) | | | ||
**zip_code** | **string** | Zip code of office location | | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# # OffboardingUserInfo | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**id** | **string** | The User Id (Sherpa Id) | | ||
**username** | **string** | The users username. Used to log in to Grünes Netz (gnetz username) | | ||
**email** | **string** | The users email address. | [optional] | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
Oops, something went wrong.