Skip to content

Commit

Permalink
Merge pull request #70 from Catrobat/create-pull-request/patch-161079…
Browse files Browse the repository at this point in the history
…2274

Bump autogenerated OpenAPI code
  • Loading branch information
dmetzner authored Jan 16, 2021
2 parents e2b6143 + d6f3bad commit f8b0fab
Show file tree
Hide file tree
Showing 119 changed files with 15,716 additions and 2 deletions.
124 changes: 124 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
.coveralls.yml
.gitignore
.php_cs.dist
.travis.yml
Api/ApiServer.php
Api/AuthenticationApiInterface.php
Api/MediaLibraryApiInterface.php
Api/NotificationsApiInterface.php
Api/ProjectsApiInterface.php
Api/UserApiInterface.php
Api/UtilityApiInterface.php
Controller/AuthenticationController.php
Controller/Controller.php
Controller/MediaLibraryController.php
Controller/NotificationsController.php
Controller/ProjectsController.php
Controller/UserController.php
Controller/UtilityController.php
DependencyInjection/Compiler/OpenAPIServerApiPass.php
DependencyInjection/OpenAPIServerExtension.php
Model/BaseUser.php
Model/BasicUserDataResponse.php
Model/DryRun.php
Model/ExtendedUserDataResponse.php
Model/FeaturedProjectResponse.php
Model/JWTResponse.php
Model/LoginRequest.php
Model/MediaCategoryResponse.php
Model/MediaFileResponse.php
Model/MediaPackageResponse.php
Model/NotificationContent.php
Model/NotificationResponse.php
Model/NotificationsCountResponse.php
Model/NotificationsType.php
Model/OAuthLoginRequest.php
Model/ProjectReportRequest.php
Model/ProjectResponse.php
Model/ProjectUploadRequest.php
Model/RefreshRequest.php
Model/RegisterErrorResponse.php
Model/RegisterRequest.php
Model/UpdateUserErrorResponse.php
Model/UpdateUserRequest.php
Model/UpdateUserRequestAllOf.php
Model/UploadErrorResponse.php
OpenAPIServerBundle.php
README.md
Resources/config/routing.yml
Resources/config/services.yml
Resources/docs/Api/AuthenticationApiInterface.md
Resources/docs/Api/MediaLibraryApiInterface.md
Resources/docs/Api/NotificationsApiInterface.md
Resources/docs/Api/ProjectsApiInterface.md
Resources/docs/Api/UserApiInterface.md
Resources/docs/Api/UtilityApiInterface.md
Resources/docs/Model/BaseUser.md
Resources/docs/Model/BasicUserDataResponse.md
Resources/docs/Model/DryRun.md
Resources/docs/Model/ExtendedUserDataResponse.md
Resources/docs/Model/FeaturedProjectResponse.md
Resources/docs/Model/JWTResponse.md
Resources/docs/Model/LoginRequest.md
Resources/docs/Model/MediaCategoryResponse.md
Resources/docs/Model/MediaFileResponse.md
Resources/docs/Model/MediaPackageResponse.md
Resources/docs/Model/NotificationContent.md
Resources/docs/Model/NotificationResponse.md
Resources/docs/Model/NotificationsCountResponse.md
Resources/docs/Model/NotificationsType.md
Resources/docs/Model/OAuthLoginRequest.md
Resources/docs/Model/ProjectReportRequest.md
Resources/docs/Model/ProjectResponse.md
Resources/docs/Model/ProjectUploadRequest.md
Resources/docs/Model/RefreshRequest.md
Resources/docs/Model/RegisterErrorResponse.md
Resources/docs/Model/RegisterRequest.md
Resources/docs/Model/UpdateUserErrorResponse.md
Resources/docs/Model/UpdateUserRequest.md
Resources/docs/Model/UpdateUserRequestAllOf.md
Resources/docs/Model/UploadErrorResponse.md
Service/JmsSerializer.php
Service/SerializerInterface.php
Service/StrictJsonDeserializationVisitor.php
Service/SymfonyValidator.php
Service/TypeMismatchException.php
Service/ValidatorInterface.php
Tests/Api/AuthenticationApiInterfaceTest.php
Tests/Api/MediaLibraryApiInterfaceTest.php
Tests/Api/NotificationsApiInterfaceTest.php
Tests/Api/ProjectsApiInterfaceTest.php
Tests/Api/UserApiInterfaceTest.php
Tests/Api/UtilityApiInterfaceTest.php
Tests/AppKernel.php
Tests/Controller/ControllerTest.php
Tests/Model/BaseUserTest.php
Tests/Model/BasicUserDataResponseTest.php
Tests/Model/DryRunTest.php
Tests/Model/ExtendedUserDataResponseTest.php
Tests/Model/FeaturedProjectResponseTest.php
Tests/Model/JWTResponseTest.php
Tests/Model/LoginRequestTest.php
Tests/Model/MediaCategoryResponseTest.php
Tests/Model/MediaFileResponseTest.php
Tests/Model/MediaPackageResponseTest.php
Tests/Model/NotificationContentTest.php
Tests/Model/NotificationResponseTest.php
Tests/Model/NotificationsCountResponseTest.php
Tests/Model/NotificationsTypeTest.php
Tests/Model/OAuthLoginRequestTest.php
Tests/Model/ProjectReportRequestTest.php
Tests/Model/ProjectResponseTest.php
Tests/Model/ProjectUploadRequestTest.php
Tests/Model/RefreshRequestTest.php
Tests/Model/RegisterErrorResponseTest.php
Tests/Model/RegisterRequestTest.php
Tests/Model/UpdateUserErrorResponseTest.php
Tests/Model/UpdateUserRequestAllOfTest.php
Tests/Model/UpdateUserRequestTest.php
Tests/Model/UploadErrorResponseTest.php
Tests/test_config.yml
autoload.php
git_push.sh
phpunit.xml.dist
pom.xml
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.0.0-beta3
84 changes: 84 additions & 0 deletions Api/ApiServer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?php
/**
* ApiServer.
*
* PHP version 7.1.3
*
* @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.0.52
* 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 5
*
* @category Class
*
* @author OpenAPI Generator team
*
* @see https://github.com/openapitools/openapi-generator
*/
class ApiServer
{
/**
* @var array
*/
private $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($api, $handler)
{
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($api)
{
if (!isset($this->apis[$api]))
{
throw new \InvalidArgumentException('No handler for '.$api.' implemented.');
}

return $this->apis[$api];
}
}
112 changes: 112 additions & 0 deletions Api/AuthenticationApiInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?php
/**
* AuthenticationApiInterface
* PHP version 7.1.3.
*
* @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.0.52
* 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;

/**
* 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 $value value of the PandaAuth authentication method
*/
public function setPandaAuth($value);

/**
* Operation authenticationDelete.
*
* Expires refresh token
*
* @param string $x_refresh Refresh Token (required)
* @param int $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*/
public function authenticationDelete(string $x_refresh, &$responseCode, array &$responseHeaders);

/**
* Operation authenticationGet.
*
* Check token
*
* @param int $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*/
public function authenticationGet(&$responseCode, array &$responseHeaders);

/**
* Operation authenticationOauthPost.
*
* OAuth Login
*
* @param OpenAPI\Server\Model\OAuthLoginRequest $o_auth_login_request (required)
* @param int $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\JWTResponse
*/
public function authenticationOauthPost(OAuthLoginRequest $o_auth_login_request, &$responseCode, array &$responseHeaders);

/**
* Operation authenticationPost.
*
* Login
*
* @param OpenAPI\Server\Model\LoginRequest $login_request (required)
* @param int $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\JWTResponse
*/
public function authenticationPost(LoginRequest $login_request, &$responseCode, array &$responseHeaders);

/**
* Operation authenticationPut.
*
* Refresh token
*
* @param OpenAPI\Server\Model\RefreshRequest $refresh_request (required)
* @param int $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\JWTResponse
*/
public function authenticationPut(RefreshRequest $refresh_request, &$responseCode, array &$responseHeaders);
}
Loading

0 comments on commit f8b0fab

Please sign in to comment.