POST api/Countries
Request Information
URI Parameters
None.
Body Parameters
CountriesName | Description | Type | Additional information |
---|---|---|---|
RecordNo | integer |
None. |
|
CountryName | string |
None. |
|
CountryCode | integer |
None. |
|
CreatedOn | date |
None. |
|
UpdatedOn | date |
None. |
|
IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "RecordNo": 1, "CountryName": "sample string 2", "CountryCode": 3, "CreatedOn": "2024-12-22T13:08:17.9582839+00:00", "UpdatedOn": "2024-12-22T13:08:17.9582839+00:00", "IsDeleted": true }
application/xml, text/xml
Sample:
<Countries xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrishAcademy.Models"> <CountryCode>3</CountryCode> <CountryName>sample string 2</CountryName> <CreatedOn>2024-12-22T13:08:17.9582839+00:00</CreatedOn> <IsDeleted>true</IsDeleted> <RecordNo>1</RecordNo> <UpdatedOn>2024-12-22T13:08:17.9582839+00:00</UpdatedOn> </Countries>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.