GET v1/Companies/{id}/Extra
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
CompanyExtraViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TotalAllCompanyCount | integer |
None. |
|
| TotalMyCompanyCount | integer |
None. |
|
| AllProductsCount | integer |
None. |
|
| AllProducts | Collection of ProductCount |
None. |
|
| MyProductsCount | integer |
None. |
|
| MyProducts | Collection of ProductCount |
None. |
|
| CompanyProductsCount | integer |
None. |
|
| CompanyProducts | Collection of ProductCount |
None. |
|
| AllCompanyCounts | Dictionary of string [key] and integer [value] |
None. |
|
| MyCompanyCounts | Dictionary of string [key] and integer [value] |
None. |
Response Formats
application/json, text/json
Sample:
{
"AllCompanyCounts": {
"sample string 1": 2,
"sample string 3": 4
},
"MyCompanyCounts": {
"sample string 1": 2,
"sample string 3": 4
},
"TotalAllCompanyCount": 1,
"TotalMyCompanyCount": 2,
"AllProductsCount": 3,
"AllProducts": [
{
"Itemcode": "sample string 1",
"AssortmentDescription": "sample string 2",
"Assortment": 1,
"Count": 3
},
{
"Itemcode": "sample string 1",
"AssortmentDescription": "sample string 2",
"Assortment": 1,
"Count": 3
}
],
"MyProductsCount": 4,
"MyProducts": [
{
"Itemcode": "sample string 1",
"AssortmentDescription": "sample string 2",
"Assortment": 1,
"Count": 3
},
{
"Itemcode": "sample string 1",
"AssortmentDescription": "sample string 2",
"Assortment": 1,
"Count": 3
}
],
"CompanyProductsCount": 5,
"CompanyProducts": [
{
"Itemcode": "sample string 1",
"AssortmentDescription": "sample string 2",
"Assortment": 1,
"Count": 3
},
{
"Itemcode": "sample string 1",
"AssortmentDescription": "sample string 2",
"Assortment": 1,
"Count": 3
}
]
}
application/xml, text/xml
Sample:
<CompanyExtraViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dealerportal.Shared.ViewModels.v1.Company">
<AllCompanyCounts xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringint>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>2</d2p1:Value>
</d2p1:KeyValueOfstringint>
<d2p1:KeyValueOfstringint>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value>4</d2p1:Value>
</d2p1:KeyValueOfstringint>
</AllCompanyCounts>
<AllProducts xmlns:d2p1="http://schemas.datacontract.org/2004/07/Dealerportal.Shared.Models">
<d2p1:ProductCount>
<d2p1:Assortment>1</d2p1:Assortment>
<d2p1:AssortmentDescription>sample string 2</d2p1:AssortmentDescription>
<d2p1:Count>3</d2p1:Count>
<d2p1:Itemcode>sample string 1</d2p1:Itemcode>
</d2p1:ProductCount>
<d2p1:ProductCount>
<d2p1:Assortment>1</d2p1:Assortment>
<d2p1:AssortmentDescription>sample string 2</d2p1:AssortmentDescription>
<d2p1:Count>3</d2p1:Count>
<d2p1:Itemcode>sample string 1</d2p1:Itemcode>
</d2p1:ProductCount>
</AllProducts>
<AllProductsCount>3</AllProductsCount>
<CompanyProducts xmlns:d2p1="http://schemas.datacontract.org/2004/07/Dealerportal.Shared.Models">
<d2p1:ProductCount>
<d2p1:Assortment>1</d2p1:Assortment>
<d2p1:AssortmentDescription>sample string 2</d2p1:AssortmentDescription>
<d2p1:Count>3</d2p1:Count>
<d2p1:Itemcode>sample string 1</d2p1:Itemcode>
</d2p1:ProductCount>
<d2p1:ProductCount>
<d2p1:Assortment>1</d2p1:Assortment>
<d2p1:AssortmentDescription>sample string 2</d2p1:AssortmentDescription>
<d2p1:Count>3</d2p1:Count>
<d2p1:Itemcode>sample string 1</d2p1:Itemcode>
</d2p1:ProductCount>
</CompanyProducts>
<CompanyProductsCount>5</CompanyProductsCount>
<MyCompanyCounts xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringint>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>2</d2p1:Value>
</d2p1:KeyValueOfstringint>
<d2p1:KeyValueOfstringint>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value>4</d2p1:Value>
</d2p1:KeyValueOfstringint>
</MyCompanyCounts>
<MyProducts xmlns:d2p1="http://schemas.datacontract.org/2004/07/Dealerportal.Shared.Models">
<d2p1:ProductCount>
<d2p1:Assortment>1</d2p1:Assortment>
<d2p1:AssortmentDescription>sample string 2</d2p1:AssortmentDescription>
<d2p1:Count>3</d2p1:Count>
<d2p1:Itemcode>sample string 1</d2p1:Itemcode>
</d2p1:ProductCount>
<d2p1:ProductCount>
<d2p1:Assortment>1</d2p1:Assortment>
<d2p1:AssortmentDescription>sample string 2</d2p1:AssortmentDescription>
<d2p1:Count>3</d2p1:Count>
<d2p1:Itemcode>sample string 1</d2p1:Itemcode>
</d2p1:ProductCount>
</MyProducts>
<MyProductsCount>4</MyProductsCount>
<TotalAllCompanyCount>1</TotalAllCompanyCount>
<TotalMyCompanyCount>2</TotalMyCompanyCount>
</CompanyExtraViewModel>