Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Use icon serializer for menu_item in API, updated Storefront and Platform API documentation for Menus (#11236)

Matthew Kennedy9571f5e4135a
diff --git a/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb b/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb
index 2ee085163e..86344ab0f8 100644
--- a/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb
+++ b/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb
@@ -8,7 +8,7 @@ module Spree
def reposition
spree_authorize! :update, @moved_item if spree_current_user.present?
- @moved_item = scope.find(params[:moved_item_id])
+ @moved_item = scope.find(params[:id])
@new_parent = scope.find(params[:new_parent_id])
new_index = params[:new_position_idx].to_i
@@ -19,7 +19,7 @@ module Spree
end
if @moved_item.save
- head :no_content
+ render_serialized_payload { serialize_resource(resource) }
end
end
diff --git a/api/app/controllers/spree/api/v2/platform/menus_controller.rb b/api/app/controllers/spree/api/v2/platform/menus_controller.rb
index e568dd4fab..ebd8af369d 100644
--- a/api/app/controllers/spree/api/v2/platform/menus_controller.rb
+++ b/api/app/controllers/spree/api/v2/platform/menus_controller.rb
@@ -12,6 +12,10 @@ module Spree
def scope_includes
[:menu_items]
end
+
+ def scope
+ current_store.menus
+ end
end
end
end
diff --git a/api/app/controllers/spree/api/v2/platform/resource_controller.rb b/api/app/controllers/spree/api/v2/platform/resource_controller.rb
index 379164fcba..99263bdd6e 100644
--- a/api/app/controllers/spree/api/v2/platform/resource_controller.rb
+++ b/api/app/controllers/spree/api/v2/platform/resource_controller.rb
@@ -18,6 +18,8 @@ module Spree
def create
resource = model_class.new(permitted_resource_params)
+ ensure_current_store(resource)
+
if resource.save
render_serialized_payload(201) { serialize_resource(resource) }
else
@@ -27,6 +29,7 @@ module Spree
def update
if resource.update(permitted_resource_params)
+ ensure_current_store(resource)
render_serialized_payload { serialize_resource(resource) }
else
render_error_payload(resource.errors)
diff --git a/api/app/serializers/spree/api/v2/platform/icon_serializer.rb b/api/app/serializers/spree/api/v2/platform/icon_serializer.rb
new file mode 100644
index 0000000000..d8e616496e
--- /dev/null
+++ b/api/app/serializers/spree/api/v2/platform/icon_serializer.rb
@@ -0,0 +1,16 @@
+module Spree
+ module Api
+ module V2
+ module Platform
+ class IconSerializer < BaseSerializer
+ set_type :icon
+
+ attribute :url do |icon|
+ url_helpers = Rails.application.routes.url_helpers
+ url_helpers.polymorphic_url(icon.attachment, only_path: true)
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/api/app/serializers/spree/api/v2/platform/menu_item_serializer.rb b/api/app/serializers/spree/api/v2/platform/menu_item_serializer.rb
index 62142871c3..9f2d01b229 100644
--- a/api/app/serializers/spree/api/v2/platform/menu_item_serializer.rb
+++ b/api/app/serializers/spree/api/v2/platform/menu_item_serializer.rb
@@ -5,11 +5,29 @@ module Spree
class MenuItemSerializer < BaseSerializer
include ::Spree::Api::V2::ResourceSerializerConcern
- has_one :image,
+ attributes :link
+
+ attribute :is_container do |menu_item|
+ menu_item.container?
+ end
+
+ attribute :is_root do |menu_item|
+ menu_item.root?
+ end
+
+ attribute :is_child do |menu_item|
+ menu_item.child?
+ end
+
+ attribute :is_leaf do |menu_item|
+ menu_item.leaf?
+ end
+
+ has_one :icon,
object_method_name: :icon,
id_method_name: :icon_id,
- record_type: :image,
- serializer: :image
+ record_type: :icon,
+ serializer: :icon
belongs_to :menu, serializer: :menu
belongs_to :parent, record_type: :menu_item, serializer: :menu_item
diff --git a/api/app/serializers/spree/v2/storefront/icon_serializer.rb b/api/app/serializers/spree/v2/storefront/icon_serializer.rb
new file mode 100644
index 0000000000..c191ca9530
--- /dev/null
+++ b/api/app/serializers/spree/v2/storefront/icon_serializer.rb
@@ -0,0 +1,14 @@
+module Spree
+ module V2
+ module Storefront
+ class IconSerializer < BaseSerializer
+ set_type :icon
+
+ attribute :url do |icon|
+ url_helpers = Rails.application.routes.url_helpers
+ url_helpers.polymorphic_url(icon.attachment, only_path: true)
+ end
+ end
+ end
+ end
+end
diff --git a/api/app/serializers/spree/v2/storefront/menu_item_serializer.rb b/api/app/serializers/spree/v2/storefront/menu_item_serializer.rb
index 00cf06eb51..6c3ec3564d 100644
--- a/api/app/serializers/spree/v2/storefront/menu_item_serializer.rb
+++ b/api/app/serializers/spree/v2/storefront/menu_item_serializer.rb
@@ -4,7 +4,7 @@ module Spree
class MenuItemSerializer < BaseSerializer
set_type :menu_item
- attributes :code, :name, :subtitle, :link, :new_window, :lft, :rgt, :depth
+ attributes :code, :name, :subtitle, :link, :destination, :item_type, :new_window, :lft, :rgt, :depth
attribute :is_container do |menu_item|
menu_item.container?
@@ -22,11 +22,11 @@ module Spree
menu_item.leaf?
end
- has_one :image,
+ has_one :icon,
object_method_name: :icon,
id_method_name: :icon_id,
- record_type: :image,
- serializer: :image
+ record_type: :icon,
+ serializer: :icon
belongs_to :menu, serializer: :menu
belongs_to :parent, record_type: :menu_item, serializer: :menu_item
diff --git a/api/config/routes.rb b/api/config/routes.rb
index d62b7947c9..e69ddb1bb7 100644
--- a/api/config/routes.rb
+++ b/api/config/routes.rb
@@ -254,7 +254,7 @@ Spree::Core::Engine.add_routes do
# Menu API
resources :menus
- resource :menu_items do
+ resources :menu_items do
member do
patch :reposition
end
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index 8f0666c3d6..d957282de6 100644
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@ -57,8 +57,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-08-20T11:02:26.158Z'
- updated_at: '2021-08-20T11:02:26.158Z'
+ created_at: '2021-08-23T21:28:22.108Z'
+ updated_at: '2021-08-23T21:28:22.108Z'
deleted_at:
label:
relationships:
@@ -85,8 +85,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-08-20T11:02:26.166Z'
- updated_at: '2021-08-20T11:02:26.166Z'
+ created_at: '2021-08-23T21:28:22.134Z'
+ updated_at: '2021-08-23T21:28:22.134Z'
deleted_at:
label:
relationships:
@@ -154,8 +154,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-08-20T11:02:26.535Z'
- updated_at: '2021-08-20T11:02:26.535Z'
+ created_at: '2021-08-23T21:28:22.275Z'
+ updated_at: '2021-08-23T21:28:22.275Z'
deleted_at:
label:
relationships:
@@ -200,7 +200,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/address_params"
+ "$ref": "#/components/schemas/addresses_params"
"/api/v2/platform/addresses/{id}":
get:
summary: Returns an Address
@@ -243,8 +243,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-08-20T11:02:26.609Z'
- updated_at: '2021-08-20T11:02:26.609Z'
+ created_at: '2021-08-23T21:28:22.297Z'
+ updated_at: '2021-08-23T21:28:22.297Z'
deleted_at:
label:
relationships:
@@ -315,8 +315,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-08-20T11:02:26.706Z'
- updated_at: '2021-08-20T11:02:26.721Z'
+ created_at: '2021-08-23T21:28:22.331Z'
+ updated_at: '2021-08-23T21:28:22.336Z'
deleted_at:
label:
relationships:
@@ -363,7 +363,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/address_params"
+ "$ref": "#/components/schemas/addresses_params"
delete:
summary: Deletes an Address
tags:
@@ -439,8 +439,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-08-20T11:02:27.225Z'
- updated_at: '2021-08-20T11:02:27.225Z'
+ created_at: '2021-08-23T21:28:22.534Z'
+ updated_at: '2021-08-23T21:28:22.534Z'
relationships:
product:
data:
@@ -454,8 +454,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-08-20T11:02:27.336Z'
- updated_at: '2021-08-20T11:02:27.336Z'
+ created_at: '2021-08-23T21:28:22.569Z'
+ updated_at: '2021-08-23T21:28:22.569Z'
relationships:
product:
data:
@@ -510,8 +510,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-08-20T11:02:27.775Z'
- updated_at: '2021-08-20T11:02:27.775Z'
+ created_at: '2021-08-23T21:28:22.728Z'
+ updated_at: '2021-08-23T21:28:22.728Z'
relationships:
product:
data:
@@ -538,7 +538,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/classification_params"
+ "$ref": "#/components/schemas/classifications_params"
"/api/v2/platform/classifications/{id}":
get:
summary: Returns a Classification
@@ -551,46 +551,1183 @@ paths:
in: path
required: true
schema:
- type: string
+ type: string
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: product,taxon
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Record found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '1'
+ type: classification
+ attributes:
+ position: 1
+ created_at: '2021-08-23T21:28:22.787Z'
+ updated_at: '2021-08-23T21:28:22.787Z'
+ relationships:
+ product:
+ data:
+ id: '1'
+ type: product
+ taxon:
+ data:
+ id: '2'
+ type: taxon
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ put:
+ summary: Updates a Classification
+ tags:
+ - Classifications
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: product,taxon
+ schema:
+ type: string
+ responses:
+ '200':
+ description: record updated
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '1'
+ type: classification
+ attributes:
+ position: 1
+ created_at: '2021-08-23T21:28:22.904Z'
+ updated_at: '2021-08-23T21:28:22.904Z'
+ relationships:
+ product:
+ data:
+ id: '1'
+ type: product
+ taxon:
+ data:
+ id: '2'
+ type: taxon
+ '422':
+ description: invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Product can't be blank
+ errors:
+ product:
+ - can't be blank
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/classifications_params"
+ delete:
+ summary: Deletes a Classification
+ tags:
+ - Classifications
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Record deleted
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ "/api/v2/platform/classifications/{id}/reposition":
+ put:
+ summary: Reposition a Classification
+ tags:
+ - Classifications
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: product,taxon
+ schema:
+ type: string
+ responses:
+ '200':
+ description: record updated
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '1'
+ type: classification
+ attributes:
+ position: 2
+ created_at: '2021-08-23T21:28:23.191Z'
+ updated_at: '2021-08-23T21:28:23.199Z'
+ relationships:
+ product:
+ data:
+ id: '1'
+ type: product
+ taxon:
+ data:
+ id: '2'
+ type: taxon
+ '422':
+ description: invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: is not a number
+ errors: {}
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/classification_params"
+ "/api/v2/platform/countries":
+ get:
+ summary: Returns a list of Countries
+ tags:
+ - Countries
+ security:
+ - bearer_auth: []
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '1'
+ type: country
+ attributes:
+ iso_name: UNITED STATES
+ iso: US
+ iso3: IS34
+ name: United States of America
+ numcode: 840
+ states_required: true
+ updated_at: '2021-08-23T21:28:23.328Z'
+ zipcode_required: true
+ created_at: '2021-08-23T21:28:23.328Z'
+ relationships:
+ states:
+ data: []
+ - id: '2'
+ type: country
+ attributes:
+ iso_name: ISO_NAME_2
+ iso: I2
+ iso3: IS35
+ name: NAME_2
+ numcode: 840
+ states_required: false
+ updated_at: '2021-08-23T21:28:23.332Z'
+ zipcode_required: true
+ created_at: '2021-08-23T21:28:23.332Z'
+ relationships:
+ states:
+ data: []
+ - id: '3'
+ type: country
+ attributes:
+ iso_name: ISO_NAME_3
+ iso: I3
+ iso3: IS36
+ name: NAME_3
+ numcode: 840
+ states_required: false
+ updated_at: '2021-08-23T21:28:23.333Z'
+ zipcode_required: true
+ created_at: '2021-08-23T21:28:23.333Z'
+ relationships:
+ states:
+ data: []
+ meta:
+ count: 3
+ total_count: 3
+ total_pages: 1
+ links:
+ self: http://www.example.com/api/v2/platform/countries
+ next: http://www.example.com/api/v2/platform/countries?page=1
+ prev: http://www.example.com/api/v2/platform/countries?page=1
+ last: http://www.example.com/api/v2/platform/countries?page=1
+ first: http://www.example.com/api/v2/platform/countries?page=1
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ "/api/v2/platform/countries/{id}":
+ get:
+ summary: Returns a Country
+ tags:
+ - Countries
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Record found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '2'
+ type: country
+ attributes:
+ iso_name: ISO_NAME_6
+ iso: I6
+ iso3: IS41
+ name: NAME_6
+ numcode: 840
+ states_required: false
+ updated_at: '2021-08-23T21:28:23.362Z'
+ zipcode_required: true
+ created_at: '2021-08-23T21:28:23.362Z'
+ relationships:
+ states:
+ data: []
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ "/api/v2/platform/menu_items":
+ get:
+ summary: Returns a list of MenuItems
+ tags:
+ - MenuItems
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: page
+ in: query
+ example: 1
+ schema:
+ type: integer
+ - name: per_page
+ in: query
+ example: 50
+ schema:
+ type: integer
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: linked_resource
+ schema:
+ type: string
+ - name: filter
+ in: query
+ description: ''
+ example:
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '1'
+ type: menu_item
+ attributes:
+ name: Quia ea unde minus sunt voluptatum iste repellendus.
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code:
+ lft: 1
+ rgt: 16
+ depth: 0
+ created_at: '2021-08-23T21:28:23.403Z'
+ updated_at: '2021-08-23T21:28:23.479Z'
+ link:
+ is_container: true
+ is_root: true
+ is_child: false
+ is_leaf: false
+ relationships:
+ icon:
+ data:
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ linked_resource:
+ data:
+ children:
+ data:
+ - id: '2'
+ type: menu_item
+ - id: '3'
+ type: menu_item
+ - id: '4'
+ type: menu_item
+ - id: '5'
+ type: menu_item
+ - id: '6'
+ type: menu_item
+ - id: '7'
+ type: menu_item
+ - id: '8'
+ type: menu_item
+ - id: '2'
+ type: menu_item
+ attributes:
+ name: Link no. 1 To Somewhere
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 2
+ rgt: 3
+ depth: 1
+ created_at: '2021-08-23T21:28:23.414Z'
+ updated_at: '2021-08-23T21:28:23.416Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '1'
+ type: icon
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '1'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ - id: '3'
+ type: menu_item
+ attributes:
+ name: Link no. 2 To Somewhere
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 4
+ rgt: 5
+ depth: 1
+ created_at: '2021-08-23T21:28:23.425Z'
+ updated_at: '2021-08-23T21:28:23.426Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '2'
+ type: icon
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '1'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ - id: '4'
+ type: menu_item
+ attributes:
+ name: Link no. 3 To Somewhere
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 6
+ rgt: 7
+ depth: 1
+ created_at: '2021-08-23T21:28:23.435Z'
+ updated_at: '2021-08-23T21:28:23.436Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '3'
+ type: icon
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '1'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ - id: '5'
+ type: menu_item
+ attributes:
+ name: Link no. 4 To Somewhere
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 8
+ rgt: 9
+ depth: 1
+ created_at: '2021-08-23T21:28:23.444Z'
+ updated_at: '2021-08-23T21:28:23.446Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '4'
+ type: icon
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '1'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ - id: '6'
+ type: menu_item
+ attributes:
+ name: Link no. 5 To Somewhere
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 10
+ rgt: 11
+ depth: 1
+ created_at: '2021-08-23T21:28:23.454Z'
+ updated_at: '2021-08-23T21:28:23.456Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '5'
+ type: icon
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '1'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ - id: '7'
+ type: menu_item
+ attributes:
+ name: Link no. 6 To Somewhere
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 12
+ rgt: 13
+ depth: 1
+ created_at: '2021-08-23T21:28:23.464Z'
+ updated_at: '2021-08-23T21:28:23.465Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '6'
+ type: icon
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '1'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ - id: '8'
+ type: menu_item
+ attributes:
+ name: Link no. 7 To Somewhere
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 14
+ rgt: 15
+ depth: 1
+ created_at: '2021-08-23T21:28:23.474Z'
+ updated_at: '2021-08-23T21:28:23.475Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '7'
+ type: icon
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '1'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ meta:
+ count: 8
+ total_count: 8
+ total_pages: 1
+ links:
+ self: http://www.example.com/api/v2/platform/menu_items?page=1&per_page=&include=&filter=
+ next: http://www.example.com/api/v2/platform/menu_items?include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/menu_items?include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/menu_items?include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/menu_items?include=&page=1&per_page=
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ post:
+ summary: Creates a MenuItem
+ tags:
+ - MenuItems
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: linked_resource
+ schema:
+ type: string
+ responses:
+ '201':
+ description: record created
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '5'
+ type: menu_item
+ attributes:
+ name: Link no. 18 To Somewhere
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 8
+ rgt: 9
+ depth: 1
+ created_at: '2021-08-23T21:28:23.637Z'
+ updated_at: '2021-08-23T21:28:23.639Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '1'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ '422':
+ description: invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Name can't be blank, Menu can't be blank, and Item type
+ is not included in the list
+ errors:
+ name:
+ - can't be blank
+ menu:
+ - can't be blank
+ item_type:
+ - is not included in the list
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/menu_items_params"
+ "/api/v2/platform/menu_items/{id}":
+ get:
+ summary: Returns a MenuItem
+ tags:
+ - MenuItems
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: linked_resource
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Record found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '5'
+ type: menu_item
+ attributes:
+ name: Link no. 25 To Somewhere
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 8
+ rgt: 9
+ depth: 1
+ created_at: '2021-08-23T21:28:23.746Z'
+ updated_at: '2021-08-23T21:28:23.748Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '4'
+ type: icon
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '1'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ put:
+ summary: Updates a MenuItem
+ tags:
+ - MenuItems
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: linked_resource
+ schema:
+ type: string
+ responses:
+ '200':
+ description: record updated
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '5'
+ type: menu_item
+ attributes:
+ name: Menu Item One
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 8
+ rgt: 9
+ depth: 1
+ created_at: '2021-08-23T21:28:23.926Z'
+ updated_at: '2021-08-23T21:28:23.937Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '4'
+ type: icon
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '1'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ '422':
+ description: invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Name can't be blank
+ errors:
+ name:
+ - can't be blank
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/menu_items_params"
+ delete:
+ summary: Deletes a MenuItem
+ tags:
+ - MenuItems
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Record deleted
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ "/api/v2/platform/menu_items/{id}/reposition":
+ patch:
+ summary: Reposition a Menu Item
+ tags:
+ - MenuItems
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: record updated
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '5'
+ type: menu_item
+ attributes:
+ name: Link no. 62 To Somewhere
+ subtitle:
+ destination:
+ new_window: false
+ item_type: Link
+ linked_resource_type: URL
+ code:
+ lft: 5
+ rgt: 6
+ depth: 2
+ created_at: '2021-08-23T21:28:24.309Z'
+ updated_at: '2021-08-23T21:28:24.321Z'
+ link:
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '4'
+ type: icon
+ menu:
+ data:
+ id: '1'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ children:
+ data: []
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/menu_item_reposition_params"
+ "/api/v2/platform/menus":
+ get:
+ summary: Returns a list of Menus
+ tags:
+ - Menus
+ security:
+ - bearer_auth: []
+ parameters:
+ - name: page
+ in: query
+ example: 1
+ schema:
+ type: integer
+ - name: per_page
+ in: query
+ example: 50
+ schema:
+ type: integer
- name: include
in: query
description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
- example: product,taxon
+ example: menu_items
+ schema:
+ type: string
+ - name: filter
+ in: query
+ description: ''
+ example: location_eq=header
schema:
type: string
responses:
'200':
- description: Record found
+ description: Records returned
content:
application/vnd.api+json:
examples:
Example:
value:
data:
- id: '1'
- type: classification
+ - id: '1'
+ type: menu
attributes:
- position: 1
- created_at: '2021-08-20T11:02:27.921Z'
- updated_at: '2021-08-20T11:02:27.921Z'
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-23T21:28:24.436Z'
+ updated_at: '2021-08-23T21:28:24.464Z'
relationships:
- product:
+ menu_items:
data:
- id: '1'
- type: product
- taxon:
+ - id: '1'
+ type: menu_item
+ - id: '3'
+ type: menu_item
+ - id: '4'
+ type: menu_item
+ - id: '2'
+ type: menu
+ attributes:
+ name: Footer Menu
+ location: footer
+ locale: en
+ created_at: '2021-08-23T21:28:24.440Z'
+ updated_at: '2021-08-23T21:28:24.484Z'
+ relationships:
+ menu_items:
data:
- id: '2'
- type: taxon
- '404':
- description: Record not found
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- error: The resource you were looking for could not be found.
+ - id: '2'
+ type: menu_item
+ - id: '5'
+ type: menu_item
+ - id: '6'
+ type: menu_item
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: http://www.example.com/api/v2/platform/menus?page=1&per_page=&include=&filter=
+ next: http://www.example.com/api/v2/platform/menus?include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/menus?include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/menus?include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/menus?include=&page=1&per_page=
'401':
description: Authentication Failed
content:
@@ -599,28 +1736,23 @@ paths:
Example:
value:
error: The access token is invalid
- put:
- summary: Updates a Classification
+ post:
+ summary: Creates a Menu
tags:
- - Classifications
+ - Menus
security:
- bearer_auth: []
parameters:
- - name: id
- in: path
- required: true
- schema:
- type: string
- name: include
in: query
description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
- example: product,taxon
+ example: menu_items
schema:
type: string
responses:
- '200':
- description: record updated
+ '201':
+ description: record created
content:
application/vnd.api+json:
examples:
@@ -628,20 +1760,18 @@ paths:
value:
data:
id: '1'
- type: classification
+ type: menu
attributes:
- position: 1
- created_at: '2021-08-20T11:02:28.202Z'
- updated_at: '2021-08-20T11:02:28.202Z'
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-23T21:28:24.595Z'
+ updated_at: '2021-08-23T21:28:24.598Z'
relationships:
- product:
- data:
- id: '1'
- type: product
- taxon:
+ menu_items:
data:
- id: '2'
- type: taxon
+ - id: '1'
+ type: menu_item
'422':
description: invalid request
content:
@@ -649,35 +1779,25 @@ paths:
examples:
Example:
value:
- error: Product can't be blank
+ error: Name can't be blank, Locale can't be blank, and Location
+ is not included in the list
errors:
- product:
+ name:
- can't be blank
- '404':
- description: Record not found
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- error: The resource you were looking for could not be found.
- '401':
- description: Authentication Failed
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- error: The access token is invalid
+ locale:
+ - can't be blank
+ location:
+ - is not included in the list
requestBody:
content:
application/json:
schema:
- "$ref": "#/components/schemas/classification_params"
- delete:
- summary: Deletes a Classification
+ "$ref": "#/components/schemas/menus_params"
+ "/api/v2/platform/menus/{id}":
+ get:
+ summary: Returns a Menu
tags:
- - Classifications
+ - Menus
security:
- bearer_auth: []
parameters:
@@ -686,9 +1806,35 @@ paths:
required: true
schema:
type: string
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: menu_items
+ schema:
+ type: string
responses:
- '204':
- description: Record deleted
+ '200':
+ description: Record found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '1'
+ type: menu
+ attributes:
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-23T21:28:24.622Z'
+ updated_at: '2021-08-23T21:28:24.625Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '1'
+ type: menu_item
'404':
description: Record not found
content:
@@ -705,11 +1851,10 @@ paths:
Example:
value:
error: The access token is invalid
- "/api/v2/platform/classifications/{id}/reposition":
put:
- summary: Reposition a Classification
+ summary: Updates a Menu
tags:
- - Classifications
+ - Menus
security:
- bearer_auth: []
parameters:
@@ -722,7 +1867,7 @@ paths:
in: query
description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
- example: product,taxon
+ example: menu_items
schema:
type: string
responses:
@@ -735,20 +1880,18 @@ paths:
value:
data:
id: '1'
- type: classification
+ type: menu
attributes:
- position: 2
- created_at: '2021-08-20T11:02:28.904Z'
- updated_at: '2021-08-20T11:02:28.922Z'
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-23T21:28:24.664Z'
+ updated_at: '2021-08-23T21:28:24.667Z'
relationships:
- product:
- data:
- id: '1'
- type: product
- taxon:
+ menu_items:
data:
- id: '2'
- type: taxon
+ - id: '1'
+ type: menu_item
'422':
description: invalid request
content:
@@ -756,8 +1899,15 @@ paths:
examples:
Example:
value:
- error: is not a number
- errors: {}
+ error: Name can't be blank, Locale can't be blank, and Location
+ is not included in the list
+ errors:
+ name:
+ - can't be blank
+ locale:
+ - can't be blank
+ location:
+ - is not included in the list
'404':
description: Record not found
content:
@@ -778,91 +1928,11 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/classification_params"
- "/api/v2/platform/countries":
- get:
- summary: Returns a list of Countries
- tags:
- - Countries
- security:
- - bearer_auth: []
- responses:
- '200':
- description: Records returned
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- data:
- - id: '1'
- type: country
- attributes:
- iso_name: UNITED STATES
- iso: US
- iso3: IS34
- name: United States of America
- numcode: 840
- states_required: true
- updated_at: '2021-08-20T11:02:29.220Z'
- zipcode_required: true
- created_at: '2021-08-20T11:02:29.220Z'
- relationships:
- states:
- data: []
- - id: '2'
- type: country
- attributes:
- iso_name: ISO_NAME_2
- iso: I2
- iso3: IS35
- name: NAME_2
- numcode: 840
- states_required: false
- updated_at: '2021-08-20T11:02:29.229Z'
- zipcode_required: true
- created_at: '2021-08-20T11:02:29.229Z'
- relationships:
- states:
- data: []
- - id: '3'
- type: country
- attributes:
- iso_name: ISO_NAME_3
- iso: I3
- iso3: IS36
- name: NAME_3
- numcode: 840
- states_required: false
- updated_at: '2021-08-20T11:02:29.231Z'
- zipcode_required: true
- created_at: '2021-08-20T11:02:29.231Z'
- relationships:
- states:
- data: []
- meta:
- count: 3
- total_count: 3
- total_pages: 1
- links:
- self: http://www.example.com/api/v2/platform/countries
- next: http://www.example.com/api/v2/platform/countries?page=1
- prev: http://www.example.com/api/v2/platform/countries?page=1
- last: http://www.example.com/api/v2/platform/countries?page=1
- first: http://www.example.com/api/v2/platform/countries?page=1
- '401':
- description: Authentication Failed
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- error: The access token is invalid
- "/api/v2/platform/countries/{id}":
- get:
- summary: Returns a Country
+ "$ref": "#/components/schemas/menus_params"
+ delete:
+ summary: Deletes a Menu
tags:
- - Countries
+ - Menus
security:
- bearer_auth: []
parameters:
@@ -872,29 +1942,8 @@ paths:
schema:
type: string
responses:
- '200':
- description: Record found
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- data:
- id: '2'
- type: country
- attributes:
- iso_name: ISO_NAME_6
- iso: I6
- iso3: IS41
- name: NAME_6
- numcode: 840
- states_required: false
- updated_at: '2021-08-20T11:02:29.297Z'
- zipcode_required: true
- created_at: '2021-08-20T11:02:29.297Z'
- relationships:
- states:
- data: []
+ '204':
+ description: Record deleted
'404':
description: Record not found
content:
@@ -957,8 +2006,8 @@ paths:
name: foo-size-1
presentation: Size
position: 1
- created_at: '2021-08-20T11:02:29.373Z'
- updated_at: '2021-08-20T11:02:29.373Z'
+ created_at: '2021-08-23T21:28:24.774Z'
+ updated_at: '2021-08-23T21:28:24.774Z'
filterable: true
relationships:
option_values:
@@ -969,8 +2018,8 @@ paths:
name: foo-size-2
presentation: Size
position: 2
- created_at: '2021-08-20T11:02:29.375Z'
- updated_at: '2021-08-20T11:02:29.375Z'
+ created_at: '2021-08-23T21:28:24.775Z'
+ updated_at: '2021-08-23T21:28:24.775Z'
filterable: true
relationships:
option_values:
@@ -1022,8 +2071,8 @@ paths:
name: foo-size-5
presentation: Size
position: 1
- created_at: '2021-08-20T11:02:29.453Z'
- updated_at: '2021-08-20T11:02:29.453Z'
+ created_at: '2021-08-23T21:28:24.807Z'
+ updated_at: '2021-08-23T21:28:24.807Z'
filterable: true
relationships:
option_values:
@@ -1045,7 +2094,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/optiontype_params"
+ "$ref": "#/components/schemas/option_types_params"
"/api/v2/platform/option_types/{id}":
get:
summary: Returns an OptionType
@@ -1081,8 +2130,8 @@ paths:
name: foo-size-6
presentation: Size
position: 1
- created_at: '2021-08-20T11:02:29.497Z'
- updated_at: '2021-08-20T11:02:29.497Z'
+ created_at: '2021-08-23T21:28:24.829Z'
+ updated_at: '2021-08-23T21:28:24.829Z'
filterable: true
relationships:
option_values:
@@ -1137,8 +2186,8 @@ paths:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-08-20T11:02:29.580Z'
- updated_at: '2021-08-20T11:02:29.591Z'
+ created_at: '2021-08-23T21:28:24.867Z'
+ updated_at: '2021-08-23T21:28:24.871Z'
filterable: true
relationships:
option_values:
@@ -1174,7 +2223,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/optiontype_params"
+ "$ref": "#/components/schemas/option_types_params"
delete:
summary: Deletes an OptionType
tags:
@@ -1252,8 +2301,8 @@ paths:
position: 1
name: Size-1
presentation: S
- created_at: '2021-08-20T11:02:29.758Z'
- updated_at: '2021-08-20T11:02:29.758Z'
+ created_at: '2021-08-23T21:28:24.950Z'
+ updated_at: '2021-08-23T21:28:24.950Z'
relationships:
option_type:
data:
@@ -1265,8 +2314,8 @@ paths:
position: 1
name: Size-2
presentation: S
- created_at: '2021-08-20T11:02:29.763Z'
- updated_at: '2021-08-20T11:02:29.763Z'
+ created_at: '2021-08-23T21:28:24.952Z'
+ updated_at: '2021-08-23T21:28:24.952Z'
relationships:
option_type:
data:
@@ -1319,8 +2368,8 @@ paths:
position: 1
name: Size-5
presentation: S
- created_at: '2021-08-20T11:02:29.842Z'
- updated_at: '2021-08-20T11:02:29.842Z'
+ created_at: '2021-08-23T21:28:24.988Z'
+ updated_at: '2021-08-23T21:28:24.988Z'
relationships:
option_type:
data:
@@ -1341,7 +2390,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/optionvalue_params"
+ "$ref": "#/components/schemas/option_values_params"
"/api/v2/platform/option_values/{id}":
get:
summary: Returns an OptionValue
@@ -1377,8 +2426,8 @@ paths:
position: 1
name: Size-6
presentation: S
- created_at: '2021-08-20T11:02:29.890Z'
- updated_at: '2021-08-20T11:02:29.890Z'
+ created_at: '2021-08-23T21:28:25.015Z'
+ updated_at: '2021-08-23T21:28:25.015Z'
relationships:
option_type:
data:
@@ -1434,8 +2483,8 @@ paths:
position: 1
name: M
presentation: S
- created_at: '2021-08-20T11:02:29.959Z'
- updated_at: '2021-08-20T11:02:29.973Z'
+ created_at: '2021-08-23T21:28:25.052Z'
+ updated_at: '2021-08-23T21:28:25.056Z'
relationships:
option_type:
data:
@@ -1472,7 +2521,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/optionvalue_params"
+ "$ref": "#/components/schemas/option_values_params"
delete:
summary: Deletes an OptionValue
tags:
@@ -1553,8 +2602,8 @@ paths:
lft: 1
rgt: 6
description:
- created_at: '2021-08-20T11:02:30.161Z'
- updated_at: '2021-08-20T11:02:30.221Z'
+ created_at: '2021-08-23T21:28:25.145Z'
+ updated_at: '2021-08-23T21:28:25.172Z'
meta_title:
meta_description:
meta_keywords:
@@ -1588,8 +2637,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-08-20T11:02:30.183Z'
- updated_at: '2021-08-20T11:02:30.187Z'
+ created_at: '2021-08-23T21:28:25.156Z'
+ updated_at: '2021-08-23T21:28:25.157Z'
meta_title:
meta_description:
meta_keywords:
@@ -1623,8 +2672,8 @@ paths:
lft: 4
rgt: 5
description:
- created_at: '2021-08-20T11:02:30.208Z'
- updated_at: '2021-08-20T11:02:30.212Z'
+ created_at: '2021-08-23T21:28:25.167Z'
+ updated_at: '2021-08-23T21:28:25.168Z'
meta_title:
meta_description:
meta_keywords:
@@ -1699,8 +2748,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-08-20T11:02:30.393Z'
- updated_at: '2021-08-20T11:02:30.397Z'
+ created_at: '2021-08-23T21:28:25.251Z'
+ updated_at: '2021-08-23T21:28:25.254Z'
meta_title:
meta_description:
meta_keywords:
@@ -1740,7 +2789,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/taxon_params"
+ "$ref": "#/components/schemas/taxons_params"
"/api/v2/platform/taxons/{id}":
get:
summary: Returns a Taxon
@@ -1779,8 +2828,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-08-20T11:02:30.484Z'
- updated_at: '2021-08-20T11:02:30.488Z'
+ created_at: '2021-08-23T21:28:25.291Z'
+ updated_at: '2021-08-23T21:28:25.293Z'
meta_title:
meta_description:
meta_keywords:
@@ -1860,8 +2909,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-08-20T11:02:30.652Z'
- updated_at: '2021-08-20T11:02:30.675Z'
+ created_at: '2021-08-23T21:28:25.371Z'
+ updated_at: '2021-08-23T21:28:25.383Z'
meta_title:
meta_description:
meta_keywords:
@@ -1917,7 +2966,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/taxon_params"
+ "$ref": "#/components/schemas/taxons_params"
delete:
summary: Deletes a Taxon
tags:
@@ -1992,9 +3041,9 @@ paths:
- id: '1'
type: user
attributes:
- created_at: '2021-08-20T11:02:31.076Z'
- updated_at: '2021-08-20T11:02:31.076Z'
+ created_at: '2021-08-23T21:28:25.546Z'
+ updated_at: '2021-08-23T21:28:25.546Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -2006,9 +3055,9 @@ paths:
- id: '2'
type: user
attributes:
- created_at: '2021-08-20T11:02:31.087Z'
- updated_at: '2021-08-20T11:02:31.087Z'
+ created_at: '2021-08-23T21:28:25.549Z'
+ updated_at: '2021-08-23T21:28:25.549Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -2020,9 +3069,9 @@ paths:
- id: '3'
type: user
attributes:
- created_at: '2021-08-20T11:02:31.090Z'
- updated_at: '2021-08-20T11:02:31.090Z'
+ created_at: '2021-08-23T21:28:25.550Z'
+ updated_at: '2021-08-23T21:28:25.550Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -2075,9 +3124,9 @@ paths:
id: '2'
type: user
attributes:
- created_at: '2021-08-20T11:02:31.214Z'
- updated_at: '2021-08-20T11:02:31.214Z'
+ created_at: '2021-08-23T21:28:25.597Z'
+ updated_at: '2021-08-23T21:28:25.597Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -2101,7 +3150,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/user_params"
+ "$ref": "#/components/schemas/users_params"
"/api/v2/platform/users/{id}":
get:
summary: Returns an User
@@ -2134,9 +3183,9 @@ paths:
id: '2'
type: user
attributes:
- created_at: '2021-08-20T11:02:31.290Z'
- updated_at: '2021-08-20T11:02:31.290Z'
+ created_at: '2021-08-23T21:28:25.626Z'
+ updated_at: '2021-08-23T21:28:25.626Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -2193,8 +3242,8 @@ paths:
type: user
attributes:
- created_at: '2021-08-20T11:02:31.401Z'
- updated_at: '2021-08-20T11:02:31.417Z'
+ created_at: '2021-08-23T21:28:25.669Z'
+ updated_at: '2021-08-23T21:28:25.673Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -2234,7 +3283,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/user_params"
+ "$ref": "#/components/schemas/users_params"
delete:
summary: Deletes an User
tags:
@@ -2419,6 +3468,49 @@ components:
required:
- name
- taxonomy_id
+ menu_params:
+ type: object
+ properties:
+ name:
+ type: string
+ location:
+ type: string
+ locale:
+ type: string
+ required:
+ - name
+ - location
+ - locale
+ menu_item_params:
+ type: object
+ properties:
+ name:
+ type: string
+ code:
+ type: string
+ subtitle:
+ type: string
+ destination:
+ type: string
+ new_window:
+ type: boolean
+ item_type:
+ type: string
+ linked_resource_type:
+ type: string
+ linked_resource_id:
+ type: integer
+ required:
+ - name
+ menu_item_reposition_params:
+ type: object
+ properties:
+ new_parent_id:
+ type: integer
+ new_position_idx:
+ type: integer
+ required:
+ - name
resources_list:
type: object
properties:
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index c3c21fdfce..f28434bdf4 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -5347,6 +5347,7990 @@ paths:
'404':
$ref: '#/components/responses/404NotFound'
summary: Get CMS Page Details
+ /api/v2/storefront/menus:
+ get:
+ description: Returns a list of all Menus available in the current store.
+ tags:
+ - Menus
+ operationId: get-menus
+ parameters:
+ - $ref: '#/components/parameters/FilterByLocation'
+ - $ref: '#/components/parameters/MenuIncludeParam'
+ - $ref: '#/components/parameters/LocaleParam'
+ - $ref: '#/components/parameters/PerPageParam'
+ responses:
+ '200':
+ description: Returns a list of all Menus available for the current store.
+ content:
+ application/vnd.api+json:
+ schema:
+ $ref: '#/components/schemas/MenusList'
+ examples:
+ Base Response:
+ value:
+ data:
+ - id: '3'
+ type: menu
+ attributes:
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-20T11:59:47.845Z'
+ updated_at: '2021-08-23T18:44:20.258Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '16'
+ type: menu_item
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '30'
+ type: menu_item
+ - id: '3'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '36'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '15'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ - id: '4'
+ type: menu
+ attributes:
+ name: Footer Menu
+ location: footer
+ locale: en
+ created_at: '2021-08-20T11:59:47.888Z'
+ updated_at: '2021-08-23T18:43:53.962Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '43'
+ type: menu_item
+ - id: '46'
+ type: menu_item
+ - id: '47'
+ type: menu_item
+ - id: '48'
+ type: menu_item
+ - id: '49'
+ type: menu_item
+ - id: '280'
+ type: menu_item
+ - id: '4'
+ type: menu_item
+ - id: '52'
+ type: menu_item
+ - id: '54'
+ type: menu_item
+ - id: '53'
+ type: menu_item
+ - id: '44'
+ type: menu_item
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: 'http://localhost:3000/api/v2/platform/menus/'
+ next: 'http://localhost:3000/api/v2/platform/menus?page=1'
+ prev: 'http://localhost:3000/api/v2/platform/menus?page=1'
+ last: 'http://localhost:3000/api/v2/platform/menus?page=1'
+ first: 'http://localhost:3000/api/v2/platform/menus?page=1'
+ '?include=menu_items':
+ value:
+ data:
+ - id: '3'
+ type: menu
+ attributes:
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-20T11:59:47.845Z'
+ updated_at: '2021-08-23T18:44:20.258Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '16'
+ type: menu_item
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '30'
+ type: menu_item
+ - id: '3'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '36'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '15'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ - id: '4'
+ type: menu
+ attributes:
+ name: Footer Menu
+ location: footer
+ locale: en
+ created_at: '2021-08-20T11:59:47.888Z'
+ updated_at: '2021-08-23T18:43:53.962Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '43'
+ type: menu_item
+ - id: '46'
+ type: menu_item
+ - id: '47'
+ type: menu_item
+ - id: '48'
+ type: menu_item
+ - id: '49'
+ type: menu_item
+ - id: '280'
+ type: menu_item
+ - id: '4'
+ type: menu_item
+ - id: '52'
+ type: menu_item
+ - id: '54'
+ type: menu_item
+ - id: '53'
+ type: menu_item
+ - id: '44'
+ type: menu_item
+ included:
+ - id: '16'
+ type: menu_item
+ attributes:
+ name: Men
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 24
+ rgt: 41
+ depth: 1
+ created_at: '2021-08-20T11:59:48.217Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: /t/categories/men
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: taxon
+ children:
+ data:
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '24'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 18
+ rgt: 19
+ depth: 3
+ created_at: '2021-08-20T11:59:48.502Z'
+ updated_at: '2021-08-23T18:03:28.524Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '2'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '25'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 20
+ rgt: 21
+ depth: 3
+ created_at: '2021-08-20T11:59:48.545Z'
+ updated_at: '2021-08-23T18:38:39.401Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '3'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '26'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 36
+ rgt: 37
+ depth: 3
+ created_at: '2021-08-20T11:59:48.587Z'
+ updated_at: '2021-08-23T18:38:50.547Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '4'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '27'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 38
+ rgt: 39
+ depth: 3
+ created_at: '2021-08-20T11:59:48.626Z'
+ updated_at: '2021-08-23T18:39:01.526Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '5'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '21'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 17
+ rgt: 22
+ depth: 2
+ created_at: '2021-08-20T11:59:48.401Z'
+ updated_at: '2021-08-23T18:38:39.415Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ attributes:
+ name: Biker Jacket
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Product'
+ code: ''
+ lft: 14
+ rgt: 15
+ depth: 3
+ created_at: '2021-08-20T11:59:49.084Z'
+ updated_at: '2021-08-23T18:44:20.245Z'
+ link: /products/suede-biker-jacket
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '28'
+ type: product
+ children:
+ data: []
+ - id: '30'
+ type: menu_item
+ attributes:
+ name: Skirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 4
+ rgt: 5
+ depth: 3
+ created_at: '2021-08-20T11:59:48.765Z'
+ updated_at: '2021-08-20T11:59:48.799Z'
+ link: /t/categories/women/skirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '9'
+ type: taxon
+ children:
+ data: []
+ - id: '3'
+ type: menu_item
+ attributes:
+ name: Main Menu
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: null
+ lft: 1
+ rgt: 42
+ depth: 0
+ created_at: '2021-08-20T11:59:47.866Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: true
+ is_child: false
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data: null
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '15'
+ type: menu_item
+ - id: '16'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 10
+ rgt: 11
+ depth: 3
+ created_at: '2021-08-20T11:59:48.976Z'
+ updated_at: '2021-08-20T11:59:49.026Z'
+ link: /t/categories/women/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '12'
+ type: taxon
+ children:
+ data: []
+ - id: '31'
+ type: menu_item
+ attributes:
+ name: Dresses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 6
+ rgt: 7
+ depth: 3
+ created_at: '2021-08-20T11:59:48.823Z'
+ updated_at: '2021-08-20T11:59:48.878Z'
+ link: /t/categories/women/dresses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '10'
+ type: taxon
+ children:
+ data: []
+ - id: '39'
+ type: menu_item
+ attributes:
+ name: Jackets and Coats
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 32
+ rgt: 33
+ depth: 3
+ created_at: '2021-08-20T11:59:49.256Z'
+ updated_at: '2021-08-20T11:59:49.288Z'
+ link: /t/categories/men/jackets-and-coats
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '8'
+ type: taxon
+ children:
+ data: []
+ - id: '36'
+ type: menu_item
+ attributes:
+ name: Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 26
+ rgt: 27
+ depth: 3
+ created_at: '2021-08-20T11:59:49.126Z'
+ updated_at: '2021-08-20T11:59:49.157Z'
+ link: /t/categories/men/shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '5'
+ type: taxon
+ children:
+ data: []
+ - id: '32'
+ type: menu_item
+ attributes:
+ name: Skirts and Blouses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 8
+ rgt: 9
+ depth: 3
+ created_at: '2021-08-20T11:59:48.905Z'
+ updated_at: '2021-08-20T11:59:48.951Z'
+ link: /t/categories/women/shirts-and-blouses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '11'
+ type: taxon
+ children:
+ data: []
+ - id: '34'
+ type: menu_item
+ attributes:
+ name: Tops and T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 12
+ rgt: 13
+ depth: 3
+ created_at: '2021-08-20T11:59:49.040Z'
+ updated_at: '2021-08-20T11:59:49.070Z'
+ link: /t/categories/women/tops-and-t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '13'
+ type: taxon
+ children:
+ data: []
+ - id: '15'
+ type: menu_item
+ attributes:
+ name: Women
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 2
+ rgt: 23
+ depth: 1
+ created_at: '2021-08-20T11:59:48.171Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: /t/categories/women
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: taxon
+ children:
+ data:
+ - id: '18'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 30
+ rgt: 31
+ depth: 3
+ created_at: '2021-08-20T11:59:49.214Z'
+ updated_at: '2021-08-20T11:59:49.242Z'
+ link: /t/categories/men/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '7'
+ type: taxon
+ children:
+ data: []
+ - id: '37'
+ type: menu_item
+ attributes:
+ name: T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 28
+ rgt: 29
+ depth: 3
+ created_at: '2021-08-20T11:59:49.171Z'
+ updated_at: '2021-08-20T11:59:49.201Z'
+ link: /t/categories/men/t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '6'
+ type: taxon
+ children:
+ data: []
+ - id: '19'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 25
+ rgt: 34
+ depth: 2
+ created_at: '2021-08-20T11:59:48.341Z'
+ updated_at: '2021-08-20T11:59:49.293Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '36'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 35
+ rgt: 40
+ depth: 2
+ created_at: '2021-08-20T11:59:48.432Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 3
+ rgt: 16
+ depth: 2
+ created_at: '2021-08-20T11:59:48.307Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '30'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '43'
+ type: menu_item
+ attributes:
+ name: Company
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: ''
+ lft: 44
+ rgt: 55
+ depth: 1
+ created_at: '2021-08-20T11:59:49.426Z'
+ updated_at: '2021-08-23T18:43:53.960Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '4'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '46'
+ type: menu_item
+ - id: '47'
+ type: menu_item
+ - id: '48'
+ type: menu_item
+ - id: '49'
+ type: menu_item
+ - id: '280'
+ type: menu_item
+ - id: '46'
+ type: menu_item
+ attributes:
+ name: About Us
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 45
+ rgt: 46
+ depth: 2
+ created_at: '2021-08-20T11:59:49.559Z'
+ updated_at: '2021-08-23T18:42:15.697Z'
+ link: /pages/about-us
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '1'
+ type: cms_page
+ children:
+ data: []
+ - id: '47'
+ type: menu_item
+ attributes:
+ name: Privacy Policy
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 47
+ rgt: 48
+ depth: 2
+ created_at: '2021-08-20T11:59:49.602Z'
+ updated_at: '2021-08-23T18:42:34.640Z'
+ link: /pages/privacy-policy
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: cms_page
+ children:
+ data: []
+ - id: '48'
+ type: menu_item
+ attributes:
+ name: Shipping
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 49
+ rgt: 50
+ depth: 2
+ created_at: '2021-08-20T11:59:49.650Z'
+ updated_at: '2021-08-23T18:42:50.830Z'
+ link: /pages/shipping-policy
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: cms_page
+ children:
+ data: []
+ - id: '49'
+ type: menu_item
+ attributes:
+ name: Returns
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 51
+ rgt: 52
+ depth: 2
+ created_at: '2021-08-20T11:59:49.693Z'
+ updated_at: '2021-08-23T18:43:09.099Z'
+ link: /pages/returns-policy
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '4'
+ type: cms_page
+ children:
+ data: []
+ - id: '280'
+ type: menu_item
+ attributes:
+ name: U.S Store
+ subtitle: ''
+ destination: 'https://example-us-store.com'
+ new_window: true
+ item_type: Link
+ linked_resource_type: URL
+ code: ''
+ lft: 53
+ rgt: 54
+ depth: 2
+ created_at: '2021-08-23T18:43:45.153Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: 'https://example-us-store.com'
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data: []
+ - id: '4'
+ type: menu_item
+ attributes:
+ name: Footer Menu
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: null
+ lft: 43
+ rgt: 64
+ depth: 0
+ created_at: '2021-08-20T11:59:47.891Z'
+ updated_at: '2021-08-23T18:43:53.960Z'
+ link: null
+ is_container: true
+ is_root: true
+ is_child: false
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data: null
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '43'
+ type: menu_item
+ - id: '44'
+ type: menu_item
+ - id: '52'
+ type: menu_item
+ attributes:
+ name: Men
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 57
+ rgt: 58
+ depth: 2
+ created_at: '2021-08-20T11:59:49.812Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: /t/categories/men
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '44'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: taxon
+ children:
+ data: []
+ - id: '54'
+ type: menu_item
+ attributes:
+ name: Sportswear
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 61
+ rgt: 62
+ depth: 2
+ created_at: '2021-08-20T11:59:49.903Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: /t/categories/sportswear
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '44'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '4'
+ type: taxon
+ children:
+ data: []
+ - id: '53'
+ type: menu_item
+ attributes:
+ name: Women
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 59
+ rgt: 60
+ depth: 2
+ created_at: '2021-08-20T11:59:49.856Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: /t/categories/women
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '44'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: taxon
+ children:
+ data: []
+ - id: '44'
+ type: menu_item
+ attributes:
+ name: Shop
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: ''
+ lft: 56
+ rgt: 63
+ depth: 1
+ created_at: '2021-08-20T11:59:49.469Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '4'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '52'
+ type: menu_item
+ - id: '53'
+ type: menu_item
+ - id: '54'
+ type: menu_item
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: 'http://localhost:3000/api/v2/platform/menus/?include=menu_items'
+ next: 'http://localhost:3000/api/v2/platform/menus?include=menu_items&page=1'
+ prev: 'http://localhost:3000/api/v2/platform/menus?include=menu_items&page=1'
+ last: 'http://localhost:3000/api/v2/platform/menus?include=menu_items&page=1'
+ first: 'http://localhost:3000/api/v2/platform/menus?include=menu_items&page=1'
+ '?include=menu_items.linked_resources':
+ value:
+ data:
+ - id: '3'
+ type: menu
+ attributes:
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-20T11:59:47.845Z'
+ updated_at: '2021-08-23T18:44:20.258Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '16'
+ type: menu_item
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '30'
+ type: menu_item
+ - id: '3'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '36'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '15'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ - id: '4'
+ type: menu
+ attributes:
+ name: Footer Menu
+ location: footer
+ locale: en
+ created_at: '2021-08-20T11:59:47.888Z'
+ updated_at: '2021-08-23T18:43:53.962Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '43'
+ type: menu_item
+ - id: '46'
+ type: menu_item
+ - id: '47'
+ type: menu_item
+ - id: '48'
+ type: menu_item
+ - id: '49'
+ type: menu_item
+ - id: '280'
+ type: menu_item
+ - id: '4'
+ type: menu_item
+ - id: '52'
+ type: menu_item
+ - id: '54'
+ type: menu_item
+ - id: '53'
+ type: menu_item
+ - id: '44'
+ type: menu_item
+ included:
+ - id: '2'
+ type: taxon
+ attributes:
+ position: 0
+ name: Men
+ permalink: categories/men
+ lft: 2
+ rgt: 11
+ description: null
+ created_at: '2021-08-20T11:58:47.854Z'
+ updated_at: '2021-08-20T11:59:42.466Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 1
+ pretty_name: Categories -> Men
+ seo_title: Men
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ parent:
+ data:
+ id: '1'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data:
+ - id: '5'
+ type: taxon
+ - id: '6'
+ type: taxon
+ - id: '7'
+ type: taxon
+ - id: '8'
+ type: taxon
+ image:
+ data: null
+ - id: '16'
+ type: menu_item
+ attributes:
+ name: Men
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 24
+ rgt: 41
+ depth: 1
+ created_at: '2021-08-20T11:59:48.217Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: /t/categories/men
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: taxon
+ children:
+ data:
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '24'
+ type: taxon
+ attributes:
+ position: 0
+ name: Summer 2021
+ permalink: categories/new-collection/summer-2021
+ lft: 45
+ rgt: 46
+ description: null
+ created_at: '2021-08-20T11:58:49.064Z'
+ updated_at: '2021-08-20T11:59:44.832Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> New Collection -> Summer 2021
+ seo_title: Summer 2021
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '23'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '24'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 18
+ rgt: 19
+ depth: 3
+ created_at: '2021-08-20T11:59:48.502Z'
+ updated_at: '2021-08-23T18:03:28.524Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '2'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '26'
+ type: taxon
+ attributes:
+ position: 0
+ name: 30% Off
+ permalink: categories/special-offers/30-percent-off
+ lft: 49
+ rgt: 50
+ description: null
+ created_at: '2021-08-20T11:58:49.161Z'
+ updated_at: '2021-08-20T11:59:44.800Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Special Offers -> 30% Off
+ seo_title: 30% Off
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '25'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '25'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 20
+ rgt: 21
+ depth: 3
+ created_at: '2021-08-20T11:59:48.545Z'
+ updated_at: '2021-08-23T18:38:39.401Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '3'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '26'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 36
+ rgt: 37
+ depth: 3
+ created_at: '2021-08-20T11:59:48.587Z'
+ updated_at: '2021-08-23T18:38:50.547Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '4'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '27'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 38
+ rgt: 39
+ depth: 3
+ created_at: '2021-08-20T11:59:48.626Z'
+ updated_at: '2021-08-23T18:39:01.526Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '5'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '21'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 17
+ rgt: 22
+ depth: 2
+ created_at: '2021-08-20T11:59:48.401Z'
+ updated_at: '2021-08-23T18:38:39.415Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '28'
+ type: product
+ attributes:
+ name: Suede Biker Jacket
+ description: Nesciunt repudiandae recusandae magnam deleniti perferendis amet. Explicabo inventore perferendis similique ipsa. Modi mollitia adipisci dolores unde laudantium.
+ available_on: '2021-08-20T11:58:52.622Z'
+ deleted_at: null
+ slug: suede-biker-jacket
+ meta_description: null
+ meta_keywords: null
+ created_at: '2021-08-20T11:58:52.668Z'
+ updated_at: '2021-08-20T11:59:42.259Z'
+ promotionable: true
+ meta_title: null
+ discontinue_on: null
+ purchasable: true
+ in_stock: true
+ backorderable: true
+ available: true
+ currency: USD
+ price: '62.99'
+ display_price: $62.99
+ compare_at_price: null
+ display_compare_at_price: null
+ relationships:
+ tax_category:
+ data:
+ id: '1'
+ type: tax_category
+ master_variant:
+ data:
+ id: '28'
+ type: variant
+ default_variant:
+ data:
+ id: '144'
+ type: variant
+ variants:
+ data:
+ - id: '144'
+ type: variant
+ option_types:
+ data:
+ - id: '1'
+ type: option_type
+ - id: '3'
+ type: option_type
+ product_properties:
+ data:
+ - id: '259'
+ type: product_property
+ - id: '260'
+ type: product_property
+ - id: '261'
+ type: product_property
+ - id: '262'
+ type: product_property
+ - id: '263'
+ type: product_property
+ - id: '264'
+ type: product_property
+ - id: '265'
+ type: product_property
+ - id: '266'
+ type: product_property
+ taxons:
+ data:
+ - id: '2'
+ type: taxon
+ - id: '8'
+ type: taxon
+ - id: '26'
+ type: taxon
+ images:
+ data: []
+ - id: '35'
+ type: menu_item
+ attributes:
+ name: Biker Jacket
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Product'
+ code: ''
+ lft: 14
+ rgt: 15
+ depth: 3
+ created_at: '2021-08-20T11:59:49.084Z'
+ updated_at: '2021-08-23T18:44:20.245Z'
+ link: /products/suede-biker-jacket
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '28'
+ type: product
+ children:
+ data: []
+ - id: '9'
+ type: taxon
+ attributes:
+ position: 0
+ name: Skirts
+ permalink: categories/women/skirts
+ lft: 13
+ rgt: 14
+ description: null
+ created_at: '2021-08-20T11:58:48.341Z'
+ updated_at: '2021-08-20T11:59:42.745Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Women -> Skirts
+ seo_title: Skirts
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '3'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '30'
+ type: menu_item
+ attributes:
+ name: Skirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 4
+ rgt: 5
+ depth: 3
+ created_at: '2021-08-20T11:59:48.765Z'
+ updated_at: '2021-08-20T11:59:48.799Z'
+ link: /t/categories/women/skirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '9'
+ type: taxon
+ children:
+ data: []
+ - id: '3'
+ type: menu_item
+ attributes:
+ name: Main Menu
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: null
+ lft: 1
+ rgt: 42
+ depth: 0
+ created_at: '2021-08-20T11:59:47.866Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: true
+ is_child: false
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data: null
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '15'
+ type: menu_item
+ - id: '16'
+ type: menu_item
+ - id: '12'
+ type: taxon
+ attributes:
+ position: 0
+ name: Sweaters
+ permalink: categories/women/sweaters
+ lft: 19
+ rgt: 20
+ description: null
+ created_at: '2021-08-20T11:58:48.497Z'
+ updated_at: '2021-08-20T11:59:43.603Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Women -> Sweaters
+ seo_title: Sweaters
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '3'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '33'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 10
+ rgt: 11
+ depth: 3
+ created_at: '2021-08-20T11:59:48.976Z'
+ updated_at: '2021-08-20T11:59:49.026Z'
+ link: /t/categories/women/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '12'
+ type: taxon
+ children:
+ data: []
+ - id: '10'
+ type: taxon
+ attributes:
+ position: 0
+ name: Dresses
+ permalink: categories/women/dresses
+ lft: 15
+ rgt: 16
+ description: null
+ created_at: '2021-08-20T11:58:48.396Z'
+ updated_at: '2021-08-20T11:59:43.092Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Women -> Dresses
+ seo_title: Dresses
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '3'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '31'
+ type: menu_item
+ attributes:
+ name: Dresses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 6
+ rgt: 7
+ depth: 3
+ created_at: '2021-08-20T11:59:48.823Z'
+ updated_at: '2021-08-20T11:59:48.878Z'
+ link: /t/categories/women/dresses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '10'
+ type: taxon
+ children:
+ data: []
+ - id: '8'
+ type: taxon
+ attributes:
+ position: 0
+ name: Jackets and Coats
+ permalink: categories/men/jackets-and-coats
+ lft: 9
+ rgt: 10
+ description: null
+ created_at: '2021-08-20T11:58:48.291Z'
+ updated_at: '2021-08-20T11:59:42.466Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Men -> Jackets and Coats
+ seo_title: Jackets and Coats
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '2'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '39'
+ type: menu_item
+ attributes:
+ name: Jackets and Coats
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 32
+ rgt: 33
+ depth: 3
+ created_at: '2021-08-20T11:59:49.256Z'
+ updated_at: '2021-08-20T11:59:49.288Z'
+ link: /t/categories/men/jackets-and-coats
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '8'
+ type: taxon
+ children:
+ data: []
+ - id: '5'
+ type: taxon
+ attributes:
+ position: 0
+ name: Shirts
+ permalink: categories/men/shirts
+ lft: 3
+ rgt: 4
+ description: null
+ created_at: '2021-08-20T11:58:48.134Z'
+ updated_at: '2021-08-20T11:59:41.779Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Men -> Shirts
+ seo_title: Shirts
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '2'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '36'
+ type: menu_item
+ attributes:
+ name: Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 26
+ rgt: 27
+ depth: 3
+ created_at: '2021-08-20T11:59:49.126Z'
+ updated_at: '2021-08-20T11:59:49.157Z'
+ link: /t/categories/men/shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '5'
+ type: taxon
+ children:
+ data: []
+ - id: '11'
+ type: taxon
+ attributes:
+ position: 0
+ name: Shirts and Blouses
+ permalink: categories/women/shirts-and-blouses
+ lft: 17
+ rgt: 18
+ description: null
+ created_at: '2021-08-20T11:58:48.447Z'
+ updated_at: '2021-08-20T11:59:43.431Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Women -> Shirts and Blouses
+ seo_title: Shirts and Blouses
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '3'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '32'
+ type: menu_item
+ attributes:
+ name: Skirts and Blouses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 8
+ rgt: 9
+ depth: 3
+ created_at: '2021-08-20T11:59:48.905Z'
+ updated_at: '2021-08-20T11:59:48.951Z'
+ link: /t/categories/women/shirts-and-blouses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '11'
+ type: taxon
+ children:
+ data: []
+ - id: '13'
+ type: taxon
+ attributes:
+ position: 0
+ name: Tops and T-shirts
+ permalink: categories/women/tops-and-t-shirts
+ lft: 21
+ rgt: 22
+ description: null
+ created_at: '2021-08-20T11:58:48.550Z'
+ updated_at: '2021-08-20T11:59:43.853Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Women -> Tops and T-shirts
+ seo_title: Tops and T-shirts
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '3'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '34'
+ type: menu_item
+ attributes:
+ name: Tops and T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 12
+ rgt: 13
+ depth: 3
+ created_at: '2021-08-20T11:59:49.040Z'
+ updated_at: '2021-08-20T11:59:49.070Z'
+ link: /t/categories/women/tops-and-t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '13'
+ type: taxon
+ children:
+ data: []
+ - id: '3'
+ type: taxon
+ attributes:
+ position: 0
+ name: Women
+ permalink: categories/women
+ lft: 12
+ rgt: 25
+ description: null
+ created_at: '2021-08-20T11:58:47.946Z'
+ updated_at: '2021-08-20T11:59:44.202Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 1
+ pretty_name: Categories -> Women
+ seo_title: Women
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ parent:
+ data:
+ id: '1'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data:
+ - id: '9'
+ type: taxon
+ - id: '10'
+ type: taxon
+ - id: '11'
+ type: taxon
+ - id: '12'
+ type: taxon
+ - id: '13'
+ type: taxon
+ - id: '14'
+ type: taxon
+ image:
+ data: null
+ - id: '15'
+ type: menu_item
+ attributes:
+ name: Women
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 2
+ rgt: 23
+ depth: 1
+ created_at: '2021-08-20T11:59:48.171Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: /t/categories/women
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: taxon
+ children:
+ data:
+ - id: '18'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '7'
+ type: taxon
+ attributes:
+ position: 0
+ name: Sweaters
+ permalink: categories/men/sweaters
+ lft: 7
+ rgt: 8
+ description: null
+ created_at: '2021-08-20T11:58:48.240Z'
+ updated_at: '2021-08-20T11:59:42.240Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Men -> Sweaters
+ seo_title: Sweaters
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '2'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '38'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 30
+ rgt: 31
+ depth: 3
+ created_at: '2021-08-20T11:59:49.214Z'
+ updated_at: '2021-08-20T11:59:49.242Z'
+ link: /t/categories/men/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '7'
+ type: taxon
+ children:
+ data: []
+ - id: '6'
+ type: taxon
+ attributes:
+ position: 0
+ name: T-shirts
+ permalink: categories/men/t-shirts
+ lft: 5
+ rgt: 6
+ description: null
+ created_at: '2021-08-20T11:58:48.189Z'
+ updated_at: '2021-08-20T11:59:42.003Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Men -> T-shirts
+ seo_title: T-shirts
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '2'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '37'
+ type: menu_item
+ attributes:
+ name: T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 28
+ rgt: 29
+ depth: 3
+ created_at: '2021-08-20T11:59:49.171Z'
+ updated_at: '2021-08-20T11:59:49.201Z'
+ link: /t/categories/men/t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '6'
+ type: taxon
+ children:
+ data: []
+ - id: '19'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 25
+ rgt: 34
+ depth: 2
+ created_at: '2021-08-20T11:59:48.341Z'
+ updated_at: '2021-08-20T11:59:49.293Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '36'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 35
+ rgt: 40
+ depth: 2
+ created_at: '2021-08-20T11:59:48.432Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 3
+ rgt: 16
+ depth: 2
+ created_at: '2021-08-20T11:59:48.307Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '30'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '43'
+ type: menu_item
+ attributes:
+ name: Company
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: ''
+ lft: 44
+ rgt: 55
+ depth: 1
+ created_at: '2021-08-20T11:59:49.426Z'
+ updated_at: '2021-08-23T18:43:53.960Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '4'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '46'
+ type: menu_item
+ - id: '47'
+ type: menu_item
+ - id: '48'
+ type: menu_item
+ - id: '49'
+ type: menu_item
+ - id: '280'
+ type: menu_item
+ - id: '1'
+ type: cms_page
+ attributes:
+ title: About Us
+ meta_title: null
+ content: Maiores autem recusandae necessitatibus libero illum iusto quae. Eum quas numquam sequi magni dolore possimus totam deleniti. Cumque facere vel ex dolorum veritatis culpa numquam. Ullam cumque culpa assumenda voluptates dignissimos fuga. Beatae nemo totam dolore eum repudiandae at. Reprehenderit officiis magni quibusdam suscipit velit. Sunt nesciunt tempore ipsum soluta. Iste quas blanditiis debitis officia. Earum consequatur amet minus exercitationem tenetur tempore.
+ meta_description: null
+ visible: true
+ slug: about-us
+ type: 'Spree::Cms::Pages::StandardPage'
+ locale: en
+ deleted_at: null
+ created_at: '2021-08-20T11:59:45.809Z'
+ updated_at: '2021-08-20T11:59:45.809Z'
+ relationships:
+ cms_sections:
+ data: []
+ - id: '46'
+ type: menu_item
+ attributes:
+ name: About Us
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 45
+ rgt: 46
+ depth: 2
+ created_at: '2021-08-20T11:59:49.559Z'
+ updated_at: '2021-08-23T18:42:15.697Z'
+ link: /pages/about-us
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '1'
+ type: cms_page
+ children:
+ data: []
+ - id: '2'
+ type: cms_page
+ attributes:
+ title: Privacy Policy
+ meta_title: null
+ content: Consequuntur eum consectetur repellendus nisi animi doloremque nesciunt. Quia tempore accusantium alias magni non autem quae. Quam asperiores eaque dolorem recusandae pariatur impedit. Ullam eum magnam mollitia porro illo. Quis ipsa consequuntur itaque nostrum. Eaque quibusdam ab illo qui rerum sapiente placeat incidunt. Velit non molestiae nemo soluta reprehenderit. Aperiam est fuga architecto labore dolorum inventore. Unde ipsum repellendus commodi exercitationem.
+ meta_description: null
+ visible: true
+ slug: privacy-policy
+ type: 'Spree::Cms::Pages::StandardPage'
+ locale: en
+ deleted_at: null
+ created_at: '2021-08-20T11:59:45.818Z'
+ updated_at: '2021-08-20T11:59:45.818Z'
+ relationships:
+ cms_sections:
+ data: []
+ - id: '47'
+ type: menu_item
+ attributes:
+ name: Privacy Policy
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 47
+ rgt: 48
+ depth: 2
+ created_at: '2021-08-20T11:59:49.602Z'
+ updated_at: '2021-08-23T18:42:34.640Z'
+ link: /pages/privacy-policy
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: cms_page
+ children:
+ data: []
+ - id: '3'
+ type: cms_page
+ attributes:
+ title: Shipping Policy
+ meta_title: null
+ content: Explicabo similique corrupti commodi labore. Nobis quam temporibus totam ducimus voluptates. Quidem eaque laborum eos reiciendis sint non. Laudantium earum ad harum sit. Facere repudiandae voluptatibus praesentium voluptatum. Aut iusto tenetur deleniti illo qui eum. Quas ea recusandae corrupti laboriosam eaque necessitatibus. Minus magni omnis maxime porro.
+ meta_description: null
+ visible: true
+ slug: shipping-policy
+ type: 'Spree::Cms::Pages::StandardPage'
+ locale: en
+ deleted_at: null
+ created_at: '2021-08-20T11:59:45.829Z'
+ updated_at: '2021-08-20T11:59:45.829Z'
+ relationships:
+ cms_sections:
+ data: []
+ - id: '48'
+ type: menu_item
+ attributes:
+ name: Shipping
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 49
+ rgt: 50
+ depth: 2
+ created_at: '2021-08-20T11:59:49.650Z'
+ updated_at: '2021-08-23T18:42:50.830Z'
+ link: /pages/shipping-policy
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: cms_page
+ children:
+ data: []
+ - id: '4'
+ type: cms_page
+ attributes:
+ title: Returns Policy
+ meta_title: null
+ content: Facere porro fugit aspernatur ipsa nisi tempora. Repudiandae consequuntur adipisci corporis sunt aut velit. Voluptatum odit minima ducimus fugiat culpa. Maiores aspernatur molestiae facilis doloremque delectus. Voluptate excepturi officiis explicabo doloribus expedita odio quia accusantium. Occaecati veritatis voluptas maxime ea vero dolorum. Facere eos est repellendus provident aperiam. Asperiores odio est explicabo quisquam consequatur officia laboriosam qui. Quaerat placeat quibusdam possimus et optio.
+ meta_description: null
+ visible: true
+ slug: returns-policy
+ type: 'Spree::Cms::Pages::StandardPage'
+ locale: en
+ deleted_at: null
+ created_at: '2021-08-20T11:59:45.838Z'
+ updated_at: '2021-08-20T11:59:45.838Z'
+ relationships:
+ cms_sections:
+ data: []
+ - id: '49'
+ type: menu_item
+ attributes:
+ name: Returns
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 51
+ rgt: 52
+ depth: 2
+ created_at: '2021-08-20T11:59:49.693Z'
+ updated_at: '2021-08-23T18:43:09.099Z'
+ link: /pages/returns-policy
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '4'
+ type: cms_page
+ children:
+ data: []
+ - id: '280'
+ type: menu_item
+ attributes:
+ name: U.S Store
+ subtitle: ''
+ destination: 'https://example-us-store.com'
+ new_window: true
+ item_type: Link
+ linked_resource_type: URL
+ code: ''
+ lft: 53
+ rgt: 54
+ depth: 2
+ created_at: '2021-08-23T18:43:45.153Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: 'https://example-us-store.com'
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data: []
+ - id: '4'
+ type: menu_item
+ attributes:
+ name: Footer Menu
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: null
+ lft: 43
+ rgt: 64
+ depth: 0
+ created_at: '2021-08-20T11:59:47.891Z'
+ updated_at: '2021-08-23T18:43:53.960Z'
+ link: null
+ is_container: true
+ is_root: true
+ is_child: false
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data: null
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '43'
+ type: menu_item
+ - id: '44'
+ type: menu_item
+ - id: '52'
+ type: menu_item
+ attributes:
+ name: Men
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 57
+ rgt: 58
+ depth: 2
+ created_at: '2021-08-20T11:59:49.812Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: /t/categories/men
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '44'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: taxon
+ children:
+ data: []
+ - id: '4'
+ type: taxon
+ attributes:
+ position: 0
+ name: Sportswear
+ permalink: categories/sportswear
+ lft: 26
+ rgt: 33
+ description: null
+ created_at: '2021-08-20T11:58:48.063Z'
+ updated_at: '2021-08-20T11:59:44.865Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 1
+ pretty_name: Categories -> Sportswear
+ seo_title: Sportswear
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ parent:
+ data:
+ id: '1'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data:
+ - id: '15'
+ type: taxon
+ - id: '16'
+ type: taxon
+ - id: '17'
+ type: taxon
+ image:
+ data: null
+ - id: '54'
+ type: menu_item
+ attributes:
+ name: Sportswear
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 61
+ rgt: 62
+ depth: 2
+ created_at: '2021-08-20T11:59:49.903Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: /t/categories/sportswear
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '44'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '4'
+ type: taxon
+ children:
+ data: []
+ - id: '53'
+ type: menu_item
+ attributes:
+ name: Women
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 59
+ rgt: 60
+ depth: 2
+ created_at: '2021-08-20T11:59:49.856Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: /t/categories/women
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '44'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: taxon
+ children:
+ data: []
+ - id: '44'
+ type: menu_item
+ attributes:
+ name: Shop
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: ''
+ lft: 56
+ rgt: 63
+ depth: 1
+ created_at: '2021-08-20T11:59:49.469Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '4'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '52'
+ type: menu_item
+ - id: '53'
+ type: menu_item
+ - id: '54'
+ type: menu_item
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: 'http://localhost:3000/api/v2/platform/menus/?include=menu_items.linked_resource'
+ next: 'http://localhost:3000/api/v2/platform/menus?include=menu_items.linked_resource&page=1'
+ prev: 'http://localhost:3000/api/v2/platform/menus?include=menu_items.linked_resource&page=1'
+ last: 'http://localhost:3000/api/v2/platform/menus?include=menu_items.linked_resource&page=1'
+ first: 'http://localhost:3000/api/v2/platform/menus?include=menu_items.linked_resource&page=1'
+ '?include=menu_items.icon':
+ value:
+ data:
+ - id: '3'
+ type: menu
+ attributes:
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-20T11:59:47.845Z'
+ updated_at: '2021-08-23T18:44:20.258Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '16'
+ type: menu_item
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '30'
+ type: menu_item
+ - id: '3'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '36'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '15'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ - id: '4'
+ type: menu
+ attributes:
+ name: Footer Menu
+ location: footer
+ locale: en
+ created_at: '2021-08-20T11:59:47.888Z'
+ updated_at: '2021-08-23T18:43:53.962Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '43'
+ type: menu_item
+ - id: '46'
+ type: menu_item
+ - id: '47'
+ type: menu_item
+ - id: '48'
+ type: menu_item
+ - id: '49'
+ type: menu_item
+ - id: '280'
+ type: menu_item
+ - id: '4'
+ type: menu_item
+ - id: '52'
+ type: menu_item
+ - id: '54'
+ type: menu_item
+ - id: '53'
+ type: menu_item
+ - id: '44'
+ type: menu_item
+ included:
+ - id: '16'
+ type: menu_item
+ attributes:
+ name: Men
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 24
+ rgt: 41
+ depth: 1
+ created_at: '2021-08-20T11:59:48.217Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: /t/categories/men
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: taxon
+ children:
+ data:
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '2'
+ type: icon
+ attributes:
+ url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--893986690dd1ca74d862978672d81ce5e323cfb1/promo.png
+ - id: '24'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 18
+ rgt: 19
+ depth: 3
+ created_at: '2021-08-20T11:59:48.502Z'
+ updated_at: '2021-08-23T18:03:28.524Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '2'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '3'
+ type: icon
+ attributes:
+ url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a840645606765f261a45b8ee99b4df3d5cfa2c2c/promo.png
+ - id: '25'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 20
+ rgt: 21
+ depth: 3
+ created_at: '2021-08-20T11:59:48.545Z'
+ updated_at: '2021-08-23T18:38:39.401Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '3'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '4'
+ type: icon
+ attributes:
+ url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--fd19250b84368a217f7cace0bde51d60ab4ac519/promo.png
+ - id: '26'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 36
+ rgt: 37
+ depth: 3
+ created_at: '2021-08-20T11:59:48.587Z'
+ updated_at: '2021-08-23T18:38:50.547Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '4'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '5'
+ type: icon
+ attributes:
+ url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--fc61109d6955289e9c629271018d6a110b242132/promo.png
+ - id: '27'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 38
+ rgt: 39
+ depth: 3
+ created_at: '2021-08-20T11:59:48.626Z'
+ updated_at: '2021-08-23T18:39:01.526Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '5'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '21'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 17
+ rgt: 22
+ depth: 2
+ created_at: '2021-08-20T11:59:48.401Z'
+ updated_at: '2021-08-23T18:38:39.415Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ attributes:
+ name: Biker Jacket
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Product'
+ code: ''
+ lft: 14
+ rgt: 15
+ depth: 3
+ created_at: '2021-08-20T11:59:49.084Z'
+ updated_at: '2021-08-23T18:44:20.245Z'
+ link: /products/suede-biker-jacket
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '28'
+ type: product
+ children:
+ data: []
+ - id: '30'
+ type: menu_item
+ attributes:
+ name: Skirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 4
+ rgt: 5
+ depth: 3
+ created_at: '2021-08-20T11:59:48.765Z'
+ updated_at: '2021-08-20T11:59:48.799Z'
+ link: /t/categories/women/skirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '9'
+ type: taxon
+ children:
+ data: []
+ - id: '3'
+ type: menu_item
+ attributes:
+ name: Main Menu
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: null
+ lft: 1
+ rgt: 42
+ depth: 0
+ created_at: '2021-08-20T11:59:47.866Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: true
+ is_child: false
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data: null
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '15'
+ type: menu_item
+ - id: '16'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 10
+ rgt: 11
+ depth: 3
+ created_at: '2021-08-20T11:59:48.976Z'
+ updated_at: '2021-08-20T11:59:49.026Z'
+ link: /t/categories/women/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '12'
+ type: taxon
+ children:
+ data: []
+ - id: '31'
+ type: menu_item
+ attributes:
+ name: Dresses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 6
+ rgt: 7
+ depth: 3
+ created_at: '2021-08-20T11:59:48.823Z'
+ updated_at: '2021-08-20T11:59:48.878Z'
+ link: /t/categories/women/dresses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '10'
+ type: taxon
+ children:
+ data: []
+ - id: '39'
+ type: menu_item
+ attributes:
+ name: Jackets and Coats
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 32
+ rgt: 33
+ depth: 3
+ created_at: '2021-08-20T11:59:49.256Z'
+ updated_at: '2021-08-20T11:59:49.288Z'
+ link: /t/categories/men/jackets-and-coats
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '8'
+ type: taxon
+ children:
+ data: []
+ - id: '36'
+ type: menu_item
+ attributes:
+ name: Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 26
+ rgt: 27
+ depth: 3
+ created_at: '2021-08-20T11:59:49.126Z'
+ updated_at: '2021-08-20T11:59:49.157Z'
+ link: /t/categories/men/shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '5'
+ type: taxon
+ children:
+ data: []
+ - id: '32'
+ type: menu_item
+ attributes:
+ name: Skirts and Blouses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 8
+ rgt: 9
+ depth: 3
+ created_at: '2021-08-20T11:59:48.905Z'
+ updated_at: '2021-08-20T11:59:48.951Z'
+ link: /t/categories/women/shirts-and-blouses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '11'
+ type: taxon
+ children:
+ data: []
+ - id: '34'
+ type: menu_item
+ attributes:
+ name: Tops and T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 12
+ rgt: 13
+ depth: 3
+ created_at: '2021-08-20T11:59:49.040Z'
+ updated_at: '2021-08-20T11:59:49.070Z'
+ link: /t/categories/women/tops-and-t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '13'
+ type: taxon
+ children:
+ data: []
+ - id: '15'
+ type: menu_item
+ attributes:
+ name: Women
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 2
+ rgt: 23
+ depth: 1
+ created_at: '2021-08-20T11:59:48.171Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: /t/categories/women
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: taxon
+ children:
+ data:
+ - id: '18'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 30
+ rgt: 31
+ depth: 3
+ created_at: '2021-08-20T11:59:49.214Z'
+ updated_at: '2021-08-20T11:59:49.242Z'
+ link: /t/categories/men/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '7'
+ type: taxon
+ children:
+ data: []
+ - id: '37'
+ type: menu_item
+ attributes:
+ name: T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 28
+ rgt: 29
+ depth: 3
+ created_at: '2021-08-20T11:59:49.171Z'
+ updated_at: '2021-08-20T11:59:49.201Z'
+ link: /t/categories/men/t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '6'
+ type: taxon
+ children:
+ data: []
+ - id: '19'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 25
+ rgt: 34
+ depth: 2
+ created_at: '2021-08-20T11:59:48.341Z'
+ updated_at: '2021-08-20T11:59:49.293Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '36'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 35
+ rgt: 40
+ depth: 2
+ created_at: '2021-08-20T11:59:48.432Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 3
+ rgt: 16
+ depth: 2
+ created_at: '2021-08-20T11:59:48.307Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '30'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '43'
+ type: menu_item
+ attributes:
+ name: Company
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: ''
+ lft: 44
+ rgt: 55
+ depth: 1
+ created_at: '2021-08-20T11:59:49.426Z'
+ updated_at: '2021-08-23T18:43:53.960Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '4'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '46'
+ type: menu_item
+ - id: '47'
+ type: menu_item
+ - id: '48'
+ type: menu_item
+ - id: '49'
+ type: menu_item
+ - id: '280'
+ type: menu_item
+ - id: '46'
+ type: menu_item
+ attributes:
+ name: About Us
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 45
+ rgt: 46
+ depth: 2
+ created_at: '2021-08-20T11:59:49.559Z'
+ updated_at: '2021-08-23T18:42:15.697Z'
+ link: /pages/about-us
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '1'
+ type: cms_page
+ children:
+ data: []
+ - id: '47'
+ type: menu_item
+ attributes:
+ name: Privacy Policy
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 47
+ rgt: 48
+ depth: 2
+ created_at: '2021-08-20T11:59:49.602Z'
+ updated_at: '2021-08-23T18:42:34.640Z'
+ link: /pages/privacy-policy
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: cms_page
+ children:
+ data: []
+ - id: '48'
+ type: menu_item
+ attributes:
+ name: Shipping
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 49
+ rgt: 50
+ depth: 2
+ created_at: '2021-08-20T11:59:49.650Z'
+ updated_at: '2021-08-23T18:42:50.830Z'
+ link: /pages/shipping-policy
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: cms_page
+ children:
+ data: []
+ - id: '49'
+ type: menu_item
+ attributes:
+ name: Returns
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::CmsPage'
+ code: ''
+ lft: 51
+ rgt: 52
+ depth: 2
+ created_at: '2021-08-20T11:59:49.693Z'
+ updated_at: '2021-08-23T18:43:09.099Z'
+ link: /pages/returns-policy
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '4'
+ type: cms_page
+ children:
+ data: []
+ - id: '280'
+ type: menu_item
+ attributes:
+ name: U.S Store
+ subtitle: ''
+ destination: 'https://example-us-store.com'
+ new_window: true
+ item_type: Link
+ linked_resource_type: URL
+ code: ''
+ lft: 53
+ rgt: 54
+ depth: 2
+ created_at: '2021-08-23T18:43:45.153Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: 'https://example-us-store.com'
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '43'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data: []
+ - id: '4'
+ type: menu_item
+ attributes:
+ name: Footer Menu
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: null
+ lft: 43
+ rgt: 64
+ depth: 0
+ created_at: '2021-08-20T11:59:47.891Z'
+ updated_at: '2021-08-23T18:43:53.960Z'
+ link: null
+ is_container: true
+ is_root: true
+ is_child: false
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data: null
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '43'
+ type: menu_item
+ - id: '44'
+ type: menu_item
+ - id: '52'
+ type: menu_item
+ attributes:
+ name: Men
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 57
+ rgt: 58
+ depth: 2
+ created_at: '2021-08-20T11:59:49.812Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: /t/categories/men
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '44'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: taxon
+ children:
+ data: []
+ - id: '54'
+ type: menu_item
+ attributes:
+ name: Sportswear
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 61
+ rgt: 62
+ depth: 2
+ created_at: '2021-08-20T11:59:49.903Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: /t/categories/sportswear
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '44'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '4'
+ type: taxon
+ children:
+ data: []
+ - id: '53'
+ type: menu_item
+ attributes:
+ name: Women
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 59
+ rgt: 60
+ depth: 2
+ created_at: '2021-08-20T11:59:49.856Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: /t/categories/women
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '44'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: taxon
+ children:
+ data: []
+ - id: '44'
+ type: menu_item
+ attributes:
+ name: Shop
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: ''
+ lft: 56
+ rgt: 63
+ depth: 1
+ created_at: '2021-08-20T11:59:49.469Z'
+ updated_at: '2021-08-23T18:43:53.937Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '4'
+ type: menu
+ parent:
+ data:
+ id: '4'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '52'
+ type: menu_item
+ - id: '53'
+ type: menu_item
+ - id: '54'
+ type: menu_item
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: 'http://localhost:3000/api/v2/platform/menus/?include=menu_items.icon'
+ next: 'http://localhost:3000/api/v2/platform/menus?include=menu_items.icon&page=1'
+ prev: 'http://localhost:3000/api/v2/platform/menus?include=menu_items.icon&page=1'
+ last: 'http://localhost:3000/api/v2/platform/menus?include=menu_items.icon&page=1'
+ first: 'http://localhost:3000/api/v2/platform/menus?include=menu_items.icon&page=1'
+ '404':
+ $ref: '#/components/responses/404NotFound'
+ summary: List of Menus
+ '/api/v2/storefront/menus/{id}':
+ get:
+ description: To return a single Menu you can use the Menu Id
+ tags:
+ - Menus
+ operationId: get-menu
+ parameters:
+ - $ref: '#/components/parameters/Id'
+ - $ref: '#/components/parameters/MenuIncludeParam'
+ responses:
+ '200':
+ description: Returns the requested Menu
+ content:
+ application/vnd.api+json:
+ schema:
+ $ref: '#/components/schemas/Menu'
+ examples:
+ Menu:
+ value:
+ data:
+ id: '3'
+ type: menu
+ attributes:
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-20T11:59:47.845Z'
+ updated_at: '2021-08-23T18:44:20.258Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '16'
+ type: menu_item
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '30'
+ type: menu_item
+ - id: '3'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '36'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '15'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ Menu Including Menu Items:
+ value:
+ data:
+ id: '3'
+ type: menu
+ attributes:
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-20T11:59:47.845Z'
+ updated_at: '2021-08-23T18:44:20.258Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '16'
+ type: menu_item
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '30'
+ type: menu_item
+ - id: '3'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '36'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '15'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ included:
+ - id: '16'
+ type: menu_item
+ attributes:
+ name: Men
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 24
+ rgt: 41
+ depth: 1
+ created_at: '2021-08-20T11:59:48.217Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: /t/categories/men
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: taxon
+ children:
+ data:
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '24'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 18
+ rgt: 19
+ depth: 3
+ created_at: '2021-08-20T11:59:48.502Z'
+ updated_at: '2021-08-23T18:03:28.524Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '2'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '25'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 20
+ rgt: 21
+ depth: 3
+ created_at: '2021-08-20T11:59:48.545Z'
+ updated_at: '2021-08-23T18:38:39.401Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '3'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '26'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 36
+ rgt: 37
+ depth: 3
+ created_at: '2021-08-20T11:59:48.587Z'
+ updated_at: '2021-08-23T18:38:50.547Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '4'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '27'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 38
+ rgt: 39
+ depth: 3
+ created_at: '2021-08-20T11:59:48.626Z'
+ updated_at: '2021-08-23T18:39:01.526Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '5'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '21'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 17
+ rgt: 22
+ depth: 2
+ created_at: '2021-08-20T11:59:48.401Z'
+ updated_at: '2021-08-23T18:38:39.415Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ attributes:
+ name: Biker Jacket
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Product'
+ code: ''
+ lft: 14
+ rgt: 15
+ depth: 3
+ created_at: '2021-08-20T11:59:49.084Z'
+ updated_at: '2021-08-23T18:44:20.245Z'
+ link: /products/suede-biker-jacket
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '28'
+ type: product
+ children:
+ data: []
+ - id: '30'
+ type: menu_item
+ attributes:
+ name: Skirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 4
+ rgt: 5
+ depth: 3
+ created_at: '2021-08-20T11:59:48.765Z'
+ updated_at: '2021-08-20T11:59:48.799Z'
+ link: /t/categories/women/skirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '9'
+ type: taxon
+ children:
+ data: []
+ - id: '3'
+ type: menu_item
+ attributes:
+ name: Main Menu
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: null
+ lft: 1
+ rgt: 42
+ depth: 0
+ created_at: '2021-08-20T11:59:47.866Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: true
+ is_child: false
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data: null
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '15'
+ type: menu_item
+ - id: '16'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 10
+ rgt: 11
+ depth: 3
+ created_at: '2021-08-20T11:59:48.976Z'
+ updated_at: '2021-08-20T11:59:49.026Z'
+ link: /t/categories/women/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '12'
+ type: taxon
+ children:
+ data: []
+ - id: '31'
+ type: menu_item
+ attributes:
+ name: Dresses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 6
+ rgt: 7
+ depth: 3
+ created_at: '2021-08-20T11:59:48.823Z'
+ updated_at: '2021-08-20T11:59:48.878Z'
+ link: /t/categories/women/dresses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '10'
+ type: taxon
+ children:
+ data: []
+ - id: '39'
+ type: menu_item
+ attributes:
+ name: Jackets and Coats
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 32
+ rgt: 33
+ depth: 3
+ created_at: '2021-08-20T11:59:49.256Z'
+ updated_at: '2021-08-20T11:59:49.288Z'
+ link: /t/categories/men/jackets-and-coats
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '8'
+ type: taxon
+ children:
+ data: []
+ - id: '36'
+ type: menu_item
+ attributes:
+ name: Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 26
+ rgt: 27
+ depth: 3
+ created_at: '2021-08-20T11:59:49.126Z'
+ updated_at: '2021-08-20T11:59:49.157Z'
+ link: /t/categories/men/shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '5'
+ type: taxon
+ children:
+ data: []
+ - id: '32'
+ type: menu_item
+ attributes:
+ name: Skirts and Blouses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 8
+ rgt: 9
+ depth: 3
+ created_at: '2021-08-20T11:59:48.905Z'
+ updated_at: '2021-08-20T11:59:48.951Z'
+ link: /t/categories/women/shirts-and-blouses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '11'
+ type: taxon
+ children:
+ data: []
+ - id: '34'
+ type: menu_item
+ attributes:
+ name: Tops and T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 12
+ rgt: 13
+ depth: 3
+ created_at: '2021-08-20T11:59:49.040Z'
+ updated_at: '2021-08-20T11:59:49.070Z'
+ link: /t/categories/women/tops-and-t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '13'
+ type: taxon
+ children:
+ data: []
+ - id: '15'
+ type: menu_item
+ attributes:
+ name: Women
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 2
+ rgt: 23
+ depth: 1
+ created_at: '2021-08-20T11:59:48.171Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: /t/categories/women
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: taxon
+ children:
+ data:
+ - id: '18'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 30
+ rgt: 31
+ depth: 3
+ created_at: '2021-08-20T11:59:49.214Z'
+ updated_at: '2021-08-20T11:59:49.242Z'
+ link: /t/categories/men/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '7'
+ type: taxon
+ children:
+ data: []
+ - id: '37'
+ type: menu_item
+ attributes:
+ name: T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 28
+ rgt: 29
+ depth: 3
+ created_at: '2021-08-20T11:59:49.171Z'
+ updated_at: '2021-08-20T11:59:49.201Z'
+ link: /t/categories/men/t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '6'
+ type: taxon
+ children:
+ data: []
+ - id: '19'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 25
+ rgt: 34
+ depth: 2
+ created_at: '2021-08-20T11:59:48.341Z'
+ updated_at: '2021-08-20T11:59:49.293Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '36'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 35
+ rgt: 40
+ depth: 2
+ created_at: '2021-08-20T11:59:48.432Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 3
+ rgt: 16
+ depth: 2
+ created_at: '2021-08-20T11:59:48.307Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '30'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ Menu Including Menu Items + Linked Resources:
+ value:
+ data:
+ id: '3'
+ type: menu
+ attributes:
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-20T11:59:47.845Z'
+ updated_at: '2021-08-23T18:44:20.258Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '16'
+ type: menu_item
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '30'
+ type: menu_item
+ - id: '3'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '36'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '15'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ included:
+ - id: '2'
+ type: taxon
+ attributes:
+ position: 0
+ name: Men
+ permalink: categories/men
+ lft: 2
+ rgt: 11
+ description: null
+ created_at: '2021-08-20T11:58:47.854Z'
+ updated_at: '2021-08-20T11:59:42.466Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 1
+ pretty_name: Categories -> Men
+ seo_title: Men
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ parent:
+ data:
+ id: '1'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data:
+ - id: '5'
+ type: taxon
+ - id: '6'
+ type: taxon
+ - id: '7'
+ type: taxon
+ - id: '8'
+ type: taxon
+ image:
+ data: null
+ - id: '16'
+ type: menu_item
+ attributes:
+ name: Men
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 24
+ rgt: 41
+ depth: 1
+ created_at: '2021-08-20T11:59:48.217Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: /t/categories/men
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: taxon
+ children:
+ data:
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '24'
+ type: taxon
+ attributes:
+ position: 0
+ name: Summer 2021
+ permalink: categories/new-collection/summer-2021
+ lft: 45
+ rgt: 46
+ description: null
+ created_at: '2021-08-20T11:58:49.064Z'
+ updated_at: '2021-08-20T11:59:44.832Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> New Collection -> Summer 2021
+ seo_title: Summer 2021
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '23'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '24'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 18
+ rgt: 19
+ depth: 3
+ created_at: '2021-08-20T11:59:48.502Z'
+ updated_at: '2021-08-23T18:03:28.524Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '2'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '26'
+ type: taxon
+ attributes:
+ position: 0
+ name: 30% Off
+ permalink: categories/special-offers/30-percent-off
+ lft: 49
+ rgt: 50
+ description: null
+ created_at: '2021-08-20T11:58:49.161Z'
+ updated_at: '2021-08-20T11:59:44.800Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Special Offers -> 30% Off
+ seo_title: 30% Off
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '25'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '25'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 20
+ rgt: 21
+ depth: 3
+ created_at: '2021-08-20T11:59:48.545Z'
+ updated_at: '2021-08-23T18:38:39.401Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '3'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '26'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 36
+ rgt: 37
+ depth: 3
+ created_at: '2021-08-20T11:59:48.587Z'
+ updated_at: '2021-08-23T18:38:50.547Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '4'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '27'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 38
+ rgt: 39
+ depth: 3
+ created_at: '2021-08-20T11:59:48.626Z'
+ updated_at: '2021-08-23T18:39:01.526Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '5'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '21'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 17
+ rgt: 22
+ depth: 2
+ created_at: '2021-08-20T11:59:48.401Z'
+ updated_at: '2021-08-23T18:38:39.415Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '28'
+ type: product
+ attributes:
+ name: Suede Biker Jacket
+ description: Nesciunt repudiandae recusandae magnam deleniti perferendis amet. Explicabo inventore perferendis similique ipsa. Modi mollitia adipisci dolores unde laudantium.
+ available_on: '2021-08-20T11:58:52.622Z'
+ deleted_at: null
+ slug: suede-biker-jacket
+ meta_description: null
+ meta_keywords: null
+ created_at: '2021-08-20T11:58:52.668Z'
+ updated_at: '2021-08-20T11:59:42.259Z'
+ promotionable: true
+ meta_title: null
+ discontinue_on: null
+ purchasable: true
+ in_stock: true
+ backorderable: true
+ available: true
+ currency: USD
+ price: '62.99'
+ display_price: $62.99
+ compare_at_price: null
+ display_compare_at_price: null
+ relationships:
+ tax_category:
+ data:
+ id: '1'
+ type: tax_category
+ master_variant:
+ data:
+ id: '28'
+ type: variant
+ default_variant:
+ data:
+ id: '144'
+ type: variant
+ variants:
+ data:
+ - id: '144'
+ type: variant
+ option_types:
+ data:
+ - id: '1'
+ type: option_type
+ - id: '3'
+ type: option_type
+ product_properties:
+ data:
+ - id: '259'
+ type: product_property
+ - id: '260'
+ type: product_property
+ - id: '261'
+ type: product_property
+ - id: '262'
+ type: product_property
+ - id: '263'
+ type: product_property
+ - id: '264'
+ type: product_property
+ - id: '265'
+ type: product_property
+ - id: '266'
+ type: product_property
+ taxons:
+ data:
+ - id: '2'
+ type: taxon
+ - id: '8'
+ type: taxon
+ - id: '26'
+ type: taxon
+ images:
+ data: []
+ - id: '35'
+ type: menu_item
+ attributes:
+ name: Biker Jacket
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Product'
+ code: ''
+ lft: 14
+ rgt: 15
+ depth: 3
+ created_at: '2021-08-20T11:59:49.084Z'
+ updated_at: '2021-08-23T18:44:20.245Z'
+ link: /products/suede-biker-jacket
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '28'
+ type: product
+ children:
+ data: []
+ - id: '9'
+ type: taxon
+ attributes:
+ position: 0
+ name: Skirts
+ permalink: categories/women/skirts
+ lft: 13
+ rgt: 14
+ description: null
+ created_at: '2021-08-20T11:58:48.341Z'
+ updated_at: '2021-08-20T11:59:42.745Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Women -> Skirts
+ seo_title: Skirts
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '3'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '30'
+ type: menu_item
+ attributes:
+ name: Skirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 4
+ rgt: 5
+ depth: 3
+ created_at: '2021-08-20T11:59:48.765Z'
+ updated_at: '2021-08-20T11:59:48.799Z'
+ link: /t/categories/women/skirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '9'
+ type: taxon
+ children:
+ data: []
+ - id: '3'
+ type: menu_item
+ attributes:
+ name: Main Menu
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: null
+ lft: 1
+ rgt: 42
+ depth: 0
+ created_at: '2021-08-20T11:59:47.866Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: true
+ is_child: false
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data: null
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '15'
+ type: menu_item
+ - id: '16'
+ type: menu_item
+ - id: '12'
+ type: taxon
+ attributes:
+ position: 0
+ name: Sweaters
+ permalink: categories/women/sweaters
+ lft: 19
+ rgt: 20
+ description: null
+ created_at: '2021-08-20T11:58:48.497Z'
+ updated_at: '2021-08-20T11:59:43.603Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Women -> Sweaters
+ seo_title: Sweaters
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '3'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '33'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 10
+ rgt: 11
+ depth: 3
+ created_at: '2021-08-20T11:59:48.976Z'
+ updated_at: '2021-08-20T11:59:49.026Z'
+ link: /t/categories/women/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '12'
+ type: taxon
+ children:
+ data: []
+ - id: '10'
+ type: taxon
+ attributes:
+ position: 0
+ name: Dresses
+ permalink: categories/women/dresses
+ lft: 15
+ rgt: 16
+ description: null
+ created_at: '2021-08-20T11:58:48.396Z'
+ updated_at: '2021-08-20T11:59:43.092Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Women -> Dresses
+ seo_title: Dresses
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '3'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '31'
+ type: menu_item
+ attributes:
+ name: Dresses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 6
+ rgt: 7
+ depth: 3
+ created_at: '2021-08-20T11:59:48.823Z'
+ updated_at: '2021-08-20T11:59:48.878Z'
+ link: /t/categories/women/dresses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '10'
+ type: taxon
+ children:
+ data: []
+ - id: '8'
+ type: taxon
+ attributes:
+ position: 0
+ name: Jackets and Coats
+ permalink: categories/men/jackets-and-coats
+ lft: 9
+ rgt: 10
+ description: null
+ created_at: '2021-08-20T11:58:48.291Z'
+ updated_at: '2021-08-20T11:59:42.466Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Men -> Jackets and Coats
+ seo_title: Jackets and Coats
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '2'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '39'
+ type: menu_item
+ attributes:
+ name: Jackets and Coats
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 32
+ rgt: 33
+ depth: 3
+ created_at: '2021-08-20T11:59:49.256Z'
+ updated_at: '2021-08-20T11:59:49.288Z'
+ link: /t/categories/men/jackets-and-coats
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '8'
+ type: taxon
+ children:
+ data: []
+ - id: '5'
+ type: taxon
+ attributes:
+ position: 0
+ name: Shirts
+ permalink: categories/men/shirts
+ lft: 3
+ rgt: 4
+ description: null
+ created_at: '2021-08-20T11:58:48.134Z'
+ updated_at: '2021-08-20T11:59:41.779Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Men -> Shirts
+ seo_title: Shirts
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '2'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '36'
+ type: menu_item
+ attributes:
+ name: Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 26
+ rgt: 27
+ depth: 3
+ created_at: '2021-08-20T11:59:49.126Z'
+ updated_at: '2021-08-20T11:59:49.157Z'
+ link: /t/categories/men/shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '5'
+ type: taxon
+ children:
+ data: []
+ - id: '11'
+ type: taxon
+ attributes:
+ position: 0
+ name: Shirts and Blouses
+ permalink: categories/women/shirts-and-blouses
+ lft: 17
+ rgt: 18
+ description: null
+ created_at: '2021-08-20T11:58:48.447Z'
+ updated_at: '2021-08-20T11:59:43.431Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Women -> Shirts and Blouses
+ seo_title: Shirts and Blouses
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '3'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '32'
+ type: menu_item
+ attributes:
+ name: Skirts and Blouses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 8
+ rgt: 9
+ depth: 3
+ created_at: '2021-08-20T11:59:48.905Z'
+ updated_at: '2021-08-20T11:59:48.951Z'
+ link: /t/categories/women/shirts-and-blouses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '11'
+ type: taxon
+ children:
+ data: []
+ - id: '13'
+ type: taxon
+ attributes:
+ position: 0
+ name: Tops and T-shirts
+ permalink: categories/women/tops-and-t-shirts
+ lft: 21
+ rgt: 22
+ description: null
+ created_at: '2021-08-20T11:58:48.550Z'
+ updated_at: '2021-08-20T11:59:43.853Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Women -> Tops and T-shirts
+ seo_title: Tops and T-shirts
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '3'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '34'
+ type: menu_item
+ attributes:
+ name: Tops and T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 12
+ rgt: 13
+ depth: 3
+ created_at: '2021-08-20T11:59:49.040Z'
+ updated_at: '2021-08-20T11:59:49.070Z'
+ link: /t/categories/women/tops-and-t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '13'
+ type: taxon
+ children:
+ data: []
+ - id: '3'
+ type: taxon
+ attributes:
+ position: 0
+ name: Women
+ permalink: categories/women
+ lft: 12
+ rgt: 25
+ description: null
+ created_at: '2021-08-20T11:58:47.946Z'
+ updated_at: '2021-08-20T11:59:44.202Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 1
+ pretty_name: Categories -> Women
+ seo_title: Women
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ parent:
+ data:
+ id: '1'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data:
+ - id: '9'
+ type: taxon
+ - id: '10'
+ type: taxon
+ - id: '11'
+ type: taxon
+ - id: '12'
+ type: taxon
+ - id: '13'
+ type: taxon
+ - id: '14'
+ type: taxon
+ image:
+ data: null
+ - id: '15'
+ type: menu_item
+ attributes:
+ name: Women
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 2
+ rgt: 23
+ depth: 1
+ created_at: '2021-08-20T11:59:48.171Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: /t/categories/women
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: taxon
+ children:
+ data:
+ - id: '18'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '7'
+ type: taxon
+ attributes:
+ position: 0
+ name: Sweaters
+ permalink: categories/men/sweaters
+ lft: 7
+ rgt: 8
+ description: null
+ created_at: '2021-08-20T11:58:48.240Z'
+ updated_at: '2021-08-20T11:59:42.240Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Men -> Sweaters
+ seo_title: Sweaters
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '2'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '38'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 30
+ rgt: 31
+ depth: 3
+ created_at: '2021-08-20T11:59:49.214Z'
+ updated_at: '2021-08-20T11:59:49.242Z'
+ link: /t/categories/men/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '7'
+ type: taxon
+ children:
+ data: []
+ - id: '6'
+ type: taxon
+ attributes:
+ position: 0
+ name: T-shirts
+ permalink: categories/men/t-shirts
+ lft: 5
+ rgt: 6
+ description: null
+ created_at: '2021-08-20T11:58:48.189Z'
+ updated_at: '2021-08-20T11:59:42.003Z'
+ meta_title: null
+ meta_description: null
+ meta_keywords: null
+ depth: 2
+ pretty_name: Categories -> Men -> T-shirts
+ seo_title: T-shirts
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '2'
+ type: taxon
+ taxonomy:
+ data:
+ id: '1'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data: null
+ - id: '37'
+ type: menu_item
+ attributes:
+ name: T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 28
+ rgt: 29
+ depth: 3
+ created_at: '2021-08-20T11:59:49.171Z'
+ updated_at: '2021-08-20T11:59:49.201Z'
+ link: /t/categories/men/t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '6'
+ type: taxon
+ children:
+ data: []
+ - id: '19'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 25
+ rgt: 34
+ depth: 2
+ created_at: '2021-08-20T11:59:48.341Z'
+ updated_at: '2021-08-20T11:59:49.293Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '36'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 35
+ rgt: 40
+ depth: 2
+ created_at: '2021-08-20T11:59:48.432Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 3
+ rgt: 16
+ depth: 2
+ created_at: '2021-08-20T11:59:48.307Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '30'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ Menu Including Menu Items + Icons:
+ value:
+ data:
+ id: '3'
+ type: menu
+ attributes:
+ name: Main Menu
+ location: header
+ locale: en
+ created_at: '2021-08-20T11:59:47.845Z'
+ updated_at: '2021-08-23T18:44:20.258Z'
+ relationships:
+ menu_items:
+ data:
+ - id: '16'
+ type: menu_item
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ - id: '30'
+ type: menu_item
+ - id: '3'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '36'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '15'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ included:
+ - id: '16'
+ type: menu_item
+ attributes:
+ name: Men
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 24
+ rgt: 41
+ depth: 1
+ created_at: '2021-08-20T11:59:48.217Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: /t/categories/men
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '2'
+ type: taxon
+ children:
+ data:
+ - id: '19'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ - id: '2'
+ type: icon
+ attributes:
+ url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--893986690dd1ca74d862978672d81ce5e323cfb1/promo.png
+ - id: '24'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 18
+ rgt: 19
+ depth: 3
+ created_at: '2021-08-20T11:59:48.502Z'
+ updated_at: '2021-08-23T18:03:28.524Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '2'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '3'
+ type: icon
+ attributes:
+ url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a840645606765f261a45b8ee99b4df3d5cfa2c2c/promo.png
+ - id: '25'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 20
+ rgt: 21
+ depth: 3
+ created_at: '2021-08-20T11:59:48.545Z'
+ updated_at: '2021-08-23T18:38:39.401Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '3'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '21'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '4'
+ type: icon
+ attributes:
+ url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--fd19250b84368a217f7cace0bde51d60ab4ac519/promo.png
+ - id: '26'
+ type: menu_item
+ attributes:
+ name: New Collection
+ subtitle: Summer 2021
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 36
+ rgt: 37
+ depth: 3
+ created_at: '2021-08-20T11:59:48.587Z'
+ updated_at: '2021-08-23T18:38:50.547Z'
+ link: /t/categories/new-collection/summer-2021
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '4'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '24'
+ type: taxon
+ children:
+ data: []
+ - id: '5'
+ type: icon
+ attributes:
+ url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--fc61109d6955289e9c629271018d6a110b242132/promo.png
+ - id: '27'
+ type: menu_item
+ attributes:
+ name: Special Offers
+ subtitle: Get up to 30% off
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: ''
+ lft: 38
+ rgt: 39
+ depth: 3
+ created_at: '2021-08-20T11:59:48.626Z'
+ updated_at: '2021-08-23T18:39:01.526Z'
+ link: /t/categories/special-offers/30-percent-off
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data:
+ id: '5'
+ type: icon
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '22'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '26'
+ type: taxon
+ children:
+ data: []
+ - id: '21'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 17
+ rgt: 22
+ depth: 2
+ created_at: '2021-08-20T11:59:48.401Z'
+ updated_at: '2021-08-23T18:38:39.415Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '24'
+ type: menu_item
+ - id: '25'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ attributes:
+ name: Biker Jacket
+ subtitle: ''
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Product'
+ code: ''
+ lft: 14
+ rgt: 15
+ depth: 3
+ created_at: '2021-08-20T11:59:49.084Z'
+ updated_at: '2021-08-23T18:44:20.245Z'
+ link: /products/suede-biker-jacket
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '28'
+ type: product
+ children:
+ data: []
+ - id: '30'
+ type: menu_item
+ attributes:
+ name: Skirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 4
+ rgt: 5
+ depth: 3
+ created_at: '2021-08-20T11:59:48.765Z'
+ updated_at: '2021-08-20T11:59:48.799Z'
+ link: /t/categories/women/skirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '9'
+ type: taxon
+ children:
+ data: []
+ - id: '3'
+ type: menu_item
+ attributes:
+ name: Main Menu
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: null
+ lft: 1
+ rgt: 42
+ depth: 0
+ created_at: '2021-08-20T11:59:47.866Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: true
+ is_child: false
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data: null
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '15'
+ type: menu_item
+ - id: '16'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 10
+ rgt: 11
+ depth: 3
+ created_at: '2021-08-20T11:59:48.976Z'
+ updated_at: '2021-08-20T11:59:49.026Z'
+ link: /t/categories/women/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '12'
+ type: taxon
+ children:
+ data: []
+ - id: '31'
+ type: menu_item
+ attributes:
+ name: Dresses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 6
+ rgt: 7
+ depth: 3
+ created_at: '2021-08-20T11:59:48.823Z'
+ updated_at: '2021-08-20T11:59:48.878Z'
+ link: /t/categories/women/dresses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '10'
+ type: taxon
+ children:
+ data: []
+ - id: '39'
+ type: menu_item
+ attributes:
+ name: Jackets and Coats
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 32
+ rgt: 33
+ depth: 3
+ created_at: '2021-08-20T11:59:49.256Z'
+ updated_at: '2021-08-20T11:59:49.288Z'
+ link: /t/categories/men/jackets-and-coats
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '8'
+ type: taxon
+ children:
+ data: []
+ - id: '36'
+ type: menu_item
+ attributes:
+ name: Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 26
+ rgt: 27
+ depth: 3
+ created_at: '2021-08-20T11:59:49.126Z'
+ updated_at: '2021-08-20T11:59:49.157Z'
+ link: /t/categories/men/shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '5'
+ type: taxon
+ children:
+ data: []
+ - id: '32'
+ type: menu_item
+ attributes:
+ name: Skirts and Blouses
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 8
+ rgt: 9
+ depth: 3
+ created_at: '2021-08-20T11:59:48.905Z'
+ updated_at: '2021-08-20T11:59:48.951Z'
+ link: /t/categories/women/shirts-and-blouses
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '11'
+ type: taxon
+ children:
+ data: []
+ - id: '34'
+ type: menu_item
+ attributes:
+ name: Tops and T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 12
+ rgt: 13
+ depth: 3
+ created_at: '2021-08-20T11:59:49.040Z'
+ updated_at: '2021-08-20T11:59:49.070Z'
+ link: /t/categories/women/tops-and-t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '18'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '13'
+ type: taxon
+ children:
+ data: []
+ - id: '15'
+ type: menu_item
+ attributes:
+ name: Women
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 2
+ rgt: 23
+ depth: 1
+ created_at: '2021-08-20T11:59:48.171Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: /t/categories/women
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '3'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '3'
+ type: taxon
+ children:
+ data:
+ - id: '18'
+ type: menu_item
+ - id: '21'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ attributes:
+ name: Sweaters
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 30
+ rgt: 31
+ depth: 3
+ created_at: '2021-08-20T11:59:49.214Z'
+ updated_at: '2021-08-20T11:59:49.242Z'
+ link: /t/categories/men/sweaters
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '7'
+ type: taxon
+ children:
+ data: []
+ - id: '37'
+ type: menu_item
+ attributes:
+ name: T-Shirts
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Link
+ linked_resource_type: 'Spree::Taxon'
+ code: null
+ lft: 28
+ rgt: 29
+ depth: 3
+ created_at: '2021-08-20T11:59:49.171Z'
+ updated_at: '2021-08-20T11:59:49.201Z'
+ link: /t/categories/men/t-shirts
+ is_container: false
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '19'
+ type: menu_item
+ linked_resource:
+ data:
+ id: '6'
+ type: taxon
+ children:
+ data: []
+ - id: '19'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 25
+ rgt: 34
+ depth: 2
+ created_at: '2021-08-20T11:59:48.341Z'
+ updated_at: '2021-08-20T11:59:49.293Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '36'
+ type: menu_item
+ - id: '37'
+ type: menu_item
+ - id: '38'
+ type: menu_item
+ - id: '39'
+ type: menu_item
+ - id: '22'
+ type: menu_item
+ attributes:
+ name: Promos
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: promo
+ lft: 35
+ rgt: 40
+ depth: 2
+ created_at: '2021-08-20T11:59:48.432Z'
+ updated_at: '2021-08-23T18:39:01.541Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '16'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '26'
+ type: menu_item
+ - id: '27'
+ type: menu_item
+ - id: '18'
+ type: menu_item
+ attributes:
+ name: Categories
+ subtitle: null
+ destination: null
+ new_window: false
+ item_type: Container
+ linked_resource_type: URL
+ code: category
+ lft: 3
+ rgt: 16
+ depth: 2
+ created_at: '2021-08-20T11:59:48.307Z'
+ updated_at: '2021-08-23T18:44:20.256Z'
+ link: null
+ is_container: true
+ is_root: false
+ is_child: true
+ is_leaf: false
+ relationships:
+ icon:
+ data: null
+ menu:
+ data:
+ id: '3'
+ type: menu
+ parent:
+ data:
+ id: '15'
+ type: menu_item
+ linked_resource:
+ data: null
+ children:
+ data:
+ - id: '30'
+ type: menu_item
+ - id: '31'
+ type: menu_item
+ - id: '32'
+ type: menu_item
+ - id: '33'
+ type: menu_item
+ - id: '34'
+ type: menu_item
+ - id: '35'
+ type: menu_item
+ '404':
+ $ref: '#/components/responses/404NotFound'
+ summary: Get Menu Details
components:
securitySchemes:
bearerAuth:
@@ -7508,6 +15492,171 @@ components:
type: string
example: Show
+ Menu:
+ required:
+ - data
+ properties:
+ data:
+ $ref: '#/components/schemas/MenuAttributesAndRelationships'
+ included:
+ type: array
+ items:
+ anyOf:
+ - $ref: '#/components/schemas/MenuItemAttributesAndRelationships'
+ - $ref: '#/components/schemas/TaxonAttributesAndRelationships'
+ - $ref: '#/components/schemas/ProductAttributesAndRelationships'
+ - $ref: '#/components/schemas/CmsPageAttributesAndRelationships'
+ - $ref: '#/components/schemas/Icon'
+ description: Menu
+ MenusList:
+ description: Menus List
+ type: object
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/MenuAttributesAndRelationships'
+ included:
+ type: array
+ items:
+ anyOf:
+ - $ref: '#/components/schemas/MenuItemAttributesAndRelationships'
+ - $ref: '#/components/schemas/TaxonAttributesAndRelationships'
+ - $ref: '#/components/schemas/ProductAttributesAndRelationships'
+ - $ref: '#/components/schemas/CmsPageAttributesAndRelationships'
+ - $ref: '#/components/schemas/Icon'
+ required:
+ - data
+ MenuAttributesAndRelationships:
+ type: object
+ properties:
+ id:
+ type: string
+ type:
+ type: string
+ attributes:
+ $ref: '#/components/schemas/MenuAttributes'
+ relationships:
+ type: object
+ properties:
+ menu_items:
+ type: object
+ properties:
+ data:
+ type: array
+ items:
+ allOf:
+ - $ref: '#/components/schemas/Relation'
+ MenuAttributes:
+ type: object
+ properties:
+ name:
+ type: string
+ location:
+ type: string
+ locale:
+ type: string
+ MenuItemRelationships:
+ type: object
+ properties:
+ parent:
+ type: object
+ description: Parent node
+ properties:
+ data:
+ $ref: '#/components/schemas/Relation'
+ children:
+ type: object
+ description: List of child nodes
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/Relation'
+ menu:
+ type: object
+ description: Menu associated with this Menu Item
+ properties:
+ data:
+ $ref: '#/components/schemas/Relation'
+ icon:
+ type: object
+ description: Icon associated with Menu Item
+ properties:
+ data:
+ $ref: '#/components/schemas/Relation'
+ linked_resource:
+ type: object
+ description: Linked Resource associated with this Menu Item
+ properties:
+ data:
+ type: array
+ items:
+ $ref: '#/components/schemas/Relation'
+ MenuItemAttributesAndRelationships:
+ properties:
+ id:
+ type: string
+ example: '1'
+ type:
+ type: string
+ default: menu_item
+ attributes:
+ $ref: '#/components/schemas/MenuItemAttributes'
+ relationships:
+ $ref: '#/components/schemas/MenuItemRelationships'
+ MenuItemAttributes:
+ type: object
+ properties:
+ name:
+ type: string
+ subtitle:
+ type: string
+ nullable: true
+ destination:
+ type: string
+ nullable: true
+ new_window:
+ type: boolean
+ item_type:
+ type: string
+ linked_resource_type:
+ type: string
+ code:
+ type: string
+ lft:
+ type: integer
+ rgt:
+ type: integer
+ depth:
+ type: integer
+ link:
+ type: string
+ is_container:
+ type: boolean
+ is_root:
+ type: boolean
+ is_child:
+ type: boolean
+ is_leaf:
+ type: boolean
+ example: true
+ Icon:
+ properties:
+ id:
+ type: string
+ example: '1'
+ type:
+ type: string
+ default: icon
+ attributes:
+ $ref: '#/components/schemas/IconAttributes'
+ IconAttributes:
+ type: object
+ properties:
+ url:
+ type: string
+
parameters:
Id:
@@ -7548,6 +15697,20 @@ components:
```
[More information](https://jsonapi.org/format/#fetching-includes)
+ MenuIncludeParam:
+ name: include
+ in: query
+ description: 'Pass `menu_items` as an include value to fetch the Menu Items associated with each Menu. If you need to fetch the Menu Item Linked Resource, you can pass `menu_items.linked_resource`, additionally, you can pass `menu_items.icon` to fetch the associated Icon for each menu Item'
+ schema:
+ type: string
+ example: menu_items.linked_resource
+ LocaleParam:
+ name: locale
+ in: query
+ description: "Pass `locale` as value to fetch the resources with the matching locale for example `?locale=fr`."
+ schema:
+ type: string
+ example: en
ProductSlug:
name: product_slug
in: path
@@ -7685,6 +15848,13 @@ components:
schema:
type: string
example: home
+ FilterByLocation:
+ name: 'filter[location]'
+ in: query
+ description: Fetch only resources with corresponding Location
+ schema:
+ type: string
+ example: header
SparseFieldsParam:
in: query
name: fields
@@ -7728,5 +15898,6 @@ tags:
- name: Countries
- name: CMS Pages
- name: Order Status
+ - name: Menus
- name: Products
- name: Taxons
diff --git a/api/lib/spree/api/testing_support/v2/platform_contexts.rb b/api/lib/spree/api/testing_support/v2/platform_contexts.rb
index 78d95557cc..5b6208713a 100644
--- a/api/lib/spree/api/testing_support/v2/platform_contexts.rb
+++ b/api/lib/spree/api/testing_support/v2/platform_contexts.rb
@@ -148,7 +148,7 @@ end
# create
shared_examples 'POST create record' do |resource_name, include_example|
- param_name = resource_name.parameterize.to_sym
+ param_name = resource_name.tableize.to_sym
post "Creates #{resource_name.articleize}" do
tags resource_name.pluralize
@@ -166,7 +166,7 @@ end
# update
shared_examples 'PUT update record' do |resource_name, include_example|
- param_name = resource_name.parameterize.to_sym
+ param_name = resource_name.tableize.to_sym
put "Updates #{resource_name.articleize}" do
tags resource_name.pluralize
diff --git a/api/spec/integration/api/v2/platform/menu_items_spec.rb b/api/spec/integration/api/v2/platform/menu_items_spec.rb
new file mode 100644
index 0000000000..aaf806a1e7
--- /dev/null
+++ b/api/spec/integration/api/v2/platform/menu_items_spec.rb
@@ -0,0 +1,57 @@
+require 'swagger_helper'
+
+describe 'Menu Items API', swagger: true do
+ include_context 'Platform API v2'
+
+ resource_name = 'MenuItem'
+ include_example = 'linked_resource'
+
+ let(:menu) { create(:menu, store: store) }
+ let(:id) { create(:menu_item, menu: menu).id }
+ let!(:menu_item_one) { create(:menu_item, menu: menu) }
+ let!(:menu_item_two) { create(:menu_item, menu: menu) }
+ let!(:menu_item_three) { create(:menu_item, menu: menu) }
+
+ let(:records_list) { create_list(:menu_item, 4, menu: menu) }
+ let(:valid_create_param_value) { build(:menu_item, menu: menu).attributes }
+ let(:valid_update_param_value) do
+ {
+ name: 'Menu Item One'
+ }
+ end
+ let(:invalid_param_value) do
+ {
+ name: '',
+ }
+ end
+ let(:valid_update_position_param_value) do
+ {
+ new_parent_id: menu_item_two.id,
+ new_position_idx: 0
+ }
+ end
+
+ include_examples 'CRUD examples', resource_name, include_example
+
+ path '/api/v2/platform/menu_items/{id}/reposition' do
+ patch 'Reposition a Menu Item' do
+ tags resource_name.pluralize
+ security [ bearer_auth: [] ]
+ consumes 'application/json'
+ parameter name: :id, in: :path, type: :string
+ parameter name: :menu_item, in: :body, schema: { '$ref' => '#/components/schemas/menu_item_reposition_params' }
+
+ let(:menu_item) { valid_update_position_param_value }
+ let(:invalid_param_value) do
+ {
+ new_parent_id: 'invalid',
+ new_position_idx: 'invalid'
+ }
+ end
+
+ it_behaves_like 'record updated'
+ it_behaves_like 'record not found', :menu_item
+ it_behaves_like 'authentication failed'
+ end
+ end
+end
diff --git a/api/spec/integration/api/v2/platform/menus_spec.rb b/api/spec/integration/api/v2/platform/menus_spec.rb
new file mode 100644
index 0000000000..7998195a51
--- /dev/null
+++ b/api/spec/integration/api/v2/platform/menus_spec.rb
@@ -0,0 +1,51 @@
+require 'swagger_helper'
+
+describe 'Menus API', swagger: true do
+ include_context 'Platform API v2'
+
+ resource_name = 'Menu'
+ include_example = 'menu_items'
+ filter_example = 'location_eq=header'
+
+ let(:id) { create(:menu, name: 'Main Menu').id }
+ let(:records_list) do
+ build_list(:menu, 2) do |record, i|
+ if i == 0
+ record.name = 'Main Menu'
+ record.location = 'header'
+ else
+ record.name = 'Footer Menu'
+ record.location = 'footer'
+ end
+ record.store = store
+ record.locale = 'en'
+
+ record.save!
+ end
+
+ menu_1 = Spree::Menu.first
+ menu_2 = Spree::Menu.last
+ create(:menu_item, menu: menu_1)
+ create(:menu_item, menu: menu_1)
+ create(:menu_item, menu: menu_2)
+ create(:menu_item, menu: menu_2)
+ end
+ let(:valid_create_param_value) { build(:menu, name: 'Main Menu').attributes }
+ let(:valid_update_param_value) do
+ {
+ name: 'Main Menu',
+ location: 'header',
+ locale: 'en'
+ }
+ end
+ let(:invalid_param_value) do
+ {
+ name: '',
+ locale: '',
+ location: '',
+ store: ''
+ }
+ end
+
+ include_examples 'CRUD examples', resource_name, include_example, filter_example
+end
diff --git a/api/spec/requests/spree/api/v2/platform/menu_items_spec.rb b/api/spec/requests/spree/api/v2/platform/menu_items_spec.rb
index c5e68c627a..ed14173285 100644
--- a/api/spec/requests/spree/api/v2/platform/menu_items_spec.rb
+++ b/api/spec/requests/spree/api/v2/platform/menu_items_spec.rb
@@ -15,20 +15,20 @@ describe 'Platform API v2 Menu Items spec', type: :request do
let(:params) { nil }
before do
- patch '/api/v2/platform/menu_items/reposition', headers: bearer_token, params: params
+ patch "/api/v2/platform/menu_items/#{menu_item_a.id}/reposition", headers: bearer_token, params: params
end
it_behaves_like 'returns 404 HTTP status'
end
context 'with correct params' do
- let(:params) { { moved_item_id: menu_item_a.id, new_parent_id: menu_item_b.id, new_position_idx: 0 } }
+ let(:params) { { new_parent_id: menu_item_b.id, new_position_idx: 0 } }
before do
- patch '/api/v2/platform/menu_items/reposition', headers: bearer_token, params: params
+ patch "/api/v2/platform/menu_items/#{menu_item_a.id}/reposition", headers: bearer_token, params: params
end
- it_behaves_like 'returns 204 HTTP status'
+ it_behaves_like 'returns 200 HTTP status'
it 'can be nested inside another item' do
menu_item_a.reload
@@ -42,13 +42,13 @@ describe 'Platform API v2 Menu Items spec', type: :request do
end
context 'with correct params moving within same item' do
- let(:params) { { moved_item_id: menu_item_a.id, new_parent_id: menu_item_b.id, new_position_idx: 1 } }
+ let(:params) { { new_parent_id: menu_item_b.id, new_position_idx: 1 } }
before do
- patch "/api/v2/platform/menu_items/reposition", headers: bearer_token, params: params
+ patch "/api/v2/platform/menu_items/#{menu_item_a.id}/reposition", headers: bearer_token, params: params
end
- it_behaves_like 'returns 204 HTTP status'
+ it_behaves_like 'returns 200 HTTP status'
it 're-indexes the item' do
menu_item_a.reload
diff --git a/api/spec/requests/spree/api/v2/platform/resources_spec.rb b/api/spec/requests/spree/api/v2/platform/resources_spec.rb
index f193de07cd..99f33ef83c 100644
--- a/api/spec/requests/spree/api/v2/platform/resources_spec.rb
+++ b/api/spec/requests/spree/api/v2/platform/resources_spec.rb
@@ -4,6 +4,7 @@ describe 'Platform API v2 Resources spec', type: :request do
include_context 'API v2 tokens'
include_context 'Platform API v2'
+ let!(:store) { Spree::Store.default }
let(:bearer_token) { { 'Authorization' => valid_authorization } }
let(:resource_params) { {} }
let(:params) { { address: resource_params } }
@@ -311,6 +312,20 @@ describe 'Platform API v2 Resources spec', type: :request do
end
it_behaves_like 'returns auth token errors'
+
+ context '#ensure_current_store' do
+ let(:execute) { post '/api/v2/platform/menus', params: menu_resource_params, headers: bearer_token }
+ let(:menu_resource_params) { { menu: build(:menu, name: 'Ensure-MenuTest', location: 'Header', locale: 'en').attributes.symbolize_keys } }
+
+ before { execute }
+
+ it_behaves_like 'returns 201 HTTP status'
+
+ it 'adds the current store to the newly created resource' do
+ new_menu = Spree::Menu.find_by(name: 'Ensure-MenuTest')
+ expect(new_menu.store).to eql(store)
+ end
+ end
end
describe '#update' do
@@ -411,6 +426,26 @@ describe 'Platform API v2 Resources spec', type: :request do
end
end
+ context '#ensure_current_store' do
+ let!(:product) { create(:product) }
+ let(:execute_product) { put "/api/v2/platform/products/#{product.id}", params: product_params, headers: bearer_token }
+ let(:product_params) do
+ {
+ product: {
+ stores: []
+ }
+ }
+ end
+
+ before { execute_product }
+
+ it_behaves_like 'returns 200 HTTP status'
+
+ it 'will not let you remove the current store from a resource that accepts multiple stores' do
+ expect(product.stores).to contain_exactly(store)
+ end
+ end
+
it_behaves_like 'returns auth token errors'
it_behaves_like 'returns error when record does not exist'
end
diff --git a/api/spec/requests/spree/api/v2/storefront/cms_pages_spec.rb b/api/spec/requests/spree/api/v2/storefront/cms_pages_spec.rb
index 4f1c96de9a..f4f990bdc3 100644
--- a/api/spec/requests/spree/api/v2/storefront/cms_pages_spec.rb
+++ b/api/spec/requests/spree/api/v2/storefront/cms_pages_spec.rb
@@ -17,6 +17,8 @@ describe 'Storefront API v2 CMS Pages spec', type: :request do
shared_examples 'returns proper JSON structure' do
it 'with page attributes and relationships' do
+ page.reload
+
expect(json_response['data'][0]).to have_type('cms_page')
expect(json_response['data'][0]).to have_relationships(:cms_sections)
expect(json_response['data'][0]['id']).to eq(page.id.to_s)
diff --git a/api/spec/requests/spree/api/v2/storefront/menus_spec.rb b/api/spec/requests/spree/api/v2/storefront/menus_spec.rb
index a54a0663c4..2b8ff4eca5 100644
--- a/api/spec/requests/spree/api/v2/storefront/menus_spec.rb
+++ b/api/spec/requests/spree/api/v2/storefront/menus_spec.rb
@@ -75,7 +75,7 @@ describe 'Storefront API v2 Menus spec', type: :request do
have_type('menu_item').
and(
have_id(menu_item.id.to_s).
- and(have_relationship(:image, :menu, :parent, :children, :linked_resource)).
+ and(have_relationship(:icon, :menu, :parent, :children, :linked_resource)).
and(have_jsonapi_attributes(:name, :code, :subtitle, :link, :new_window, :lft, :rgt, :depth, :is_container, :is_root, :is_child, :is_leaf))
)
)
@@ -111,7 +111,7 @@ describe 'Storefront API v2 Menus spec', type: :request do
expect(json_response['data']['attributes']['locale']).to eq menu.locale
expect(json_response['included']).to include(have_type('taxon').and(have_id(taxon.id.to_s)))
- expect(json_response['included']).to include(have_type('menu_item').and(have_id(menu_item.id.to_s).and(have_relationship(:image, :menu, :parent, :children, :linked_resource))))
+ expect(json_response['included']).to include(have_type('menu_item').and(have_id(menu_item.id.to_s).and(have_relationship(:icon, :menu, :parent, :children, :linked_resource))))
end
end
diff --git a/api/spec/serializers/spree/api/v2/platform/icon_serializer_spec.rb b/api/spec/serializers/spree/api/v2/platform/icon_serializer_spec.rb
new file mode 100644
index 0000000000..cce569c914
--- /dev/null
+++ b/api/spec/serializers/spree/api/v2/platform/icon_serializer_spec.rb
@@ -0,0 +1,29 @@
+require 'spec_helper'
+
+describe Spree::Api::V2::Platform::IconSerializer do
+ subject { described_class.new(icon) }
+
+ let(:menu) { create(:menu) }
+ let(:menu_item) { create(:menu_item, menu: menu) }
+ let(:icon) { create(:icon, viewable: menu_item) }
+
+ it { expect(subject.serializable_hash).to be_kind_of(Hash) }
+
+ it do
+ expect(subject.serializable_hash).to eq(
+ {
+ data: {
+ id: icon.id.to_s,
+ type: :icon,
+ attributes: {
+ url: Rails.application.routes.url_helpers.polymorphic_url(icon.attachment, only_path: true)
+ }
+ }
+ }
+ )
+ end
+
+ it { expect(subject.serializable_hash[:data][:id]).to be_kind_of(String) }
+ it { expect(subject.serializable_hash[:data][:type]).to be(:icon) }
+ it { expect(subject.serializable_hash[:data][:attributes][:url]).to include('thinking-cat.jpg') }
+end
diff --git a/api/spec/serializers/spree/api/v2/platform/menu_item_serializer_spec.rb b/api/spec/serializers/spree/api/v2/platform/menu_item_serializer_spec.rb
index e8986e94ce..97f8ca991d 100644
--- a/api/spec/serializers/spree/api/v2/platform/menu_item_serializer_spec.rb
+++ b/api/spec/serializers/spree/api/v2/platform/menu_item_serializer_spec.rb
@@ -21,13 +21,18 @@ describe Spree::Api::V2::Platform::MenuItemSerializer do
id: menu_item.id.to_s,
type: :menu_item,
attributes: {
+ code: nil,
name: menu_item.name,
subtitle: menu_item.subtitle,
destination: menu_item.destination,
new_window: menu_item.new_window,
item_type: menu_item.item_type,
+ is_child: menu_item.child?,
+ is_container: menu_item.container?,
+ is_leaf: menu_item.leaf?,
+ is_root: menu_item.root?,
+ link: menu_item.link,
linked_resource_type: menu_item.linked_resource_type,
- code: menu_item.code,
lft: menu_item.lft,
rgt: menu_item.rgt,
depth: menu_item.depth,
@@ -35,10 +40,10 @@ describe Spree::Api::V2::Platform::MenuItemSerializer do
updated_at: menu_item.updated_at
},
relationships: {
- image: {
+ icon: {
data: {
id: menu_item.icon.id.to_s,
- type: :image
+ type: :icon
}
},
menu: {
@@ -77,3 +82,4 @@ describe Spree::Api::V2::Platform::MenuItemSerializer do
)
end
end
+
diff --git a/api/spec/serializers/spree/api/v2/storefront/icon_serializer_spec.rb b/api/spec/serializers/spree/api/v2/storefront/icon_serializer_spec.rb
new file mode 100644
index 0000000000..fc546f07a4
--- /dev/null
+++ b/api/spec/serializers/spree/api/v2/storefront/icon_serializer_spec.rb
@@ -0,0 +1,29 @@
+require 'spec_helper'
+
+describe Spree::V2::Storefront::IconSerializer do
+ subject { described_class.new(icon) }
+
+ let(:menu) { create(:menu) }
+ let(:menu_item) { create(:menu_item, menu: menu) }
+ let(:icon) { create(:icon, viewable: menu_item) }
+
+ it { expect(subject.serializable_hash).to be_kind_of(Hash) }
+
+ it do
+ expect(subject.serializable_hash).to eq(
+ {
+ data: {
+ id: icon.id.to_s,
+ type: :icon,
+ attributes: {
+ url: Rails.application.routes.url_helpers.polymorphic_url(icon.attachment, only_path: true)
+ }
+ }
+ }
+ )
+ end
+
+ it { expect(subject.serializable_hash[:data][:id]).to be_kind_of(String) }
+ it { expect(subject.serializable_hash[:data][:type]).to be(:icon) }
+ it { expect(subject.serializable_hash[:data][:attributes][:url]).to include('thinking-cat.jpg') }
+end
diff --git a/api/spec/serializers/spree/api/v2/storefront/menu_item_serializer_spec.rb b/api/spec/serializers/spree/api/v2/storefront/menu_item_serializer_spec.rb
new file mode 100644
index 0000000000..66ce9b760d
--- /dev/null
+++ b/api/spec/serializers/spree/api/v2/storefront/menu_item_serializer_spec.rb
@@ -0,0 +1,81 @@
+require 'spec_helper'
+
+describe Spree::V2::Storefront::MenuItemSerializer do
+ subject { described_class.new(menu_item) }
+
+ let(:menu) { create(:menu) }
+ let(:menu_item) { create(:menu_item, menu: menu, linked_resource: create(:taxon)) }
+ let!(:children) do
+ [
+ create(:menu_item, parent_id: menu_item.id, menu: menu),
+ create(:menu_item, parent_id: menu_item.id, menu: menu)
+ ]
+ end
+
+ it { expect(subject.serializable_hash).to be_kind_of(Hash) }
+
+ it do
+ expect(subject.serializable_hash).to eq(
+ {
+ data: {
+ id: menu_item.id.to_s,
+ type: :menu_item,
+ attributes: {
+ code: nil,
+ name: menu_item.name,
+ subtitle: menu_item.subtitle,
+ destination: menu_item.destination,
+ new_window: menu_item.new_window,
+ item_type: menu_item.item_type,
+ is_child: menu_item.child?,
+ is_container: menu_item.container?,
+ is_leaf: menu_item.leaf?,
+ is_root: menu_item.root?,
+ link: menu_item.link,
+ lft: menu_item.lft,
+ rgt: menu_item.rgt,
+ depth: menu_item.depth
+ },
+ relationships: {
+ icon: {
+ data: {
+ id: menu_item.icon.id.to_s,
+ type: :icon
+ }
+ },
+ menu: {
+ data: {
+ id: menu_item.menu.id.to_s,
+ type: :menu
+ }
+ },
+ parent: {
+ data: {
+ id: menu_item.menu.root.id.to_s,
+ type: :menu_item
+ }
+ },
+ linked_resource: {
+ data: {
+ id: menu_item.linked_resource.id.to_s,
+ type: :taxon
+ }
+ },
+ children: {
+ data: [
+ {
+ id: menu_item.children.first.id.to_s,
+ type: :menu_item
+ },
+ {
+ id: menu_item.children.second.id.to_s,
+ type: :menu_item
+ }
+ ]
+ }
+ }
+ }
+ }
+ )
+ end
+end
diff --git a/api/spec/serializers/spree/api/v2/storefront/menu_serializer_spec.rb b/api/spec/serializers/spree/api/v2/storefront/menu_serializer_spec.rb
new file mode 100644
index 0000000000..763d8b561e
--- /dev/null
+++ b/api/spec/serializers/spree/api/v2/storefront/menu_serializer_spec.rb
@@ -0,0 +1,35 @@
+require 'spec_helper'
+
+describe Spree::V2::Storefront::MenuSerializer do
+ subject { described_class.new(menu) }
+
+ let(:menu) { create(:menu) }
+
+ it { expect(subject.serializable_hash).to be_kind_of(Hash) }
+
+ it do
+ expect(subject.serializable_hash).to eq(
+ {
+ data: {
+ id: menu.id.to_s,
+ type: :menu,
+ attributes: {
+ name: menu.name,
+ location: menu.location,
+ locale: menu.locale
+ },
+ relationships: {
+ menu_items: {
+ data: [
+ {
+ id: menu.menu_items.first.id.to_s,
+ type: :menu_item
+ }
+ ]
+ }
+ }
+ }
+ }
+ )
+ end
+end
diff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rb
index 6ebdaa3b70..dddfdfaef1 100644
--- a/api/spec/swagger_helper.rb
+++ b/api/spec/swagger_helper.rb
@@ -134,6 +134,37 @@ RSpec.configure do |config|
},
required: %w[name taxonomy_id]
},
+ menu_params: {
+ type: :object,
+ properties: {
+ name: { type: :string },
+ location: { type: :string },
+ locale: { type: :string }
+ },
+ required: %w[name location locale]
+ },
+ menu_item_params: {
+ type: :object,
+ properties: {
+ name: { type: :string },
+ code: { type: :string },
+ subtitle: { type: :string },
+ destination: { type: :string },
+ new_window: { type: :boolean },
+ item_type: { type: :string },
+ linked_resource_type: {type: :string},
+ linked_resource_id: {type: :integer}
+ },
+ required: %w[name]
+ },
+ menu_item_reposition_params: {
+ type: :object,
+ properties: {
+ new_parent_id: {type: :integer},
+ new_position_idx: {type: :integer}
+ },
+ required: %w[name]
+ },
resources_list: {
type: :object,
properties: {
diff --git a/backend/app/assets/javascripts/spree/backend/menus/menu.es6 b/backend/app/assets/javascripts/spree/backend/menus/menu.es6
index c7f776e454..f9e6f8c737 100644
--- a/backend/app/assets/javascripts/spree/backend/menus/menu.es6
+++ b/backend/app/assets/javascripts/spree/backend/menus/menu.es6
@@ -29,12 +29,11 @@ document.addEventListener('DOMContentLoaded', function() {
function handleMenuItemMove(evt) {
const data = {
- moved_item_id: parseInt(evt.item.dataset.itemId, 10),
new_parent_id: parseInt(evt.to.dataset.parentId, 10) || null,
new_position_idx: parseInt(evt.newIndex, 10)
}
- fetch(Spree.routes.menus_items_api_v2 + '/reposition', {
+ fetch(`${Spree.routes.menus_items_api_v2}/${evt.item.dataset.itemId}/reposition`, {
method: 'PATCH',
headers: {
Authorization: 'Bearer ' + OAUTH_TOKEN,
diff --git a/core/lib/spree/permitted_attributes.rb b/core/lib/spree/permitted_attributes.rb
index b34e424367..83e4d7cd27 100644
--- a/core/lib/spree/permitted_attributes.rb
+++ b/core/lib/spree/permitted_attributes.rb
@@ -8,6 +8,8 @@ module Spree
:image_attributes,
:inventory_unit_attributes,
:line_item_attributes,
+ :menu_attributes,
+ :menu_item_attributes,
:option_type_attributes,
:option_value_attributes,
:payment_attributes,
@@ -62,6 +64,11 @@ module Spree
@@line_item_attributes = [:id, :variant_id, :quantity]
+ @@menu_attributes = [:name, :locale, :location]
+
+ @@menu_item_attributes = [:name, :subtite, :destination, :new_window, :item_type,
+ :linked_resource_type, :linked_resource_id, :code, :menu_id]
+
@@option_type_attributes = [:name, :presentation, :option_values_attributes]
@@option_value_attributes = [:name, :presentation]