[csharp][generichost] Support response ranges (#19256)

* support response ranges

* revert unintended change

* update try deserialize methods
This commit is contained in:
devhl-labs 2024-07-29 04:33:27 -04:00 committed by GitHub
parent 2958107a6a
commit 755b2efee4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
38 changed files with 457 additions and 1 deletions

View File

@ -997,6 +997,26 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen {
case "511":
postProcessResponseCode(response, "NetworkAuthenticationRequired", httpStatusesWithReturn);
break;
case "1xx":
response.vendorExtensions.put("x-http-status-range", 1);
postProcessResponseCode(response, "HttpStatusCode1XX", httpStatusesWithReturn);
break;
case "2xx":
response.vendorExtensions.put("x-http-status-range", 2);
postProcessResponseCode(response, "HttpStatusCode2XX", httpStatusesWithReturn);
break;
case "3xx":
response.vendorExtensions.put("x-http-status-range", 3);
postProcessResponseCode(response, "HttpStatusCode3XX", httpStatusesWithReturn);
break;
case "4xx":
response.vendorExtensions.put("x-http-status-range", 4);
postProcessResponseCode(response, "HttpStatusCode4XX", httpStatusesWithReturn);
break;
case "5xx":
response.vendorExtensions.put("x-http-status-range", 5);
postProcessResponseCode(response, "HttpStatusCode5XX", httpStatusesWithReturn);
break;
default:
postProcessResponseCode(response, "CustomHttpStatusCode" + code, httpStatusesWithReturn);
}

View File

@ -725,7 +725,19 @@ namespace {{packageName}}.{{apiPackage}}
/// Returns true if the response is {{code}} {{vendorExtensions.x-http-status}}
/// </summary>
/// <returns></returns>
{{#vendorExtensions.x-http-status-range}}
public bool Is{{vendorExtensions.x-http-status}}
{
get
{
int statusCode = (int)StatusCode;
return {{vendorExtensions.x-http-status-range}}00 >= statusCode && {{vendorExtensions.x-http-status-range}}99 <= statusCode;
}
}
{{/vendorExtensions.x-http-status-range}}
{{^vendorExtensions.x-http-status-range}}
public bool Is{{vendorExtensions.x-http-status}} => {{code}} == (int)StatusCode;
{{/vendorExtensions.x-http-status-range}}
{{/vendorExtensions.x-http-status-is-default}}
{{#dataType}}
@ -756,7 +768,7 @@ namespace {{packageName}}.{{apiPackage}}
result = {{vendorExtensions.x-http-status}}();
} catch (Exception e)
{
OnDeserializationErrorDefaultImplementation(e, (HttpStatusCode){{code}});
OnDeserializationErrorDefaultImplementation(e, (HttpStatusCode){{#vendorExtensions.x-http-status-range}}{{.}}{{/vendorExtensions.x-http-status-range}}{{^vendorExtensions.x-http-status-range}}{{code}}{{/vendorExtensions.x-http-status-range}});
}
return result != null;

View File

@ -120,6 +120,8 @@ paths:
- sold
default: available
responses:
'2XX':
description: Anything within 200-299
'200':
description: successful operation
content:
@ -135,6 +137,8 @@ paths:
$ref: '#/components/schemas/Pet'
'400':
description: Invalid status value
'4XX':
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -133,6 +133,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -148,6 +150,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -297,6 +297,18 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <returns></returns>
bool IsBadRequest { get; }
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode2XX { get; }
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode4XX { get; }
}
/// <summary>
@ -1308,6 +1320,32 @@ namespace Org.OpenAPITools.Api
/// <returns></returns>
public bool IsBadRequest => 400 == (int)StatusCode;
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode2XX
{
get
{
int statusCode = (int)StatusCode;
return 200 >= statusCode && 299 <= statusCode;
}
}
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode4XX
{
get
{
int statusCode = (int)StatusCode;
return 400 >= statusCode && 499 <= statusCode;
}
}
private void OnDeserializationErrorDefaultImplementation(Exception exception, HttpStatusCode httpStatusCode)
{
bool suppressDefaultLog = false;

View File

@ -138,6 +138,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -153,6 +155,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -297,6 +297,18 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <returns></returns>
bool IsBadRequest { get; }
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode2XX { get; }
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode4XX { get; }
}
/// <summary>
@ -1308,6 +1320,32 @@ namespace Org.OpenAPITools.Api
/// <returns></returns>
public bool IsBadRequest => 400 == (int)StatusCode;
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode2XX
{
get
{
int statusCode = (int)StatusCode;
return 200 >= statusCode && 299 <= statusCode;
}
}
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode4XX
{
get
{
int statusCode = (int)StatusCode;
return 400 >= statusCode && 499 <= statusCode;
}
}
private void OnDeserializationErrorDefaultImplementation(Exception exception, HttpStatusCode httpStatusCode)
{
bool suppressDefaultLog = false;

View File

@ -133,6 +133,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -148,6 +150,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -297,6 +297,18 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <returns></returns>
bool IsBadRequest { get; }
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode2XX { get; }
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode4XX { get; }
}
/// <summary>
@ -1308,6 +1320,32 @@ namespace Org.OpenAPITools.Api
/// <returns></returns>
public bool IsBadRequest => 400 == (int)StatusCode;
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode2XX
{
get
{
int statusCode = (int)StatusCode;
return 200 >= statusCode && 299 <= statusCode;
}
}
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode4XX
{
get
{
int statusCode = (int)StatusCode;
return 400 >= statusCode && 499 <= statusCode;
}
}
private void OnDeserializationErrorDefaultImplementation(Exception exception, HttpStatusCode httpStatusCode)
{
bool suppressDefaultLog = false;

View File

@ -138,6 +138,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -153,6 +155,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -297,6 +297,18 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <returns></returns>
bool IsBadRequest { get; }
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode2XX { get; }
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode4XX { get; }
}
/// <summary>
@ -1308,6 +1320,32 @@ namespace Org.OpenAPITools.Api
/// <returns></returns>
public bool IsBadRequest => 400 == (int)StatusCode;
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode2XX
{
get
{
int statusCode = (int)StatusCode;
return 200 >= statusCode && 299 <= statusCode;
}
}
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode4XX
{
get
{
int statusCode = (int)StatusCode;
return 400 >= statusCode && 499 <= statusCode;
}
}
private void OnDeserializationErrorDefaultImplementation(Exception exception, HttpStatusCode httpStatusCode)
{
bool suppressDefaultLog = false;

View File

@ -133,6 +133,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -148,6 +150,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -297,6 +297,18 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <returns></returns>
bool IsBadRequest { get; }
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode2XX { get; }
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode4XX { get; }
}
/// <summary>
@ -1310,6 +1322,32 @@ namespace Org.OpenAPITools.Api
/// <returns></returns>
public bool IsBadRequest => 400 == (int)StatusCode;
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode2XX
{
get
{
int statusCode = (int)StatusCode;
return 200 >= statusCode && 299 <= statusCode;
}
}
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode4XX
{
get
{
int statusCode = (int)StatusCode;
return 400 >= statusCode && 499 <= statusCode;
}
}
private void OnDeserializationErrorDefaultImplementation(Exception exception, HttpStatusCode httpStatusCode)
{
bool suppressDefaultLog = false;

View File

@ -138,6 +138,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -153,6 +155,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -299,6 +299,18 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <returns></returns>
bool IsBadRequest { get; }
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode2XX { get; }
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode4XX { get; }
}
/// <summary>
@ -1312,6 +1324,32 @@ namespace Org.OpenAPITools.Api
/// <returns></returns>
public bool IsBadRequest => 400 == (int)StatusCode;
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode2XX
{
get
{
int statusCode = (int)StatusCode;
return 200 >= statusCode && 299 <= statusCode;
}
}
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode4XX
{
get
{
int statusCode = (int)StatusCode;
return 400 >= statusCode && 499 <= statusCode;
}
}
private void OnDeserializationErrorDefaultImplementation(Exception exception, HttpStatusCode httpStatusCode)
{
bool suppressDefaultLog = false;

View File

@ -138,6 +138,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -153,6 +155,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -297,6 +297,18 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <returns></returns>
bool IsBadRequest { get; }
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode2XX { get; }
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode4XX { get; }
}
/// <summary>
@ -1310,6 +1322,32 @@ namespace Org.OpenAPITools.Api
/// <returns></returns>
public bool IsBadRequest => 400 == (int)StatusCode;
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode2XX
{
get
{
int statusCode = (int)StatusCode;
return 200 >= statusCode && 299 <= statusCode;
}
}
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode4XX
{
get
{
int statusCode = (int)StatusCode;
return 400 >= statusCode && 499 <= statusCode;
}
}
private void OnDeserializationErrorDefaultImplementation(Exception exception, HttpStatusCode httpStatusCode)
{
bool suppressDefaultLog = false;

View File

@ -138,6 +138,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -153,6 +155,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -299,6 +299,18 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <returns></returns>
bool IsBadRequest { get; }
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode2XX { get; }
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode4XX { get; }
}
/// <summary>
@ -1312,6 +1324,32 @@ namespace Org.OpenAPITools.Api
/// <returns></returns>
public bool IsBadRequest => 400 == (int)StatusCode;
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode2XX
{
get
{
int statusCode = (int)StatusCode;
return 200 >= statusCode && 299 <= statusCode;
}
}
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode4XX
{
get
{
int statusCode = (int)StatusCode;
return 400 >= statusCode && 499 <= statusCode;
}
}
private void OnDeserializationErrorDefaultImplementation(Exception exception, HttpStatusCode httpStatusCode)
{
bool suppressDefaultLog = false;

View File

@ -138,6 +138,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -153,6 +155,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -296,6 +296,18 @@ namespace Org.OpenAPITools.Api
/// </summary>
/// <returns></returns>
bool IsBadRequest { get; }
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode2XX { get; }
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
bool IsHttpStatusCode4XX { get; }
}
/// <summary>
@ -1307,6 +1319,32 @@ namespace Org.OpenAPITools.Api
/// <returns></returns>
public bool IsBadRequest => 400 == (int)StatusCode;
/// <summary>
/// Returns true if the response is 2XX HttpStatusCode2XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode2XX
{
get
{
int statusCode = (int)StatusCode;
return 200 >= statusCode && 299 <= statusCode;
}
}
/// <summary>
/// Returns true if the response is 4XX HttpStatusCode4XX
/// </summary>
/// <returns></returns>
public bool IsHttpStatusCode4XX
{
get
{
int statusCode = (int)StatusCode;
return 400 >= statusCode && 499 <= statusCode;
}
}
private void OnDeserializationErrorDefaultImplementation(Exception exception, HttpStatusCode httpStatusCode)
{
bool suppressDefaultLog = false;

View File

@ -138,6 +138,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -153,6 +155,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -296,6 +296,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -138,6 +138,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -153,6 +155,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -138,6 +138,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -153,6 +155,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)

View File

@ -138,6 +138,8 @@ paths:
type: array
style: form
responses:
"2XX":
description: Anything within 200-299
"200":
content:
application/xml:
@ -153,6 +155,8 @@ paths:
description: successful operation
"400":
description: Invalid status value
"4XX":
description: Anything within 400-499
security:
- http_signature_test: []
- petstore_auth:

View File

@ -284,6 +284,8 @@ catch (ApiException e)
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
| **2XX** | Anything within 200-299 | - |
| **4XX** | Anything within 400-499 | - |
[[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)