GET api/Shop?PID={PID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
PID

integer

Required

Body Parameters

Collection of CategoryView
NameDescriptionTypeAdditional information
ID

integer

None.

ParentID

integer

None.

CategoryID

integer

None.

CutName

string

None.

Name

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "ParentID": 2,
    "CategoryID": 3,
    "CutName": "sample string 4",
    "Name": "sample string 5"
  },
  {
    "ID": 1,
    "ParentID": 2,
    "CategoryID": 3,
    "CutName": "sample string 4",
    "Name": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCategoryView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ti.WebApi.Models.Views">
  <CategoryView>
    <CategoryID>3</CategoryID>
    <CutName>sample string 4</CutName>
    <ID>1</ID>
    <Name>sample string 5</Name>
    <ParentID>2</ParentID>
  </CategoryView>
  <CategoryView>
    <CategoryID>3</CategoryID>
    <CutName>sample string 4</CutName>
    <ID>1</ID>
    <Name>sample string 5</Name>
    <ParentID>2</ParentID>
  </CategoryView>
</ArrayOfCategoryView>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IEnumerable`1'.

Response Information

Resource Description

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
[
  {},
  {}
]

application/xml, text/xml

Sample:
<ArrayOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <anyType />
  <anyType />
</ArrayOfanyType>