GET api/getranges/{idProduct}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| idProduct | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of Range| Name | Description | Type | Additional information |
|---|---|---|---|
| idProduct | integer |
None. |
|
| range | string |
None. |
|
| price | decimal number |
None. |
|
| index | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"idProduct": 1,
"range": "sample string 2",
"price": 3.1,
"index": 4
},
{
"idProduct": 1,
"range": "sample string 2",
"price": 3.1,
"index": 4
}
]
application/xml, text/xml
Sample:
<ArrayOfRange xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_Carniceria.Models">
<Range>
<idProduct>1</idProduct>
<index>4</index>
<price>3.1</price>
<range>sample string 2</range>
</Range>
<Range>
<idProduct>1</idProduct>
<index>4</index>
<price>3.1</price>
<range>sample string 2</range>
</Range>
</ArrayOfRange>