-
Notifications
You must be signed in to change notification settings - Fork 21
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
Showing
58 changed files
with
955 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php | ||
/** | ||
* ApiServer. | ||
* | ||
* PHP version 8.1.1 | ||
* | ||
* @category Class | ||
* | ||
* @author OpenAPI Generator team | ||
* | ||
* @see https://github.com/openapitools/openapi-generator | ||
*/ | ||
|
||
/** | ||
* Catroweb API. | ||
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.1.10 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
||
/** | ||
* NOTE: This class is auto generated by the openapi generator program. | ||
* https://github.com/openapitools/openapi-generator | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
namespace OpenAPI\Server\Api; | ||
|
||
/** | ||
* ApiServer Class Doc Comment. | ||
* | ||
* PHP version 8.1.1 | ||
* | ||
* @category Class | ||
* | ||
* @author OpenAPI Generator team | ||
* | ||
* @see https://github.com/openapitools/openapi-generator | ||
*/ | ||
class ApiServer | ||
{ | ||
private array $apis = []; | ||
|
||
/** | ||
* Adds an API handler to the server. | ||
* | ||
* @param string $api An API name of the handle | ||
* @param mixed $handler A handler to set for the given API | ||
*/ | ||
public function addApiHandler(string $api, $handler): void | ||
{ | ||
if (isset($this->apis[$api])) { | ||
throw new \InvalidArgumentException('API has already a handler: '.$api); | ||
} | ||
|
||
$this->apis[$api] = $handler; | ||
} | ||
|
||
/** | ||
* Returns an API handler. | ||
* | ||
* @param string $api An API name of the handle | ||
* | ||
* @throws \InvalidArgumentException When no such handler exists | ||
* | ||
* @return mixed Returns a handler | ||
*/ | ||
public function getApiHandler(string $api) | ||
{ | ||
if (!isset($this->apis[$api])) { | ||
throw new \InvalidArgumentException('No handler for '.$api.' implemented.'); | ||
} | ||
|
||
return $this->apis[$api]; | ||
} | ||
} |
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,119 @@ | ||
<?php | ||
/** | ||
* AuthenticationApiInterface. | ||
* | ||
* PHP version 8.1.1 | ||
* | ||
* @category Class | ||
* | ||
* @author OpenAPI Generator team | ||
* | ||
* @see https://github.com/openapitools/openapi-generator | ||
*/ | ||
|
||
/** | ||
* Catroweb API. | ||
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.1.10 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
||
/** | ||
* NOTE: This class is auto generated by the openapi generator program. | ||
* https://github.com/openapitools/openapi-generator | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
namespace OpenAPI\Server\Api; | ||
|
||
use OpenAPI\Server\Model\LoginRequest; | ||
use OpenAPI\Server\Model\OAuthLoginRequest; | ||
use OpenAPI\Server\Model\RefreshRequest; | ||
use OpenAPI\Server\Model\UpgradeTokenRequest; | ||
|
||
/** | ||
* AuthenticationApiInterface Interface Doc Comment. | ||
* | ||
* @category Interface | ||
* | ||
* @author OpenAPI Generator team | ||
* | ||
* @see https://github.com/openapitools/openapi-generator | ||
*/ | ||
interface AuthenticationApiInterface | ||
{ | ||
/** | ||
* Sets authentication method PandaAuth. | ||
* | ||
* @param string|null $value value of the PandaAuth authentication method | ||
*/ | ||
public function setPandaAuth(?string $value): void; | ||
|
||
/** | ||
* Operation authenticationDelete. | ||
* | ||
* Expires refresh token | ||
* | ||
* @param string $x_refresh Refresh Token (required) | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function authenticationDelete(string $x_refresh, int &$responseCode, array &$responseHeaders): void; | ||
|
||
/** | ||
* Operation authenticationGet. | ||
* | ||
* Check token | ||
* | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function authenticationGet(int &$responseCode, array &$responseHeaders): void; | ||
|
||
/** | ||
* Operation authenticationOauthPost. | ||
* | ||
* OAuth Login | ||
* | ||
* @param OAuthLoginRequest $o_auth_login_request (required) | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function authenticationOauthPost(OAuthLoginRequest $o_auth_login_request, int &$responseCode, array &$responseHeaders): array|object|null; | ||
|
||
/** | ||
* Operation authenticationPost. | ||
* | ||
* Login | ||
* | ||
* @param LoginRequest $login_request (required) | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function authenticationPost(LoginRequest $login_request, int &$responseCode, array &$responseHeaders): array|object|null; | ||
|
||
/** | ||
* Operation authenticationRefreshPost. | ||
* | ||
* Refresh token | ||
* | ||
* @param RefreshRequest $refresh_request (required) | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function authenticationRefreshPost(RefreshRequest $refresh_request, int &$responseCode, array &$responseHeaders): array|object|null; | ||
|
||
/** | ||
* Operation authenticationUpgradePost. | ||
* | ||
* Upgrade a deprecated token to JWT | ||
* | ||
* @param UpgradeTokenRequest $upgrade_token_request (required) | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function authenticationUpgradePost(UpgradeTokenRequest $upgrade_token_request, int &$responseCode, array &$responseHeaders): array|object|null; | ||
} |
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,98 @@ | ||
<?php | ||
/** | ||
* MediaLibraryApiInterface. | ||
* | ||
* PHP version 8.1.1 | ||
* | ||
* @category Class | ||
* | ||
* @author OpenAPI Generator team | ||
* | ||
* @see https://github.com/openapitools/openapi-generator | ||
*/ | ||
|
||
/** | ||
* Catroweb API. | ||
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.1.10 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
||
/** | ||
* NOTE: This class is auto generated by the openapi generator program. | ||
* https://github.com/openapitools/openapi-generator | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
namespace OpenAPI\Server\Api; | ||
|
||
/** | ||
* MediaLibraryApiInterface Interface Doc Comment. | ||
* | ||
* @category Interface | ||
* | ||
* @author OpenAPI Generator team | ||
* | ||
* @see https://github.com/openapitools/openapi-generator | ||
*/ | ||
interface MediaLibraryApiInterface | ||
{ | ||
/** | ||
* Operation mediaFileIdGet. | ||
* | ||
* Get the information of a specific media file | ||
* | ||
* @param int $id ID of any given media file (required) | ||
* @param string $attributes (optional, default to '') | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function mediaFileIdGet(int $id, string $attributes, int &$responseCode, array &$responseHeaders): array|object|null; | ||
|
||
/** | ||
* Operation mediaFilesGet. | ||
* | ||
* Get *all* content of the media library. | ||
* | ||
* @param int $limit (optional, default to 20) | ||
* @param int $offset (optional, default to 0) | ||
* @param string $attributes (optional, default to '') | ||
* @param string $flavor (optional, default to '') | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function mediaFilesGet(int $limit, int $offset, string $attributes, string $flavor, int &$responseCode, array &$responseHeaders): array|object|null; | ||
|
||
/** | ||
* Operation mediaFilesSearchGet. | ||
* | ||
* Search for mediafiles associated with keywords | ||
* | ||
* @param string $query (required) | ||
* @param int $limit (optional, default to 20) | ||
* @param int $offset (optional, default to 0) | ||
* @param string $attributes (optional, default to '') | ||
* @param string $flavor (optional, default to '') | ||
* @param string $package_name In which package you want to search (for more fine tuned results) (optional, default to '') | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function mediaFilesSearchGet(string $query, int $limit, int $offset, string $attributes, string $flavor, string $package_name, int &$responseCode, array &$responseHeaders): array|object|null; | ||
|
||
/** | ||
* Operation mediaPackageNameGet. | ||
* | ||
* Get media-library asstes of a named package | ||
* | ||
* @param string $name Name of the package (required) | ||
* @param int $limit (optional, default to 20) | ||
* @param int $offset (optional, default to 0) | ||
* @param string $attributes (optional, default to '') | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function mediaPackageNameGet(string $name, int $limit, int $offset, string $attributes, int &$responseCode, array &$responseHeaders): array|object|null; | ||
} |
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,96 @@ | ||
<?php | ||
/** | ||
* NotificationsApiInterface. | ||
* | ||
* PHP version 8.1.1 | ||
* | ||
* @category Class | ||
* | ||
* @author OpenAPI Generator team | ||
* | ||
* @see https://github.com/openapitools/openapi-generator | ||
*/ | ||
|
||
/** | ||
* Catroweb API. | ||
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.1.10 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
||
/** | ||
* NOTE: This class is auto generated by the openapi generator program. | ||
* https://github.com/openapitools/openapi-generator | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
namespace OpenAPI\Server\Api; | ||
|
||
/** | ||
* NotificationsApiInterface Interface Doc Comment. | ||
* | ||
* @category Interface | ||
* | ||
* @author OpenAPI Generator team | ||
* | ||
* @see https://github.com/openapitools/openapi-generator | ||
*/ | ||
interface NotificationsApiInterface | ||
{ | ||
/** | ||
* Sets authentication method PandaAuth. | ||
* | ||
* @param string|null $value value of the PandaAuth authentication method | ||
*/ | ||
public function setPandaAuth(?string $value): void; | ||
|
||
/** | ||
* Operation notificationIdReadPut. | ||
* | ||
* Mark specified notification as read | ||
* | ||
* @param int $id (required) | ||
* @param string $accept_language (optional, default to 'en') | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function notificationIdReadPut(int $id, string $accept_language, int &$responseCode, array &$responseHeaders): void; | ||
|
||
/** | ||
* Operation notificationsCountGet. | ||
* | ||
* Count the number of unseen notifications | ||
* | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function notificationsCountGet(int &$responseCode, array &$responseHeaders): array|object|null; | ||
|
||
/** | ||
* Operation notificationsGet. | ||
* | ||
* Get user notifications -- StatusCode: 501 - Not yet implemented | ||
* | ||
* @param string $accept_language (optional, default to 'en') | ||
* @param int $limit (optional, default to 20) | ||
* @param int $offset (optional, default to 0) | ||
* @param string $attributes (optional, default to '') | ||
* @param string $type (optional, default to 'all') | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function notificationsGet(string $accept_language, int $limit, int $offset, string $attributes, string $type, int &$responseCode, array &$responseHeaders): array|object|null; | ||
|
||
/** | ||
* Operation notificationsReadPut. | ||
* | ||
* Mark all notifications as read | ||
* | ||
* @param int &$responseCode The HTTP Response Code | ||
* @param array $responseHeaders Additional HTTP headers to return with the response () | ||
*/ | ||
public function notificationsReadPut(int &$responseCode, array &$responseHeaders): void; | ||
} |
Oops, something went wrong.