POST Feature/Feature

GetFeatures with same parentID

Request Information

URI Parameters

None.

Body Parameters

GetFeatureRequest
NameDescriptionTypeAdditional information
ID

integer

None.

Lang

string

None.

StoreID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Lang": "sample string 2",
  "StoreID": 3
}

application/xml, text/xml

Sample:
<GetFeatureRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.View.Feature">
  <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">sample string 2</Lang>
  <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">3</StoreID>
  <ID>1</ID>
</GetFeatureRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Feature
NameDescriptionTypeAdditional information
ID

integer

None.

ParentID

integer

None.

Name

string

None.

Description

string

None.

Unit

Kg, g, m, Km, N...

string

None.

TypeID

integer

None.

UsageLimit

Number of times a value for this property can be used for the same entity. If 0, no limit and, then, this is a list property.

integer

None.

SortOrder

integer

None.

ViewFormat

Format used to show this value. E.g. surround by (), preceded by >

string

None.

Range

Used to specify a lower and upper limit range for numeric values. Enabled when Min != Max Used to specify a lower and upper limit length for text values. Enabled when Min != Max

Range

None.

Options

Collection of FeatureOptionTiny

None.

Values

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "ParentID": 1,
  "Name": "sample string 2",
  "Description": "sample string 3",
  "Unit": "sample string 4",
  "TypeID": 5,
  "UsageLimit": 6,
  "SortOrder": 7,
  "ViewFormat": "sample string 8",
  "Range": {
    "Min": 1.0,
    "Max": 2.0
  },
  "Options": [
    {
      "ID": 1,
      "Value": "sample string 2",
      "SortOrder": 3
    },
    {
      "ID": 1,
      "Value": "sample string 2",
      "SortOrder": 3
    }
  ],
  "Values": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Feature xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.View.Feature">
  <Description>sample string 3</Description>
  <ID>1</ID>
  <Name>sample string 2</Name>
  <Options>
    <FeatureOptionTiny>
      <ID>1</ID>
      <SortOrder>3</SortOrder>
      <Value>sample string 2</Value>
    </FeatureOptionTiny>
    <FeatureOptionTiny>
      <ID>1</ID>
      <SortOrder>3</SortOrder>
      <Value>sample string 2</Value>
    </FeatureOptionTiny>
  </Options>
  <ParentID>1</ParentID>
  <Range xmlns:d2p1="http://schemas.datacontract.org/2004/07/ShopworldApi.Core.Models.Feature">
    <d2p1:Max>2</d2p1:Max>
    <d2p1:Min>1</d2p1:Min>
  </Range>
  <SortOrder>7</SortOrder>
  <TypeID>5</TypeID>
  <Unit>sample string 4</Unit>
  <UsageLimit>6</UsageLimit>
  <Values xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Values>
  <ViewFormat>sample string 8</ViewFormat>
</Feature>