You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param int $class_id A class unique id (optional)
132
-
* @param bool $classes_only A flag used to only return classes (optional)
131
+
* @param int|null $class_id A class unique id (optional)
132
+
* @param bool|null $classes_only A flag used to only return classes (optional)
133
133
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCategories'] to see the possible values for this operation
134
134
*
135
135
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
@@ -148,8 +148,8 @@ public function getCategories($game_id, $class_id = null, $classes_only = null,
148
148
* Get categories
149
149
*
150
150
* @param int $game_id A game unique id (required)
151
-
* @param int $class_id A class unique id (optional)
152
-
* @param bool $classes_only A flag used to only return classes (optional)
151
+
* @param int|null $class_id A class unique id (optional)
152
+
* @param bool|null $classes_only A flag used to only return classes (optional)
153
153
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCategories'] to see the possible values for this operation
154
154
*
155
155
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
@@ -182,18 +182,6 @@ public function getCategoriesWithHttpInfo($game_id, $class_id = null, $classes_o
182
182
183
183
$statusCode = $response->getStatusCode();
184
184
185
-
if ($statusCode < 200 || $statusCode > 299) {
186
-
thrownewApiException(
187
-
sprintf(
188
-
'[%d] Error connecting to the API (%s)',
189
-
$statusCode,
190
-
(string) $request->getUri()
191
-
),
192
-
$statusCode,
193
-
$response->getHeaders(),
194
-
(string) $response->getBody()
195
-
);
196
-
}
197
185
198
186
switch($statusCode) {
199
187
case200:
@@ -225,6 +213,19 @@ public function getCategoriesWithHttpInfo($game_id, $class_id = null, $classes_o
$content = $response->getBody(); //stream goes to serializer
@@ -274,8 +275,8 @@ public function getCategoriesWithHttpInfo($game_id, $class_id = null, $classes_o
274
275
* Get categories
275
276
*
276
277
* @param int $game_id A game unique id (required)
277
-
* @param int $class_id A class unique id (optional)
278
-
* @param bool $classes_only A flag used to only return classes (optional)
278
+
* @param int|null $class_id A class unique id (optional)
279
+
* @param bool|null $classes_only A flag used to only return classes (optional)
279
280
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCategories'] to see the possible values for this operation
280
281
*
281
282
* @throws \InvalidArgumentException
@@ -297,8 +298,8 @@ function ($response) {
297
298
* Get categories
298
299
*
299
300
* @param int $game_id A game unique id (required)
300
-
* @param int $class_id A class unique id (optional)
301
-
* @param bool $classes_only A flag used to only return classes (optional)
301
+
* @param int|null $class_id A class unique id (optional)
302
+
* @param bool|null $classes_only A flag used to only return classes (optional)
302
303
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCategories'] to see the possible values for this operation
303
304
*
304
305
* @throws \InvalidArgumentException
@@ -349,8 +350,8 @@ function ($exception) {
349
350
* Create request for operation 'getCategories'
350
351
*
351
352
* @param int $game_id A game unique id (required)
352
-
* @param int $class_id A class unique id (optional)
353
-
* @param bool $classes_only A flag used to only return classes (optional)
353
+
* @param int|null $class_id A class unique id (optional)
354
+
* @param bool|null $classes_only A flag used to only return classes (optional)
354
355
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCategories'] to see the possible values for this operation
0 commit comments