Skip to content

Commit

Permalink
Rerun generator
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Sep 3, 2024
1 parent 0e436db commit 8fc4f70
Show file tree
Hide file tree
Showing 60 changed files with 544 additions and 138 deletions.
10 changes: 5 additions & 5 deletions lib/Api/APIKeysApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
* Generator version: 7.8.0
*/

/**
Expand Down Expand Up @@ -225,7 +225,7 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
$response->getStatusCode(),
$response->getHeaders()
];
case 401:
case 201:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand All @@ -252,7 +252,7 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
$response->getStatusCode(),
$response->getHeaders()
];
case 201:
case 401:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand Down Expand Up @@ -319,15 +319,15 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
);
$e->setResponseObject($data);
break;
case 401:
case 201:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 201:
case 401:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/AuthenticationApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
* Generator version: 7.8.0
*/

/**
Expand Down
26 changes: 13 additions & 13 deletions lib/Api/PagesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
* Generator version: 7.8.0
*/

/**
Expand Down Expand Up @@ -705,7 +705,7 @@ public function getMainPageWithHttpInfo($slug, string $contentType = self::conte
}

switch($statusCode) {
case 200:
case 403:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand All @@ -732,7 +732,7 @@ public function getMainPageWithHttpInfo($slug, string $contentType = self::conte
$response->getStatusCode(),
$response->getHeaders()
];
case 403:
case 401:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand All @@ -759,7 +759,7 @@ public function getMainPageWithHttpInfo($slug, string $contentType = self::conte
$response->getStatusCode(),
$response->getHeaders()
];
case 401:
case 200:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand Down Expand Up @@ -818,23 +818,23 @@ public function getMainPageWithHttpInfo($slug, string $contentType = self::conte

} catch (ApiException $e) {
switch ($e->getCode()) {
case 200:
case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 403:
case 401:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 401:
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
Expand Down Expand Up @@ -1084,7 +1084,7 @@ public function getPageWithHttpInfo($slug, $path, string $contentType = self::co
}

switch($statusCode) {
case 200:
case 403:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand All @@ -1111,7 +1111,7 @@ public function getPageWithHttpInfo($slug, $path, string $contentType = self::co
$response->getStatusCode(),
$response->getHeaders()
];
case 403:
case 401:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand All @@ -1138,7 +1138,7 @@ public function getPageWithHttpInfo($slug, $path, string $contentType = self::co
$response->getStatusCode(),
$response->getHeaders()
];
case 401:
case 200:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand Down Expand Up @@ -1197,23 +1197,23 @@ public function getPageWithHttpInfo($slug, $path, string $contentType = self::co

} catch (ApiException $e) {
switch ($e->getCode()) {
case 200:
case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 403:
case 401:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 401:
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/PermissionsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
* Generator version: 7.8.0
*/

/**
Expand Down
Loading

0 comments on commit 8fc4f70

Please sign in to comment.