Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,3 @@

# No reason to commit PHP CS Fixer cache files
/.php_cs.cache

#idea files
/.idea
2 changes: 1 addition & 1 deletion Api/ApiServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
10 changes: 5 additions & 5 deletions Api/AuthenticationApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -55,11 +55,11 @@ public function setPandaAuth($value);
*
* Expires 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 ()
* @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(RefreshRequest $refresh_request, &$responseCode, array &$responseHeaders);
public function authenticationDelete(string $x_refresh, &$responseCode, array &$responseHeaders);

/**
* Operation authenticationGet.
Expand Down
2 changes: 1 addition & 1 deletion Api/MediaLibraryApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/NotificationsApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/ProjectsApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/UserApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/UtilityApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
22 changes: 6 additions & 16 deletions Controller/AuthenticationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -59,29 +59,20 @@ class AuthenticationController extends Controller
*/
public function authenticationDeleteAction(Request $request)
{
// Make sure that the client is providing something that we can consume
$consumes = ['application/json'];
if (!static::isContentTypeAllowed($request, $consumes))
{
// We can't consume the content that the client is sending us
return new Response('', 415);
}

// Handle authentication
// Authentication 'PandaAuth' required
// HTTP basic authentication required
$securityPandaAuth = $request->headers->get('authorization');

// Read out all input parameter values into variables
$refresh_request = $request->getContent();
$x_refresh = $request->headers->get('X-Refresh');

// Use the default value if no value was provided

// Deserialize the input values that needs it
try
{
$inputFormat = $request->getMimeType($request->getContentType());
$refresh_request = $this->deserialize($refresh_request, 'OpenAPI\Server\Model\RefreshRequest', $inputFormat);
$x_refresh = $this->deserialize($x_refresh, 'string', 'string');
}
catch (SerializerRuntimeException $exception)
{
Expand All @@ -91,9 +82,8 @@ public function authenticationDeleteAction(Request $request)
// Validate the input values
$asserts = [];
$asserts[] = new Assert\NotNull();
$asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\RefreshRequest');
$asserts[] = new Assert\Valid();
$response = $this->validate($refresh_request, $asserts);
$asserts[] = new Assert\Type('string');
$response = $this->validate($x_refresh, $asserts);
if ($response instanceof Response)
{
return $response;
Expand All @@ -109,7 +99,7 @@ public function authenticationDeleteAction(Request $request)
// Make the call to the business logic
$responseCode = 204;
$responseHeaders = [];
$result = $handler->authenticationDelete($refresh_request, $responseCode, $responseHeaders);
$result = $handler->authenticationDelete($x_refresh, $responseCode, $responseHeaders);

// Find default response message
$message = '';
Expand Down
2 changes: 1 addition & 1 deletion Controller/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/MediaLibraryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/NotificationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/ProjectsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/UtilityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/OpenAPIServerApiPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/OpenAPIServerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/BaseUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/BasicUserDataResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/DryRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/ExtendedUserDataResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/FeaturedProjectResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/JWTResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/LoginRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/MediaCategoryResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/MediaFileResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/MediaPackageResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/NotificationContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/NotificationResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/NotificationsCountResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/NotificationsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/OAuthLoginRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/ProjectReportRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/ProjectResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/ProjectUploadRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/RefreshRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/RegisterErrorResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.49
* The version of the OpenAPI document: v1.0.51
* Contact: webmaster@catrobat.org
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
Loading