POST api/Test/ExceptionTest
Documentation for 'ExceptionTest'.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
request | Documentation for 'request'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "test_int": 1, "test_string": "sample string 2" }
application/xml, text/xml
Sample:
<TestApiRequst xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi.Entities"> <test_int>1</test_int> <test_string>sample string 2</test_string> </TestApiRequst>
application/x-www-form-urlencoded
Sample:
Response Information
Response body formats
application/json, text/json
Sample:
{ "value": "sample string 1", "is_success": true, "error_message": "sample string 3", "exception_name": "sample string 4", "error_code": 5 }
application/xml, text/xml
Sample:
<TestApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi.Entities"> <error_code xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">5</error_code> <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 3</error_message> <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 4</exception_name> <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success> <value>sample string 1</value> </TestApiResponse>