Skip to content

Commit

Permalink
Merge pull request #175 from a-schild/master
Browse files Browse the repository at this point in the history
Added config request to get module names
  • Loading branch information
DumbergerL authored Oct 4, 2023
2 parents dfdd820 + 2bbc8d9 commit 0a62fa1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ composer.phar
# ignore log-files
*.log

/http-dump
/http-dump
/nbproject/private/
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [1.4.0 Unreleased]

### Added
- Add get config request ([175](https://github.com/5pm-HDH/churchtools-api/pull/175))
- Add Address-Property to Appointment ([PR137](https://github.com/5pm-HDH/churchtools-api/pull/137))
- Add SongStatistic ([PR140](https://github.com/5pm-HDH/churchtools-api/pull/140), [PR164](https://github.com/5pm-HDH/churchtools-api/pull/164))
- Add multi-factor authentication support ([PR146](https://github.com/5pm-HDH/churchtools-api/pull/146))
Expand Down
22 changes: 22 additions & 0 deletions src/Models/Common/Config/ConfigRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php


namespace CTApi\Models\Common\Config;


use CTApi\CTClient;
use CTApi\Utils\CTResponseUtil;

class ConfigRequest
{
/**
* Request Config of ChurchTools-Instance.
* @return array contains keys: <code>build</code>, <code>shortName</code>, <code>siteName</code> and <code>version</code>
*/
public static function getConfig(): array
{
$client = CTClient::getClient();
$response = $client->get('/api/config');
return CTResponseUtil::jsonToArray($response);
}
}

0 comments on commit 0a62fa1

Please sign in to comment.