POST Api/Countries
Dodaje asynchronicznie nowy obiekt Country do bazy danych
Request Information
URI Parameters
None.
Body Parameters
nowy obiekt
CountryDtoName | Description | Type | Additional information |
---|---|---|---|
CountryId | integer |
Required |
|
Name | string |
Required |
Request Formats
application/json, text/json
Sample:
{ "countryId": 1, "name": "sample string 2" }
multipart/form-data
Sample:
{"countryId":1,"name":"sample string 2"}
application/xml, text/xml
Sample:
<CountryDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <CountryId>1</CountryId> <Name>sample string 2</Name> </CountryDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
identyfikator nowo dodanego obiektu
CountryDtoName | Description | Type | Additional information |
---|---|---|---|
CountryId | integer |
Required |
|
Name | string |
Required |
Response Formats
application/json, text/json
Sample:
{ "countryId": 1, "name": "sample string 2" }
multipart/form-data
Sample:
{"countryId":1,"name":"sample string 2"}
application/xml, text/xml
Sample:
<CountryDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <CountryId>1</CountryId> <Name>sample string 2</Name> </CountryDto>