GET api/Suppliers/{id}
Returns a Suppliers record based on specified ID
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of Suppliers data |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
SuppliersData| Name | Description | Type | Additional information |
|---|---|---|---|
| SupplierID | integer |
None. |
|
| CompanyName | string |
None. |
|
| ContactName | string |
None. |
|
| ContactTitle | string |
None. |
|
| Address | string |
None. |
|
| City | string |
None. |
|
| Region | string |
None. |
|
| PostalCode | string |
None. |
|
| Country | string |
None. |
|
| Phone | string |
None. |
|
| Fax | string |
None. |
|
| HomePage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"SupplierID": 1,
"CompanyName": "sample string 2",
"ContactName": "sample string 3",
"ContactTitle": "sample string 4",
"Address": "sample string 5",
"City": "sample string 6",
"Region": "sample string 7",
"PostalCode": "sample string 8",
"Country": "sample string 9",
"Phone": "sample string 10",
"Fax": "sample string 11",
"HomePage": "sample string 12"
}
text/xml
Sample:
<SuppliersData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NorthwindAPI.Models"> <Address>sample string 5</Address> <City>sample string 6</City> <CompanyName>sample string 2</CompanyName> <ContactName>sample string 3</ContactName> <ContactTitle>sample string 4</ContactTitle> <Country>sample string 9</Country> <Fax>sample string 11</Fax> <HomePage>sample string 12</HomePage> <Phone>sample string 10</Phone> <PostalCode>sample string 8</PostalCode> <Region>sample string 7</Region> <SupplierID>1</SupplierID> </SuppliersData>