POST api/Country/Add
Request Information
URI Parameters
None.
Body Parameters
CountryAddDto| Name | Description | Type | Additional information |
|---|---|---|---|
| WebSiteID | globally unique identifier |
None. |
|
| countryLanguages | Collection of CountryLanguageAddDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"webSiteID": "3983c906-e340-4aa7-976b-2443a0c49964",
"countryLanguages": [
{
"countryID": "92d2c8ab-fed4-447c-a1c7-13666e8ce24d",
"languageID": "d2316e12-9381-4cc6-ba05-e47b3b4db48d",
"country": "sample string 3"
},
{
"countryID": "92d2c8ab-fed4-447c-a1c7-13666e8ce24d",
"languageID": "d2316e12-9381-4cc6-ba05-e47b3b4db48d",
"country": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<CountryAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs">
<WebSiteID>3983c906-e340-4aa7-976b-2443a0c49964</WebSiteID>
<countryLanguages>
<CountryLanguageAddDto>
<Country>sample string 3</Country>
<CountryID>92d2c8ab-fed4-447c-a1c7-13666e8ce24d</CountryID>
<LanguageID>d2316e12-9381-4cc6-ba05-e47b3b4db48d</LanguageID>
</CountryLanguageAddDto>
<CountryLanguageAddDto>
<Country>sample string 3</Country>
<CountryID>92d2c8ab-fed4-447c-a1c7-13666e8ce24d</CountryID>
<LanguageID>d2316e12-9381-4cc6-ba05-e47b3b4db48d</LanguageID>
</CountryLanguageAddDto>
</countryLanguages>
</CountryAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"WebSiteID":"3983c906-e340-4aa7-976b-2443a0c49964","countryLanguages":[{"CountryID":"92d2c8ab-fed4-447c-a1c7-13666e8ce24d","LanguageID":"d2316e12-9381-4cc6-ba05-e47b3b4db48d","Country":"sample string 3"},{"CountryID":"92d2c8ab-fed4-447c-a1c7-13666e8ce24d","LanguageID":"d2316e12-9381-4cc6-ba05-e47b3b4db48d","Country":"sample string 3"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.