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

Commit bcba4be

Browse files
authored
Merge pull request #51 from Catrobat/create-pull-request/patch-1606297673
Bump autogenerated OpenAPI code
2 parents 768b596 + f53c2c4 commit bcba4be

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

Api/AuthenticationApiInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public function authenticationGet(&$responseCode, array &$responseHeaders);
6868
* @param OpenAPI\Server\Model\RefreshRequest $refresh_request (required)
6969
* @param int $responseCode The HTTP response code to return
7070
* @param array $responseHeaders Additional HTTP headers to return with the response ()
71-
*
72-
* @return OpenAPI\Server\Model\JWTResponse
7371
*/
7472
public function authenticationLogoutPost(RefreshRequest $refresh_request, &$responseCode, array &$responseHeaders);
7573

Controller/AuthenticationController.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,6 @@ public function authenticationLogoutPostAction(Request $request)
131131
return new Response('', 415);
132132
}
133133

134-
// Figure out what data format to return to the client
135-
$produces = ['application/json'];
136-
// Figure out what the client accepts
137-
$clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*';
138-
$responseFormat = $this->getOutputFormat($clientAccepts, $produces);
139-
if (null === $responseFormat)
140-
{
141-
return new Response('', 406);
142-
}
143-
144134
// Handle authentication
145135
// Authentication 'PandaAuth' required
146136
// HTTP basic authentication required
@@ -181,7 +171,7 @@ public function authenticationLogoutPostAction(Request $request)
181171
$handler->setPandaAuth($securityPandaAuth);
182172

183173
// Make the call to the business logic
184-
$responseCode = 200;
174+
$responseCode = 204;
185175
$responseHeaders = [];
186176
$result = $handler->authenticationLogoutPost($refresh_request, $responseCode, $responseHeaders);
187177

@@ -208,12 +198,11 @@ public function authenticationLogoutPostAction(Request $request)
208198
}
209199

210200
return new Response(
211-
null !== $result ? $this->serialize($result, $responseFormat) : '',
201+
'',
212202
$responseCode,
213203
array_merge(
214204
$responseHeaders,
215205
[
216-
'Content-Type' => $responseFormat,
217206
'X-OpenAPI-Message' => $message,
218207
]
219208
)

Resources/docs/Api/AuthenticationApiInterface.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void (empty response body)
7575
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
7676

7777
## **authenticationLogoutPost**
78-
> OpenAPI\Server\Model\JWTResponse authenticationLogoutPost($refresh_request)
78+
> authenticationLogoutPost($refresh_request)
7979
8080
Expires refresh token
8181

@@ -115,7 +115,7 @@ Name | Type | Description | Notes
115115

116116
### Return type
117117

118-
[**OpenAPI\Server\Model\JWTResponse**](../Model/JWTResponse.md)
118+
void (empty response body)
119119

120120
### Authorization
121121

@@ -124,7 +124,7 @@ Name | Type | Description | Notes
124124
### HTTP request headers
125125

126126
- **Content-Type**: application/json
127-
- **Accept**: application/json
127+
- **Accept**: Not defined
128128

129129
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
130130

0 commit comments

Comments
 (0)