GET api/WebModels?ProductsId={ProductsId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductsId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of WebModelsModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ProductsId | integer |
None. |
|
| ModelName | string |
None. |
|
| ModelCode | string |
None. |
|
| ModelPrice | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"ProductsId": 2,
"ModelName": "sample string 3",
"ModelCode": "sample string 4",
"ModelPrice": 5.0
},
{
"Id": 1,
"ProductsId": 2,
"ModelName": "sample string 3",
"ModelCode": "sample string 4",
"ModelPrice": 5.0
}
]
application/xml, text/xml
Sample:
<ArrayOfWebModelsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NoghostarModels.Models.WebModels">
<WebModelsModel>
<Id>1</Id>
<ModelCode>sample string 4</ModelCode>
<ModelName>sample string 3</ModelName>
<ModelPrice>5</ModelPrice>
<ProductsId>2</ProductsId>
</WebModelsModel>
<WebModelsModel>
<Id>1</Id>
<ModelCode>sample string 4</ModelCode>
<ModelName>sample string 3</ModelName>
<ModelPrice>5</ModelPrice>
<ProductsId>2</ProductsId>
</WebModelsModel>
</ArrayOfWebModelsModel>