listURLPatterns
get
/ccadmin/v1/urlPatterns
List URLPatterns. Returns a list of URL Patterns used to build Store Front URLs.
Request
Supported Media Types
- application/json
Query Parameters
- type
-
Type:
string
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listURLPatterns_response
- items
-
Type:
arrayitemsAdditional Properties Allowed:The list of URL pattern objects.
Nested Schema : items
Nested Schema : items
Type:
object- autoRedirect
-
Type:
booleanFlag on whether to use the auto redirect functionality. - availableProperties
-
Type:
arrayavailablePropertiesAdditional Properties Allowed:Properties available to use in URL Patterns - default
-
Type:
stringDefault URL Pattern. - example
-
Type:
stringThe example URL built off the default product/category of currently set URL Pattern. - name
-
Type:
stringName used in the admin ui. - repositoryId
-
Type:
stringThe repo id - translations
-
Type:
objecttranslationsAdditional Properties Allowed:List of translated URL Patterns - value
-
Type:
stringThe value of currently set URL Pattern.
Nested Schema : availableProperties
Nested Schema : translations
Type:
objectList of translated URL Patterns
Example application/json
[
[
{
"availableProperties":[
"description",
"displayName",
"id",
"parentCategory",
"seoDescriptionDerived",
"seoTitleDerived",
"seoUrlSlugDerived"
],
"default":"/{seoTitleDerived}/category/{id}",
"translations":{
"1":"/{seoTitleDerived}/category/{id}"
},
"name":"Collection Page",
"repositoryId":"categoryPageRoute",
"autoRedirect":true,
"value":"/{seoTitleDerived}/category/{id}",
"example":"/cameras-and-camcorders/category/cameracat"
},
{
"availableProperties":[
"CountryOfOrigin",
"brand",
"description",
"displayName",
"id",
"parentCategory",
"seoDescriptionDerived",
"seoTitleDerived",
"seoUrlSlugDerived",
"type"
],
"default":"/{seoTitleDerived}/product/{id}",
"translations":{
"1":"/{seoTitleDerived}/product/{id}"
},
"name":"Product Page",
"repositoryId":"productPageRoute",
"autoRedirect":true,
"value":"/{seoTitleDerived}/product/{id}",
"example":"/samsung-f90bn-hd-flash-memory-camcorder/product/camcorder_1"
}
]
]
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
[[
{
"availableProperties": [
"description",
"displayName",
"id",
"parentCategory",
"seoDescriptionDerived",
"seoTitleDerived",
"seoUrlSlugDerived"
],
"default": "/{seoTitleDerived}/category/{id}",
"translations": {"1": "/{seoTitleDerived}/category/{id}"},
"name": "Collection Page",
"repositoryId": "categoryPageRoute",
"autoRedirect": true,
"value": "/{seoTitleDerived}/category/{id}",
"example": "/cameras-and-camcorders/category/cameracat"
},
{
"availableProperties": [
"CountryOfOrigin",
"brand",
"description",
"displayName",
"id",
"parentCategory",
"seoDescriptionDerived",
"seoTitleDerived",
"seoUrlSlugDerived",
"type"
],
"default": "/{seoTitleDerived}/product/{id}",
"translations": {"1": "/{seoTitleDerived}/product/{id}"},
"name": "Product Page",
"repositoryId": "productPageRoute",
"autoRedirect": true,
"value": "/{seoTitleDerived}/product/{id}",
"example": "/samsung-f90bn-hd-flash-memory-camcorder/product/camcorder_1"
}
]]