POST Catalog/Slug
Gets the Entity related to a Slug. If Slug is not active, then returns a redirect Returns product or classification and corresponding language
Request Information
URI Parameters
None.
Body Parameters
GetSlugRequestName | Description | Type | Additional information |
---|---|---|---|
Slug | string |
Required |
|
Lang | string |
None. |
|
StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Slug": "sample string 1", "Lang": "sample string 2", "StoreID": 3 }
application/xml, text/xml
Sample:
<GetSlugRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.View.Catalog"> <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> <Slug>sample string 1</Slug> </GetSlugRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SlugName | Description | Type | Additional information |
---|---|---|---|
Text | string |
None. |
|
ProductID | integer |
None. |
|
ClassificationID | integer |
None. |
|
BrandID | integer |
None. |
|
PromotionID | integer |
None. |
|
NewsletterIssueID | integer |
None. |
|
WarehouseID | integer |
None. |
|
BusinessID | integer |
None. |
|
CMSEntityID | string |
None. |
|
CMSEntityModel | string |
None. |
|
HttpStatusCode | HttpStatusCode |
None. |
|
Lang |
the language this Slug belongs to |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Text": "sample string 1", "ProductID": 1, "ClassificationID": 1, "BrandID": 1, "PromotionID": 1, "NewsletterIssueID": 1, "WarehouseID": 1, "BusinessID": 1, "CMSEntityID": "sample string 2", "CMSEntityModel": "sample string 3", "HttpStatusCode": 100, "Lang": "sample string 4" }
application/xml, text/xml
Sample:
<Slug xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.View.Catalog"> <BrandID>1</BrandID> <BusinessID>1</BusinessID> <CMSEntityID>sample string 2</CMSEntityID> <CMSEntityModel>sample string 3</CMSEntityModel> <ClassificationID>1</ClassificationID> <HttpStatusCode>Continue</HttpStatusCode> <Lang>sample string 4</Lang> <NewsletterIssueID>1</NewsletterIssueID> <ProductID>1</ProductID> <PromotionID>1</PromotionID> <Text>sample string 1</Text> <WarehouseID>1</WarehouseID> </Slug>