POST api/TestAPI/NewGetCountryList
Request Information
URI Parameters
None.
Body Parameters
TestDTOName | Description | Type | Additional information |
---|---|---|---|
message | string |
None. |
|
Id | integer |
None. |
|
Name | string |
None. |
|
FlagId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "message": "sample string 1", "Id": 2, "Name": "sample string 3", "FlagId": 4 }
application/xml, text/xml
Sample:
<TestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BNC.POS.API.DTO_s"> <FlagId>4</FlagId> <Id>2</Id> <Name>sample string 3</Name> <message>sample string 1</message> </TestDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of TestDTOName | Description | Type | Additional information |
---|---|---|---|
message | string |
None. |
|
Id | integer |
None. |
|
Name | string |
None. |
|
FlagId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "message": "sample string 1", "Id": 2, "Name": "sample string 3", "FlagId": 4 }, { "message": "sample string 1", "Id": 2, "Name": "sample string 3", "FlagId": 4 } ]
application/xml, text/xml
Sample:
<ArrayOfTestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BNC.POS.API.DTO_s"> <TestDTO> <FlagId>4</FlagId> <Id>2</Id> <Name>sample string 3</Name> <message>sample string 1</message> </TestDTO> <TestDTO> <FlagId>4</FlagId> <Id>2</Id> <Name>sample string 3</Name> <message>sample string 1</message> </TestDTO> </ArrayOfTestDTO>