-
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.
Merge pull request #97 from Catrobat/create-pull-request/patch-161764…
…5398 Bump autogenerated OpenAPI code
- Loading branch information
Showing
95 changed files
with
559 additions
and
5,144 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
5.0.0-beta3 | ||
5.1.0 |
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.0.60 | ||
* The version of the OpenAPI document: v1.0.61 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
@@ -55,8 +55,7 @@ class ApiServer | |
*/ | ||
public function addApiHandler($api, $handler) | ||
{ | ||
if (isset($this->apis[$api])) | ||
{ | ||
if (isset($this->apis[$api])) { | ||
throw new \InvalidArgumentException('API has already a handler: '.$api); | ||
} | ||
|
||
|
@@ -74,8 +73,7 @@ public function addApiHandler($api, $handler) | |
*/ | ||
public function getApiHandler($api) | ||
{ | ||
if (!isset($this->apis[$api])) | ||
{ | ||
if (!isset($this->apis[$api])) { | ||
throw new \InvalidArgumentException('No handler for '.$api.' implemented.'); | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.0.60 | ||
* The version of the OpenAPI document: v1.0.61 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.0.60 | ||
* The version of the OpenAPI document: v1.0.61 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.0.60 | ||
* The version of the OpenAPI document: v1.0.61 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.0.60 | ||
* The version of the OpenAPI document: v1.0.61 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.0.60 | ||
* The version of the OpenAPI document: v1.0.61 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.0.60 | ||
* The version of the OpenAPI document: v1.0.61 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.0.60 | ||
* The version of the OpenAPI document: v1.0.61 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
* | ||
* API for the Catrobat Share Platform | ||
* | ||
* The version of the OpenAPI document: v1.0.60 | ||
* The version of the OpenAPI document: v1.0.61 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
@@ -70,12 +70,9 @@ public function authenticationDeleteAction(Request $request) | |
// Use the default value if no value was provided | ||
|
||
// Deserialize the input values that needs it | ||
try | ||
{ | ||
try { | ||
$x_refresh = $this->deserialize($x_refresh, 'string', 'string'); | ||
} | ||
catch (SerializerRuntimeException $exception) | ||
{ | ||
} catch (SerializerRuntimeException $exception) { | ||
return $this->createBadRequestResponse($exception->getMessage()); | ||
} | ||
|
||
|
@@ -84,13 +81,11 @@ public function authenticationDeleteAction(Request $request) | |
$asserts[] = new Assert\NotNull(); | ||
$asserts[] = new Assert\Type('string'); | ||
$response = $this->validate($x_refresh, $asserts); | ||
if ($response instanceof Response) | ||
{ | ||
if ($response instanceof Response) { | ||
return $response; | ||
} | ||
|
||
try | ||
{ | ||
try { | ||
$handler = $this->getApiHandler(); | ||
|
||
// Set authentication method 'PandaAuth' | ||
|
@@ -133,9 +128,7 @@ public function authenticationDeleteAction(Request $request) | |
] | ||
) | ||
); | ||
} | ||
catch (Exception $fallthrough) | ||
{ | ||
} catch (Exception $fallthrough) { | ||
return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); | ||
} | ||
} | ||
|
@@ -162,8 +155,7 @@ public function authenticationGetAction(Request $request) | |
|
||
// Validate the input values | ||
|
||
try | ||
{ | ||
try { | ||
$handler = $this->getApiHandler(); | ||
|
||
// Set authentication method 'PandaAuth' | ||
|
@@ -197,9 +189,7 @@ public function authenticationGetAction(Request $request) | |
] | ||
) | ||
); | ||
} | ||
catch (Exception $fallthrough) | ||
{ | ||
} catch (Exception $fallthrough) { | ||
return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); | ||
} | ||
} | ||
|
@@ -217,8 +207,7 @@ public function authenticationOauthPostAction(Request $request) | |
{ | ||
// Make sure that the client is providing something that we can consume | ||
$consumes = ['application/json']; | ||
if (!static::isContentTypeAllowed($request, $consumes)) | ||
{ | ||
if (!static::isContentTypeAllowed($request, $consumes)) { | ||
// We can't consume the content that the client is sending us | ||
return new Response('', 415); | ||
} | ||
|
@@ -228,8 +217,7 @@ public function authenticationOauthPostAction(Request $request) | |
// Figure out what the client accepts | ||
$clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; | ||
$responseFormat = $this->getOutputFormat($clientAccepts, $produces); | ||
if (null === $responseFormat) | ||
{ | ||
if (null === $responseFormat) { | ||
return new Response('', 406); | ||
} | ||
|
||
|
@@ -241,13 +229,10 @@ public function authenticationOauthPostAction(Request $request) | |
// Use the default value if no value was provided | ||
|
||
// Deserialize the input values that needs it | ||
try | ||
{ | ||
try { | ||
$inputFormat = $request->getMimeType($request->getContentType()); | ||
$o_auth_login_request = $this->deserialize($o_auth_login_request, 'OpenAPI\Server\Model\OAuthLoginRequest', $inputFormat); | ||
} | ||
catch (SerializerRuntimeException $exception) | ||
{ | ||
} catch (SerializerRuntimeException $exception) { | ||
return $this->createBadRequestResponse($exception->getMessage()); | ||
} | ||
|
||
|
@@ -257,13 +242,11 @@ public function authenticationOauthPostAction(Request $request) | |
$asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\OAuthLoginRequest'); | ||
$asserts[] = new Assert\Valid(); | ||
$response = $this->validate($o_auth_login_request, $asserts); | ||
if ($response instanceof Response) | ||
{ | ||
if ($response instanceof Response) { | ||
return $response; | ||
} | ||
|
||
try | ||
{ | ||
try { | ||
$handler = $this->getApiHandler(); | ||
|
||
// Make the call to the business logic | ||
|
@@ -307,9 +290,7 @@ public function authenticationOauthPostAction(Request $request) | |
] | ||
) | ||
); | ||
} | ||
catch (Exception $fallthrough) | ||
{ | ||
} catch (Exception $fallthrough) { | ||
return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); | ||
} | ||
} | ||
|
@@ -327,8 +308,7 @@ public function authenticationPostAction(Request $request) | |
{ | ||
// Make sure that the client is providing something that we can consume | ||
$consumes = ['application/json']; | ||
if (!static::isContentTypeAllowed($request, $consumes)) | ||
{ | ||
if (!static::isContentTypeAllowed($request, $consumes)) { | ||
// We can't consume the content that the client is sending us | ||
return new Response('', 415); | ||
} | ||
|
@@ -338,8 +318,7 @@ public function authenticationPostAction(Request $request) | |
// Figure out what the client accepts | ||
$clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; | ||
$responseFormat = $this->getOutputFormat($clientAccepts, $produces); | ||
if (null === $responseFormat) | ||
{ | ||
if (null === $responseFormat) { | ||
return new Response('', 406); | ||
} | ||
|
||
|
@@ -354,13 +333,10 @@ public function authenticationPostAction(Request $request) | |
// Use the default value if no value was provided | ||
|
||
// Deserialize the input values that needs it | ||
try | ||
{ | ||
try { | ||
$inputFormat = $request->getMimeType($request->getContentType()); | ||
$login_request = $this->deserialize($login_request, 'OpenAPI\Server\Model\LoginRequest', $inputFormat); | ||
} | ||
catch (SerializerRuntimeException $exception) | ||
{ | ||
} catch (SerializerRuntimeException $exception) { | ||
return $this->createBadRequestResponse($exception->getMessage()); | ||
} | ||
|
||
|
@@ -370,13 +346,11 @@ public function authenticationPostAction(Request $request) | |
$asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\LoginRequest'); | ||
$asserts[] = new Assert\Valid(); | ||
$response = $this->validate($login_request, $asserts); | ||
if ($response instanceof Response) | ||
{ | ||
if ($response instanceof Response) { | ||
return $response; | ||
} | ||
|
||
try | ||
{ | ||
try { | ||
$handler = $this->getApiHandler(); | ||
|
||
// Set authentication method 'PandaAuth' | ||
|
@@ -420,9 +394,7 @@ public function authenticationPostAction(Request $request) | |
] | ||
) | ||
); | ||
} | ||
catch (Exception $fallthrough) | ||
{ | ||
} catch (Exception $fallthrough) { | ||
return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); | ||
} | ||
} | ||
|
@@ -440,8 +412,7 @@ public function authenticationRefreshPostAction(Request $request) | |
{ | ||
// Make sure that the client is providing something that we can consume | ||
$consumes = ['application/json']; | ||
if (!static::isContentTypeAllowed($request, $consumes)) | ||
{ | ||
if (!static::isContentTypeAllowed($request, $consumes)) { | ||
// We can't consume the content that the client is sending us | ||
return new Response('', 415); | ||
} | ||
|
@@ -451,8 +422,7 @@ public function authenticationRefreshPostAction(Request $request) | |
// Figure out what the client accepts | ||
$clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; | ||
$responseFormat = $this->getOutputFormat($clientAccepts, $produces); | ||
if (null === $responseFormat) | ||
{ | ||
if (null === $responseFormat) { | ||
return new Response('', 406); | ||
} | ||
|
||
|
@@ -467,13 +437,10 @@ public function authenticationRefreshPostAction(Request $request) | |
// Use the default value if no value was provided | ||
|
||
// Deserialize the input values that needs it | ||
try | ||
{ | ||
try { | ||
$inputFormat = $request->getMimeType($request->getContentType()); | ||
$refresh_request = $this->deserialize($refresh_request, 'OpenAPI\Server\Model\RefreshRequest', $inputFormat); | ||
} | ||
catch (SerializerRuntimeException $exception) | ||
{ | ||
} catch (SerializerRuntimeException $exception) { | ||
return $this->createBadRequestResponse($exception->getMessage()); | ||
} | ||
|
||
|
@@ -483,13 +450,11 @@ public function authenticationRefreshPostAction(Request $request) | |
$asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\RefreshRequest'); | ||
$asserts[] = new Assert\Valid(); | ||
$response = $this->validate($refresh_request, $asserts); | ||
if ($response instanceof Response) | ||
{ | ||
if ($response instanceof Response) { | ||
return $response; | ||
} | ||
|
||
try | ||
{ | ||
try { | ||
$handler = $this->getApiHandler(); | ||
|
||
// Set authentication method 'PandaAuth' | ||
|
@@ -533,9 +498,7 @@ public function authenticationRefreshPostAction(Request $request) | |
] | ||
) | ||
); | ||
} | ||
catch (Exception $fallthrough) | ||
{ | ||
} catch (Exception $fallthrough) { | ||
return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); | ||
} | ||
} | ||
|
Oops, something went wrong.