POST api/Currencies
Request Information
URI Parameters
None.
Body Parameters
CurrencyName | Description | Type | Additional information |
---|---|---|---|
CurrencyCode | string |
Required String length: inclusive between 0 and 50 |
|
Name | string |
Required String length: inclusive between 0 and 50 |
|
Country | string |
Required String length: inclusive between 0 and 50 |
|
ID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "CurrencyCode": "sample string 1", "Name": "sample string 2", "Country": "sample string 3", "ID": 4 }
application/xml, text/xml
Sample:
<Currency xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fabric"> <Country>sample string 3</Country> <CurrencyCode>sample string 1</CurrencyCode> <ID>4</ID> <Name>sample string 2</Name> </Currency>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CurrencyName | Description | Type | Additional information |
---|---|---|---|
CurrencyCode | string |
Required String length: inclusive between 0 and 50 |
|
Name | string |
Required String length: inclusive between 0 and 50 |
|
Country | string |
Required String length: inclusive between 0 and 50 |
|
ID | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "CurrencyCode": "sample string 1", "Name": "sample string 2", "Country": "sample string 3", "ID": 4 }
application/xml, text/xml
Sample:
<Currency xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fabric"> <Country>sample string 3</Country> <CurrencyCode>sample string 1</CurrencyCode> <ID>4</ID> <Name>sample string 2</Name> </Currency>