Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit e943532

Browse files
authored
Merge pull request #64 from Catrobat/create-pull-request/patch-1608568535
Bump autogenerated OpenAPI code
2 parents 68935da + 25ab6d8 commit e943532

File tree

78 files changed

+91
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+91
-104
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,3 @@
6666

6767
# No reason to commit PHP CS Fixer cache files
6868
/.php_cs.cache
69-
70-
#idea files
71-
/.idea

Api/ApiServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.0.49
19+
* The version of the OpenAPI document: v1.0.51
2020
* Contact: webmaster@catrobat.org
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Api/AuthenticationApiInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.49
18+
* The version of the OpenAPI document: v1.0.51
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/
@@ -55,11 +55,11 @@ public function setPandaAuth($value);
5555
*
5656
* Expires refresh token
5757
*
58-
* @param OpenAPI\Server\Model\RefreshRequest $refresh_request (required)
59-
* @param int $responseCode The HTTP response code to return
60-
* @param array $responseHeaders Additional HTTP headers to return with the response ()
58+
* @param string $x_refresh Refresh Token (required)
59+
* @param int $responseCode The HTTP response code to return
60+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
6161
*/
62-
public function authenticationDelete(RefreshRequest $refresh_request, &$responseCode, array &$responseHeaders);
62+
public function authenticationDelete(string $x_refresh, &$responseCode, array &$responseHeaders);
6363

6464
/**
6565
* Operation authenticationGet.

Api/MediaLibraryApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.49
18+
* The version of the OpenAPI document: v1.0.51
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/

Api/NotificationsApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.49
18+
* The version of the OpenAPI document: v1.0.51
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/

Api/ProjectsApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.49
18+
* The version of the OpenAPI document: v1.0.51
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/

Api/UserApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.49
18+
* The version of the OpenAPI document: v1.0.51
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/

Api/UtilityApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.49
18+
* The version of the OpenAPI document: v1.0.51
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/

Controller/AuthenticationController.php

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.0.49
19+
* The version of the OpenAPI document: v1.0.51
2020
* Contact: webmaster@catrobat.org
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/
@@ -59,29 +59,20 @@ class AuthenticationController extends Controller
5959
*/
6060
public function authenticationDeleteAction(Request $request)
6161
{
62-
// Make sure that the client is providing something that we can consume
63-
$consumes = ['application/json'];
64-
if (!static::isContentTypeAllowed($request, $consumes))
65-
{
66-
// We can't consume the content that the client is sending us
67-
return new Response('', 415);
68-
}
69-
7062
// Handle authentication
7163
// Authentication 'PandaAuth' required
7264
// HTTP basic authentication required
7365
$securityPandaAuth = $request->headers->get('authorization');
7466

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

7870
// Use the default value if no value was provided
7971

8072
// Deserialize the input values that needs it
8173
try
8274
{
83-
$inputFormat = $request->getMimeType($request->getContentType());
84-
$refresh_request = $this->deserialize($refresh_request, 'OpenAPI\Server\Model\RefreshRequest', $inputFormat);
75+
$x_refresh = $this->deserialize($x_refresh, 'string', 'string');
8576
}
8677
catch (SerializerRuntimeException $exception)
8778
{
@@ -91,9 +82,8 @@ public function authenticationDeleteAction(Request $request)
9182
// Validate the input values
9283
$asserts = [];
9384
$asserts[] = new Assert\NotNull();
94-
$asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\RefreshRequest');
95-
$asserts[] = new Assert\Valid();
96-
$response = $this->validate($refresh_request, $asserts);
85+
$asserts[] = new Assert\Type('string');
86+
$response = $this->validate($x_refresh, $asserts);
9787
if ($response instanceof Response)
9888
{
9989
return $response;
@@ -109,7 +99,7 @@ public function authenticationDeleteAction(Request $request)
10999
// Make the call to the business logic
110100
$responseCode = 204;
111101
$responseHeaders = [];
112-
$result = $handler->authenticationDelete($refresh_request, $responseCode, $responseHeaders);
102+
$result = $handler->authenticationDelete($x_refresh, $responseCode, $responseHeaders);
113103

114104
// Find default response message
115105
$message = '';

Controller/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.0.49
19+
* The version of the OpenAPI document: v1.0.51
2020
* Contact: webmaster@catrobat.org
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

0 commit comments

Comments
 (0)