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 = '' ;
0 commit comments