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.

Improve menu_item And Platform API Docs (#11455)

Matthew Kennedya8ffb7598efd
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 359c1be284..33b9afd625 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
@@ -4,20 +4,15 @@ module Spree
module Platform
class MenuItemsController < ResourceController
def reposition
- spree_authorize! :update, @moved_item if spree_current_user.present?
+ spree_authorize! :update, resource if spree_current_user.present?
- @moved_item = scope.find(params[:id])
- @new_parent = scope.find(params[:new_parent_id])
- new_index = params[:new_position_idx].to_i
+ @new_parent = scope.find(permitted_resource_params[:new_parent_id])
+ new_index = permitted_resource_params[:new_position_idx].to_i
- if @moved_item && @new_parent && new_index
- @moved_item.move_to_child_with_index(@new_parent, new_index)
+ if resource.move_to_child_with_index(@new_parent, new_index)
+ render_serialized_payload { serialize_resource(resource) }
else
- head :bad_request
- end
-
- if @moved_item.save
- render_serialized_payload { serialize_resource(@moved_item) }
+ render_error_payload(resource.errors)
end
end
@@ -26,6 +21,10 @@ module Spree
def model_class
Spree::MenuItem
end
+
+ def spree_permitted_attributes
+ super + [:new_parent_id, :new_position_idx]
+ end
end
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 ebd8af369d..e568dd4fab 100644
--- a/api/app/controllers/spree/api/v2/platform/menus_controller.rb
+++ b/api/app/controllers/spree/api/v2/platform/menus_controller.rb
@@ -12,10 +12,6 @@ module Spree
def scope_includes
[:menu_items]
end
-
- def scope
- current_store.menus
- end
end
end
end
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index e58ad7f40c..9d6ec7ac08 100644
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@ -70,8 +70,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-01T16:15:03.922Z'
- updated_at: '2021-11-01T16:15:03.922Z'
+ created_at: '2021-11-01T22:35:35.844Z'
+ updated_at: '2021-11-01T22:35:35.844Z'
deleted_at:
label:
relationships:
@@ -98,8 +98,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-01T16:15:03.926Z'
- updated_at: '2021-11-01T16:15:03.926Z'
+ created_at: '2021-11-01T22:35:35.847Z'
+ updated_at: '2021-11-01T22:35:35.847Z'
deleted_at:
label:
relationships:
@@ -173,8 +173,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-01T16:15:04.134Z'
- updated_at: '2021-11-01T16:15:04.134Z'
+ created_at: '2021-11-01T22:35:36.055Z'
+ updated_at: '2021-11-01T22:35:36.055Z'
deleted_at:
label:
relationships:
@@ -268,8 +268,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-01T16:15:04.177Z'
- updated_at: '2021-11-01T16:15:04.177Z'
+ created_at: '2021-11-01T22:35:36.093Z'
+ updated_at: '2021-11-01T22:35:36.093Z'
deleted_at:
label:
relationships:
@@ -348,8 +348,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-01T16:15:04.235Z'
- updated_at: '2021-11-01T16:15:04.243Z'
+ created_at: '2021-11-01T22:35:36.157Z'
+ updated_at: '2021-11-01T22:35:36.165Z'
deleted_at:
label:
relationships:
@@ -493,8 +493,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-01T16:15:04.480Z'
- updated_at: '2021-11-01T16:15:04.480Z'
+ created_at: '2021-11-01T22:35:36.396Z'
+ updated_at: '2021-11-01T22:35:36.396Z'
state: open
included: false
display_amount: "$100.00"
@@ -520,8 +520,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-01T16:15:04.502Z'
- updated_at: '2021-11-01T16:15:04.502Z'
+ created_at: '2021-11-01T22:35:36.419Z'
+ updated_at: '2021-11-01T22:35:36.419Z'
state: open
included: false
display_amount: "$100.00"
@@ -594,8 +594,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-01T16:15:04.838Z'
- updated_at: '2021-11-01T16:15:04.838Z'
+ created_at: '2021-11-01T22:35:36.761Z'
+ updated_at: '2021-11-01T22:35:36.761Z'
state: open
included: false
display_amount: "$100.00"
@@ -677,8 +677,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-01T16:15:04.951Z'
- updated_at: '2021-11-01T16:15:04.956Z'
+ created_at: '2021-11-01T22:35:36.875Z'
+ updated_at: '2021-11-01T22:35:36.880Z'
state: open
included: false
display_amount: "$1.00"
@@ -756,8 +756,8 @@ paths:
label: New label
mandatory:
eligible: true
- created_at: '2021-11-01T16:15:05.142Z'
- updated_at: '2021-11-01T16:15:05.155Z'
+ created_at: '2021-11-01T22:35:37.076Z'
+ updated_at: '2021-11-01T22:35:37.089Z'
state: open
included: false
display_amount: "$15.00"
@@ -897,8 +897,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-01T16:15:05.678Z'
- updated_at: '2021-11-01T16:15:05.678Z'
+ created_at: '2021-11-01T22:35:37.616Z'
+ updated_at: '2021-11-01T22:35:37.616Z'
relationships:
product:
data:
@@ -912,8 +912,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-01T16:15:05.758Z'
- updated_at: '2021-11-01T16:15:05.758Z'
+ created_at: '2021-11-01T22:35:37.695Z'
+ updated_at: '2021-11-01T22:35:37.695Z'
relationships:
product:
data:
@@ -974,8 +974,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-01T16:15:06.218Z'
- updated_at: '2021-11-01T16:15:06.218Z'
+ created_at: '2021-11-01T22:35:38.155Z'
+ updated_at: '2021-11-01T22:35:38.155Z'
relationships:
product:
data:
@@ -1042,8 +1042,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-01T16:15:06.387Z'
- updated_at: '2021-11-01T16:15:06.387Z'
+ created_at: '2021-11-01T22:35:38.328Z'
+ updated_at: '2021-11-01T22:35:38.328Z'
relationships:
product:
data:
@@ -1109,8 +1109,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-01T16:15:06.675Z'
- updated_at: '2021-11-01T16:15:06.675Z'
+ created_at: '2021-11-01T22:35:38.636Z'
+ updated_at: '2021-11-01T22:35:38.636Z'
relationships:
product:
data:
@@ -1232,8 +1232,8 @@ paths:
type: classification
attributes:
position: 2
- created_at: '2021-11-01T16:15:07.436Z'
- updated_at: '2021-11-01T16:15:07.460Z'
+ created_at: '2021-11-01T22:35:39.423Z'
+ updated_at: '2021-11-01T22:35:39.448Z'
relationships:
product:
data:
@@ -1332,35 +1332,35 @@ paths:
- id: '1'
type: cms_page
attributes:
- title: Sequi ipsa ipsum perferendis suscipit.
+ title: Deserunt eum voluptate facilis minus eveniet facere.
meta_title:
content:
meta_description:
visible: true
- slug: sequi-ipsa-ipsum-perferendis-suscipit
+ slug: deserunt-eum-voluptate-facilis-minus-eveniet-facere
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-01T16:15:07.808Z'
- updated_at: '2021-11-01T16:15:07.808Z'
+ created_at: '2021-11-01T22:35:39.804Z'
+ updated_at: '2021-11-01T22:35:39.804Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Ab labore corrupti at laboriosam officiis laborum provident
- veritatis.
+ title: Beatae dolor illum ea necessitatibus quaerat neque
+ excepturi.
meta_title:
content:
meta_description:
visible: true
- slug: ab-labore-corrupti-at-laboriosam-officiis-laborum-provident-veritatis
+ slug: beatae-dolor-illum-ea-necessitatibus-quaerat-neque-excepturi
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-01T16:15:07.812Z'
- updated_at: '2021-11-01T16:15:07.812Z'
+ created_at: '2021-11-01T22:35:39.808Z'
+ updated_at: '2021-11-01T22:35:39.808Z'
relationships:
cms_sections:
data: []
@@ -1414,17 +1414,17 @@ paths:
id: '5'
type: cms_page
attributes:
- title: Id eveniet sit deleniti facilis possimus error.
+ title: Modi veritatis animi aperiam sint.
meta_title:
content:
meta_description:
visible: true
- slug: id-eveniet-sit-deleniti-facilis-possimus-error
+ slug: modi-veritatis-animi-aperiam-sint
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-01T16:15:07.890Z'
- updated_at: '2021-11-01T16:15:07.890Z'
+ created_at: '2021-11-01T22:35:39.887Z'
+ updated_at: '2021-11-01T22:35:39.887Z'
relationships:
cms_sections:
data: []
@@ -1484,17 +1484,17 @@ paths:
id: '6'
type: cms_page
attributes:
- title: Tempore dolores accusamus velit harum.
+ title: Laudantium perferendis modi non inventore.
meta_title:
content:
meta_description:
visible: true
- slug: tempore-dolores-accusamus-velit-harum
+ slug: laudantium-perferendis-modi-non-inventore
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-01T16:15:07.928Z'
- updated_at: '2021-11-01T16:15:07.928Z'
+ created_at: '2021-11-01T22:35:39.930Z'
+ updated_at: '2021-11-01T22:35:39.930Z'
relationships:
cms_sections:
data: []
@@ -1558,12 +1558,12 @@ paths:
content:
meta_description:
visible: true
- slug: optio-illum-veniam-unde-repellendus-tenetur-vitae-harum-totam
+ slug: sed-distinctio-quis-saepe-eligendi-nam-perspiciatis-nulla
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-01T16:15:07.993Z'
- updated_at: '2021-11-01T16:15:08.002Z'
+ created_at: '2021-11-01T22:35:39.992Z'
+ updated_at: '2021-11-01T22:35:40.000Z'
relationships:
cms_sections:
data: []
@@ -1689,7 +1689,7 @@ paths:
- id: '1'
type: cms_section
attributes:
- name: Necessitatibus iste in fugit cumque.
+ name: Perferendis velit voluptatem corporis saepe.
content: {}
settings:
gutters: No Gutters
@@ -1698,8 +1698,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-11-01T16:15:08.165Z'
- updated_at: '2021-11-01T16:15:08.165Z'
+ created_at: '2021-11-01T22:35:40.168Z'
+ updated_at: '2021-11-01T22:35:40.168Z'
relationships:
cms_page:
data:
@@ -1710,7 +1710,7 @@ paths:
- id: '2'
type: cms_section
attributes:
- name: Quibusdam nihil nesciunt maxime accusantium vitae.
+ name: Quos sed impedit tempore sequi eligendi.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@ -1722,8 +1722,8 @@ paths:
type: Spree::Cms::Sections::ImageGallery
position: 2
linked_resource_type:
- created_at: '2021-11-01T16:15:08.168Z'
- updated_at: '2021-11-01T16:15:08.168Z'
+ created_at: '2021-11-01T22:35:40.172Z'
+ updated_at: '2021-11-01T22:35:40.172Z'
relationships:
cms_page:
data:
@@ -1734,7 +1734,8 @@ paths:
- id: '3'
type: cms_section
attributes:
- name: Ab soluta laboriosam qui repudiandae voluptas neque.
+ name: Praesentium assumenda ratione odit est harum suscipit
+ mollitia eum.
content: {}
settings:
gutters: No Gutters
@@ -1743,8 +1744,8 @@ paths:
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-11-01T16:15:08.176Z'
- updated_at: '2021-11-01T16:15:08.176Z'
+ created_at: '2021-11-01T22:35:40.180Z'
+ updated_at: '2021-11-01T22:35:40.180Z'
relationships:
cms_page:
data:
@@ -1755,8 +1756,8 @@ paths:
- id: '4'
type: cms_section
attributes:
- name: Assumenda aperiam veniam enim minima sed magni sunt
- similique.
+ name: Similique aliquid vel suscipit modi maiores at earum
+ ipsam.
content: {}
settings:
gutters: No Gutters
@@ -1765,8 +1766,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-01T16:15:08.184Z'
- updated_at: '2021-11-01T16:15:08.184Z'
+ created_at: '2021-11-01T22:35:40.187Z'
+ updated_at: '2021-11-01T22:35:40.187Z'
relationships:
cms_page:
data:
@@ -1779,7 +1780,7 @@ paths:
- id: '5'
type: cms_section
attributes:
- name: Exercitationem placeat ducimus cumque ipsa eius cum.
+ name: Distinctio officiis quas necessitatibus laudantium incidunt.
content: {}
settings:
gutters: No Gutters
@@ -1788,8 +1789,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-11-01T16:15:08.191Z'
- updated_at: '2021-11-01T16:15:08.191Z'
+ created_at: '2021-11-01T22:35:40.193Z'
+ updated_at: '2021-11-01T22:35:40.193Z'
relationships:
cms_page:
data:
@@ -1849,7 +1850,7 @@ paths:
id: '14'
type: cms_section
attributes:
- name: Itaque soluta exercitationem id minus dolore ab.
+ name: Facilis quam quibusdam perspiciatis culpa id ullam possimus.
content: {}
settings:
gutters: No Gutters
@@ -1858,8 +1859,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-01T16:15:08.343Z'
- updated_at: '2021-11-01T16:15:08.343Z'
+ created_at: '2021-11-01T22:35:40.347Z'
+ updated_at: '2021-11-01T22:35:40.347Z'
relationships:
cms_page:
data:
@@ -1925,7 +1926,8 @@ paths:
id: '21'
type: cms_section
attributes:
- name: Aliquid velit illo rem eaque ullam.
+ name: Sed nostrum eligendi labore tenetur beatae ipsam quibusdam
+ nesciunt.
content: {}
settings:
gutters: No Gutters
@@ -1934,8 +1936,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-01T16:15:08.477Z'
- updated_at: '2021-11-01T16:15:08.477Z'
+ created_at: '2021-11-01T22:35:40.482Z'
+ updated_at: '2021-11-01T22:35:40.482Z'
relationships:
cms_page:
data:
@@ -2009,8 +2011,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Product
- created_at: '2021-11-01T16:15:08.745Z'
- updated_at: '2021-11-01T16:15:08.757Z'
+ created_at: '2021-11-01T22:35:40.760Z'
+ updated_at: '2021-11-01T22:35:40.772Z'
relationships:
cms_page:
data:
@@ -2124,9 +2126,9 @@ paths:
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-11-01T16:15:09.217Z'
+ updated_at: '2021-11-01T22:35:41.195Z'
zipcode_required: true
- created_at: '2021-11-01T16:15:09.217Z'
+ created_at: '2021-11-01T22:35:41.195Z'
relationships:
states:
data: []
@@ -2139,9 +2141,9 @@ paths:
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-11-01T16:15:09.222Z'
+ updated_at: '2021-11-01T22:35:41.201Z'
zipcode_required: true
- created_at: '2021-11-01T16:15:09.222Z'
+ created_at: '2021-11-01T22:35:41.201Z'
relationships:
states:
data: []
@@ -2154,9 +2156,9 @@ paths:
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-11-01T16:15:09.225Z'
+ updated_at: '2021-11-01T22:35:41.203Z'
zipcode_required: true
- created_at: '2021-11-01T16:15:09.225Z'
+ created_at: '2021-11-01T22:35:41.203Z'
relationships:
states:
data: []
@@ -2215,9 +2217,9 @@ paths:
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-11-01T16:15:09.272Z'
+ updated_at: '2021-11-01T22:35:41.252Z'
zipcode_required: true
- created_at: '2021-11-01T16:15:09.272Z'
+ created_at: '2021-11-01T22:35:41.252Z'
relationships:
states:
data: []
@@ -2275,7 +2277,7 @@ paths:
- id: '1'
type: digital_link
attributes:
- token: Zj7hsmXmii7dM2UD6xVcpUjG
+ token: EF8LtnCnhuxAV1wLc2TqfTGD
access_counter: 0
relationships:
digital:
@@ -2289,7 +2291,7 @@ paths:
- id: '2'
type: digital_link
attributes:
- token: HtEFjzNuVqN6j5WUF57M7bjB
+ token: KyC6KpSscTbrVk95MMRt6oYV
access_counter: 0
relationships:
digital:
@@ -2343,7 +2345,7 @@ paths:
id: '5'
type: digital_link
attributes:
- token: AyHGXBxouVACPr7icfFGa7ZA
+ token: UVwvrYvEdRipbEgUzii4Bigi
access_counter: 0
relationships:
digital:
@@ -2406,7 +2408,7 @@ paths:
id: '6'
type: digital_link
attributes:
- token: VL22EXnhQBx6VSWP4KV3JoX5
+ token: kvBzSVXF8GAKG7P8MUNRGkp9
access_counter: 0
relationships:
digital:
@@ -2465,7 +2467,7 @@ paths:
id: '8'
type: digital_link
attributes:
- token: bR4yj43Y45tQ7fQc95ZkHz2o
+ token: LU6TfUozEckSE9EL6PtWCYcM
access_counter: 0
relationships:
digital:
@@ -2580,7 +2582,7 @@ paths:
id: '13'
type: digital_link
attributes:
- token: e94qfYCroztiknaz9crvxMbU
+ token: iPTgeEiEJopEihv1GsZZci1g
access_counter: 0
relationships:
digital:
@@ -2652,7 +2654,7 @@ paths:
- id: '15'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c47dbf57af644f5ee532f1a0e204a3f2877dad4c/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7068626d70aa8c180fd961f26cdd4e449e7b34a7/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2664,7 +2666,7 @@ paths:
- id: '16'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5966e723deb197b98be65665b695881d9bf77ce6/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0a04fbab30a7c6e2c4e9f9c2e8bf0c1095244c2c/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2676,7 +2678,7 @@ paths:
- id: '17'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--128cb27a673c4157d05f7e8836100b74c4d841dd/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--23a31a7317ef6db70f5395a70c05320a3fb149ac/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2735,7 +2737,7 @@ paths:
id: '24'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9809c0317f79dda41a81c0af07fddd7da97abd8f/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--11b46e9ec4ad663736ae938d13056a21907a3884/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2800,7 +2802,7 @@ paths:
id: '28'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--efba9825dfa43ed3c60de95598803a804aee86ff/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--396ec1b385c56f8b7b18fbc6420046ad9a4015a9/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2864,7 +2866,7 @@ paths:
id: '36'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--b476a895c0bc6c1c789ca9f1206cf5a829871e60/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ff4acd7b7f42a036bece89f343c26bf7b91af26b/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2997,8 +2999,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-01T16:15:16.594Z'
- updated_at: '2021-11-01T16:15:16.602Z'
+ created_at: '2021-11-01T22:35:48.836Z'
+ updated_at: '2021-11-01T22:35:48.845Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3044,8 +3046,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-01T16:15:16.633Z'
- updated_at: '2021-11-01T16:15:16.637Z'
+ created_at: '2021-11-01T22:35:48.878Z'
+ updated_at: '2021-11-01T22:35:48.883Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3138,8 +3140,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-01T16:15:16.862Z'
- updated_at: '2021-11-01T16:15:16.908Z'
+ created_at: '2021-11-01T22:35:49.109Z'
+ updated_at: '2021-11-01T22:35:49.152Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3241,8 +3243,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-01T16:15:17.051Z'
- updated_at: '2021-11-01T16:15:17.058Z'
+ created_at: '2021-11-01T22:35:49.300Z'
+ updated_at: '2021-11-01T22:35:49.307Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3340,8 +3342,8 @@ paths:
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-11-01T16:15:17.283Z'
- updated_at: '2021-11-01T16:15:17.322Z'
+ created_at: '2021-11-01T22:35:49.537Z'
+ updated_at: '2021-11-01T22:35:49.574Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3391,10 +3393,10 @@ paths:
examples:
Example:
value:
- error: 'Quantity selected of "Product #130 - 8962" is not available.'
+ error: 'Quantity selected of "Product #130 - 5006" is not available.'
errors:
quantity:
- - 'selected of "Product #130 - 8962" is not available.'
+ - 'selected of "Product #130 - 5006" is not available.'
schema:
"$ref": "#/components/schemas/validation_errors"
'404':
@@ -3483,13 +3485,13 @@ 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: linked_resource
+ example: menu,icon,parent,children,linked_resource
schema:
type: string
- - name: filter[menu_item_name_eq]
+ - name: filter[name_eq]
in: query
description: ''
- example: Women
+ example: T-Shirts
schema:
type: string
responses:
@@ -3514,8 +3516,8 @@ paths:
lft: 2
rgt: 3
depth: 1
- created_at: '2021-11-01T16:15:17.997Z'
- updated_at: '2021-11-01T16:15:18.001Z'
+ created_at: '2021-11-01T22:35:50.347Z'
+ updated_at: '2021-11-01T22:35:50.352Z'
link:
is_container: false
is_root: false
@@ -3551,8 +3553,8 @@ paths:
lft: 4
rgt: 5
depth: 1
- created_at: '2021-11-01T16:15:18.061Z'
- updated_at: '2021-11-01T16:15:18.066Z'
+ created_at: '2021-11-01T22:35:50.412Z'
+ updated_at: '2021-11-01T22:35:50.417Z'
link:
is_container: false
is_root: false
@@ -3588,8 +3590,8 @@ paths:
lft: 6
rgt: 7
depth: 1
- created_at: '2021-11-01T16:15:18.122Z'
- updated_at: '2021-11-01T16:15:18.127Z'
+ created_at: '2021-11-01T22:35:50.484Z'
+ updated_at: '2021-11-01T22:35:50.488Z'
link:
is_container: false
is_root: false
@@ -3625,8 +3627,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-01T16:15:18.185Z'
- updated_at: '2021-11-01T16:15:18.190Z'
+ created_at: '2021-11-01T22:35:50.547Z'
+ updated_at: '2021-11-01T22:35:50.551Z'
link:
is_container: false
is_root: false
@@ -3662,8 +3664,8 @@ paths:
lft: 10
rgt: 11
depth: 1
- created_at: '2021-11-01T16:15:18.248Z'
- updated_at: '2021-11-01T16:15:18.252Z'
+ created_at: '2021-11-01T22:35:50.613Z'
+ updated_at: '2021-11-01T22:35:50.618Z'
link:
is_container: false
is_root: false
@@ -3699,8 +3701,8 @@ paths:
lft: 12
rgt: 13
depth: 1
- created_at: '2021-11-01T16:15:18.311Z'
- updated_at: '2021-11-01T16:15:18.315Z'
+ created_at: '2021-11-01T22:35:50.678Z'
+ updated_at: '2021-11-01T22:35:50.682Z'
link:
is_container: false
is_root: false
@@ -3736,8 +3738,8 @@ paths:
lft: 14
rgt: 15
depth: 1
- created_at: '2021-11-01T16:15:18.372Z'
- updated_at: '2021-11-01T16:15:18.376Z'
+ created_at: '2021-11-01T22:35:50.741Z'
+ updated_at: '2021-11-01T22:35:50.745Z'
link:
is_container: false
is_root: false
@@ -3763,7 +3765,8 @@ paths:
- id: '1'
type: menu_item
attributes:
- name: Quasi quos rem ratione optio error ipsam provident.
+ name: Quod perferendis tempora doloribus voluptas necessitatibus
+ mollitia.
subtitle:
destination:
new_window: false
@@ -3773,8 +3776,8 @@ paths:
lft: 1
rgt: 16
depth: 0
- created_at: '2021-11-01T16:15:17.934Z'
- updated_at: '2021-11-01T16:15:18.396Z'
+ created_at: '2021-11-01T22:35:50.280Z'
+ updated_at: '2021-11-01T22:35:50.752Z'
link:
is_container: true
is_root: true
@@ -3812,11 +3815,11 @@ paths:
total_count: 8
total_pages: 1
links:
- self: http://www.example.com/api/v2/platform/menu_items?page=1&per_page=&include=&filter[menu_item_name_eq]=
- next: http://www.example.com/api/v2/platform/menu_items?filter%5Bmenu_item_name_eq%5D=&include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/menu_items?filter%5Bmenu_item_name_eq%5D=&include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/menu_items?filter%5Bmenu_item_name_eq%5D=&include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/menu_items?filter%5Bmenu_item_name_eq%5D=&include=&page=1&per_page=
+ self: http://www.example.com/api/v2/platform/menu_items?page=1&per_page=&include=&filter[name_eq]=
+ next: http://www.example.com/api/v2/platform/menu_items?filter%5Bname_eq%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/menu_items?filter%5Bname_eq%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/menu_items?filter%5Bname_eq%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/menu_items?filter%5Bname_eq%5D=&include=&page=1&per_page=
schema:
"$ref": "#/components/schemas/resources_list"
'401':
@@ -3842,7 +3845,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: linked_resource
+ example: menu,icon,parent,children,linked_resource
schema:
type: string
responses:
@@ -3867,8 +3870,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-01T16:15:19.114Z'
- updated_at: '2021-11-01T16:15:19.117Z'
+ created_at: '2021-11-01T22:35:51.480Z'
+ updated_at: '2021-11-01T22:35:51.484Z'
link:
is_container: false
is_root: false
@@ -3933,7 +3936,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: linked_resource
+ example: menu,icon,parent,children,linked_resource
schema:
type: string
responses:
@@ -3958,8 +3961,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-01T16:15:19.599Z'
- updated_at: '2021-11-01T16:15:19.603Z'
+ created_at: '2021-11-01T22:35:51.976Z'
+ updated_at: '2021-11-01T22:35:51.981Z'
link:
is_container: false
is_root: false
@@ -4022,7 +4025,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: linked_resource
+ example: menu,icon,parent,children,linked_resource
schema:
type: string
responses:
@@ -4047,8 +4050,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-01T16:15:20.372Z'
- updated_at: '2021-11-01T16:15:20.398Z'
+ created_at: '2021-11-01T22:35:52.759Z'
+ updated_at: '2021-11-01T22:35:52.784Z'
link:
is_container: false
is_root: false
@@ -4185,8 +4188,8 @@ paths:
lft: 5
rgt: 6
depth: 2
- created_at: '2021-11-01T16:15:22.185Z'
- updated_at: '2021-11-01T16:15:22.212Z'
+ created_at: '2021-11-01T22:35:54.607Z'
+ updated_at: '2021-11-01T22:35:54.634Z'
link:
is_container: false
is_root: false
@@ -4235,7 +4238,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/menu_item_reposition_params"
+ "$ref": "#/components/schemas/menu_item_reposition"
"/api/v2/platform/menus":
get:
summary: Return a list of Menus
@@ -4263,6 +4266,12 @@ paths:
example: menu_items
schema:
type: string
+ - name: filter[name_eq]
+ in: query
+ description: ''
+ example: Main Menu
+ schema:
+ type: string
- name: filter[location_eq]
in: query
description: ''
@@ -4284,16 +4293,16 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-01T16:15:22.724Z'
- updated_at: '2021-11-01T16:15:22.852Z'
+ created_at: '2021-11-01T22:35:55.152Z'
+ updated_at: '2021-11-01T22:35:55.282Z'
relationships:
menu_items:
data:
- - id: '87'
+ - id: '89'
type: menu_item
- id: '90'
type: menu_item
- - id: '89'
+ - id: '87'
type: menu_item
- id: '19'
type: menu
@@ -4301,27 +4310,27 @@ paths:
name: Footer Menu
location: footer
locale: en
- created_at: '2021-11-01T16:15:22.733Z'
- updated_at: '2021-11-01T16:15:22.973Z'
+ created_at: '2021-11-01T22:35:55.161Z'
+ updated_at: '2021-11-01T22:35:55.406Z'
relationships:
menu_items:
data:
- id: '91'
type: menu_item
- - id: '88'
- type: menu_item
- id: '92'
type: menu_item
+ - id: '88'
+ 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[location_eq]=
- next: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&include=&page=1&per_page=
+ self: http://www.example.com/api/v2/platform/menus?page=1&per_page=&include=&filter[name_eq]=&filter[location_eq]=
+ next: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&filter%5Bname_eq%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&filter%5Bname_eq%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&filter%5Bname_eq%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&filter%5Bname_eq%5D=&include=&page=1&per_page=
schema:
"$ref": "#/components/schemas/resources_list"
'401':
@@ -4365,8 +4374,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-01T16:15:23.324Z'
- updated_at: '2021-11-01T16:15:23.331Z'
+ created_at: '2021-11-01T22:35:55.745Z'
+ updated_at: '2021-11-01T22:35:55.751Z'
relationships:
menu_items:
data:
@@ -4434,8 +4443,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-01T16:15:23.368Z'
- updated_at: '2021-11-01T16:15:23.374Z'
+ created_at: '2021-11-01T22:35:55.795Z'
+ updated_at: '2021-11-01T22:35:55.801Z'
relationships:
menu_items:
data:
@@ -4499,8 +4508,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-01T16:15:23.445Z'
- updated_at: '2021-11-01T16:15:23.452Z'
+ created_at: '2021-11-01T22:35:55.867Z'
+ updated_at: '2021-11-01T22:35:55.873Z'
relationships:
menu_items:
data:
@@ -4635,8 +4644,8 @@ paths:
name: foo-size-68
presentation: Size
position: 1
- created_at: '2021-11-01T16:15:23.618Z'
- updated_at: '2021-11-01T16:15:23.618Z'
+ created_at: '2021-11-01T22:35:56.073Z'
+ updated_at: '2021-11-01T22:35:56.073Z'
filterable: true
relationships:
option_values:
@@ -4647,8 +4656,8 @@ paths:
name: foo-size-69
presentation: Size
position: 2
- created_at: '2021-11-01T16:15:23.620Z'
- updated_at: '2021-11-01T16:15:23.620Z'
+ created_at: '2021-11-01T22:35:56.074Z'
+ updated_at: '2021-11-01T22:35:56.074Z'
filterable: true
relationships:
option_values:
@@ -4699,8 +4708,8 @@ paths:
name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-11-01T16:15:23.676Z'
- updated_at: '2021-11-01T16:15:23.676Z'
+ created_at: '2021-11-01T22:35:56.125Z'
+ updated_at: '2021-11-01T22:35:56.125Z'
filterable: true
relationships:
option_values:
@@ -4757,8 +4766,8 @@ paths:
name: foo-size-73
presentation: Size
position: 1
- created_at: '2021-11-01T16:15:23.707Z'
- updated_at: '2021-11-01T16:15:23.707Z'
+ created_at: '2021-11-01T22:35:56.158Z'
+ updated_at: '2021-11-01T22:35:56.158Z'
filterable: true
relationships:
option_values:
@@ -4814,8 +4823,8 @@ paths:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-11-01T16:15:23.756Z'
- updated_at: '2021-11-01T16:15:23.763Z'
+ created_at: '2021-11-01T22:35:56.216Z'
+ updated_at: '2021-11-01T22:35:56.223Z'
filterable: true
relationships:
option_values:
@@ -4951,8 +4960,8 @@ paths:
position: 1
name: Size-68
presentation: S
- created_at: '2021-11-01T16:15:23.883Z'
- updated_at: '2021-11-01T16:15:23.883Z'
+ created_at: '2021-11-01T22:35:56.350Z'
+ updated_at: '2021-11-01T22:35:56.350Z'
relationships:
option_type:
data:
@@ -4964,8 +4973,8 @@ paths:
position: 1
name: Size-69
presentation: S
- created_at: '2021-11-01T16:15:23.890Z'
- updated_at: '2021-11-01T16:15:23.890Z'
+ created_at: '2021-11-01T22:35:56.357Z'
+ updated_at: '2021-11-01T22:35:56.357Z'
relationships:
option_type:
data:
@@ -5024,8 +5033,8 @@ paths:
position: 1
name: Size-72
presentation: S
- created_at: '2021-11-01T16:15:23.953Z'
- updated_at: '2021-11-01T16:15:23.953Z'
+ created_at: '2021-11-01T22:35:56.417Z'
+ updated_at: '2021-11-01T22:35:56.417Z'
relationships:
option_type:
data:
@@ -5088,8 +5097,8 @@ paths:
position: 1
name: Size-73
presentation: S
- created_at: '2021-11-01T16:15:23.987Z'
- updated_at: '2021-11-01T16:15:23.987Z'
+ created_at: '2021-11-01T22:35:56.451Z'
+ updated_at: '2021-11-01T22:35:56.451Z'
relationships:
option_type:
data:
@@ -5153,8 +5162,8 @@ paths:
position: 1
name: M
presentation: S
- created_at: '2021-11-01T16:15:24.045Z'
- updated_at: '2021-11-01T16:15:24.054Z'
+ created_at: '2021-11-01T22:35:56.518Z'
+ updated_at: '2021-11-01T22:35:56.527Z'
relationships:
option_type:
data:
@@ -5282,7 +5291,7 @@ paths:
- id: '40'
type: order
attributes:
- number: R767427603
+ number: R164088632
item_total: '0.0'
total: '0.0'
state: cart
@@ -5291,10 +5300,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-01T16:15:24.200Z'
- updated_at: '2021-11-01T16:15:24.200Z'
+ created_at: '2021-11-01T22:35:56.678Z'
+ updated_at: '2021-11-01T22:35:56.678Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5366,7 +5375,7 @@ paths:
- id: '41'
type: order
attributes:
- number: R860381766
+ number: R616918637
item_total: '0.0'
total: '0.0'
state: cart
@@ -5375,10 +5384,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-01T16:15:24.208Z'
- updated_at: '2021-11-01T16:15:24.208Z'
+ created_at: '2021-11-01T22:35:56.686Z'
+ updated_at: '2021-11-01T22:35:56.686Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5497,7 +5506,7 @@ paths:
id: '44'
type: order
attributes:
- number: R827438171
+ number: R914206362
item_total: '0.0'
total: '0.0'
state: cart
@@ -5508,8 +5517,8 @@ paths:
payment_state:
email:
special_instructions:
- created_at: '2021-11-01T16:15:24.523Z'
- updated_at: '2021-11-01T16:15:24.592Z'
+ created_at: '2021-11-01T22:35:56.989Z'
+ updated_at: '2021-11-01T22:35:57.005Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5623,7 +5632,7 @@ paths:
id: '45'
type: order
attributes:
- number: R621193222
+ number: R577750598
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5632,10 +5641,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-01T16:15:24.649Z'
- updated_at: '2021-11-01T16:15:24.807Z'
+ created_at: '2021-11-01T22:35:57.046Z'
+ updated_at: '2021-11-01T22:35:57.212Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5765,7 +5774,7 @@ paths:
id: '47'
type: order
attributes:
- number: R108854973
+ number: R491366996
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5776,8 +5785,8 @@ paths:
payment_state:
special_instructions:
- created_at: '2021-11-01T16:15:24.989Z'
- updated_at: '2021-11-01T16:15:25.081Z'
+ created_at: '2021-11-01T22:35:57.392Z'
+ updated_at: '2021-11-01T22:35:57.565Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5963,7 +5972,7 @@ paths:
id: '52'
type: order
attributes:
- number: R613373980
+ number: R107755103
item_total: '10.0'
total: '110.0'
state: payment
@@ -5972,10 +5981,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-01T16:15:25.740Z'
- updated_at: '2021-11-01T16:15:25.887Z'
+ created_at: '2021-11-01T22:35:58.146Z'
+ updated_at: '2021-11-01T22:35:58.285Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6108,7 +6117,7 @@ paths:
id: '54'
type: order
attributes:
- number: R555606296
+ number: R488204174
item_total: '10.0'
total: '110.0'
state: payment
@@ -6117,10 +6126,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-01T16:15:26.058Z'
- updated_at: '2021-11-01T16:15:26.187Z'
+ created_at: '2021-11-01T22:35:58.479Z'
+ updated_at: '2021-11-01T22:35:58.608Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6253,19 +6262,19 @@ paths:
id: '56'
type: order
attributes:
- number: R437940802
+ number: R747446949
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-11-01T16:15:26.559Z'
+ completed_at: '2021-11-01T22:35:58.998Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
special_instructions:
- created_at: '2021-11-01T16:15:26.345Z'
- updated_at: '2021-11-01T16:15:26.559Z'
+ created_at: '2021-11-01T22:35:58.779Z'
+ updated_at: '2021-11-01T22:35:58.998Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6409,7 +6418,7 @@ paths:
id: '59'
type: order
attributes:
- number: R583410208
+ number: R221671065
item_total: '0.0'
total: '0.0'
state: cart
@@ -6418,10 +6427,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-01T16:15:26.853Z'
- updated_at: '2021-11-01T16:15:26.952Z'
+ created_at: '2021-11-01T22:35:59.301Z'
+ updated_at: '2021-11-01T22:35:59.405Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -6549,7 +6558,7 @@ paths:
id: '61'
type: order
attributes:
- number: R007488347
+ number: R656135970
item_total: '10.0'
total: '110.0'
state: delivery
@@ -6558,10 +6567,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-01T16:15:27.112Z'
- updated_at: '2021-11-01T16:15:27.190Z'
+ created_at: '2021-11-01T22:35:59.571Z'
+ updated_at: '2021-11-01T22:35:59.652Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6862,8 +6871,8 @@ paths:
display_on: both
auto_capture:
position: 1
- created_at: '2021-11-01T16:15:28.804Z'
- updated_at: '2021-11-01T16:15:28.804Z'
+ created_at: '2021-11-01T22:36:01.301Z'
+ updated_at: '2021-11-01T22:36:01.301Z'
deleted_at:
preferences: {}
relationships:
@@ -6881,8 +6890,8 @@ paths:
display_on: both
auto_capture:
position: 2
- created_at: '2021-11-01T16:15:28.810Z'
- updated_at: '2021-11-01T16:15:28.810Z'
+ created_at: '2021-11-01T22:36:01.308Z'
+ updated_at: '2021-11-01T22:36:01.308Z'
deleted_at:
preferences: {}
relationships:
@@ -6900,8 +6909,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-01T16:15:28.813Z'
- updated_at: '2021-11-01T16:15:28.813Z'
+ created_at: '2021-11-01T22:36:01.311Z'
+ updated_at: '2021-11-01T22:36:01.311Z'
deleted_at:
preferences: {}
relationships:
@@ -6919,8 +6928,8 @@ paths:
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-01T16:15:28.817Z'
- updated_at: '2021-11-01T16:15:28.817Z'
+ created_at: '2021-11-01T22:36:01.315Z'
+ updated_at: '2021-11-01T22:36:01.315Z'
deleted_at:
preferences:
dummy_key: PUBLICKEY123
@@ -6941,8 +6950,8 @@ paths:
display_on: both
auto_capture:
position: 5
- created_at: '2021-11-01T16:15:28.820Z'
- updated_at: '2021-11-01T16:15:28.820Z'
+ created_at: '2021-11-01T22:36:01.318Z'
+ updated_at: '2021-11-01T22:36:01.318Z'
deleted_at:
preferences:
dummy_key: PUBLICKEY123
@@ -7010,8 +7019,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-01T16:15:28.931Z'
- updated_at: '2021-11-01T16:15:28.931Z'
+ created_at: '2021-11-01T22:36:01.428Z'
+ updated_at: '2021-11-01T22:36:01.428Z'
deleted_at:
preferences:
dummy_key: PUBLICKEY123
@@ -7085,8 +7094,8 @@ paths:
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-01T16:15:29.018Z'
- updated_at: '2021-11-01T16:15:29.018Z'
+ created_at: '2021-11-01T22:36:01.503Z'
+ updated_at: '2021-11-01T22:36:01.503Z'
deleted_at:
preferences:
dummy_key: PUBLICKEY123
@@ -7159,8 +7168,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-01T16:15:29.151Z'
- updated_at: '2021-11-01T16:15:29.161Z'
+ created_at: '2021-11-01T22:36:01.617Z'
+ updated_at: '2021-11-01T22:36:01.628Z'
deleted_at:
preferences:
dummy_key: UPDATED-DUMMY-KEY-123
@@ -7306,9 +7315,9 @@ paths:
state: invalid
response_code: '12345'
avs_response:
- created_at: '2021-11-01T16:15:29.420Z'
- updated_at: '2021-11-01T16:15:29.436Z'
- number: PDYDZDPY
+ created_at: '2021-11-01T22:36:01.889Z'
+ updated_at: '2021-11-01T22:36:01.906Z'
+ number: PVDU54GB
cvv_response_code:
cvv_response_message:
display_amount: "$45.75"
@@ -7343,9 +7352,9 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-01T16:15:29.433Z'
- updated_at: '2021-11-01T16:15:29.433Z'
- number: P5T0GV41
+ created_at: '2021-11-01T22:36:01.903Z'
+ updated_at: '2021-11-01T22:36:01.903Z'
+ number: PHAOAOTZ
cvv_response_code:
cvv_response_message:
display_amount: "$45.75"
@@ -7431,9 +7440,9 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-01T16:15:29.602Z'
- updated_at: '2021-11-01T16:15:29.602Z'
- number: PR4F6556
+ created_at: '2021-11-01T22:36:02.069Z'
+ updated_at: '2021-11-01T22:36:02.069Z'
+ number: PSD1MXQU
cvv_response_code:
cvv_response_message:
display_amount: "$45.75"
@@ -7569,8 +7578,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-01T16:15:29.811Z'
- updated_at: '2021-11-01T16:15:29.811Z'
+ created_at: '2021-11-01T22:36:02.281Z'
+ updated_at: '2021-11-01T22:36:02.281Z'
code: POP123
relationships:
promotions:
@@ -7579,8 +7588,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-01T16:15:29.813Z'
- updated_at: '2021-11-01T16:15:29.813Z'
+ created_at: '2021-11-01T22:36:02.283Z'
+ updated_at: '2021-11-01T22:36:02.283Z'
code: POP123
relationships:
promotions:
@@ -7636,8 +7645,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-01T16:15:29.861Z'
- updated_at: '2021-11-01T16:15:29.861Z'
+ created_at: '2021-11-01T22:36:02.332Z'
+ updated_at: '2021-11-01T22:36:02.332Z'
code: 2021-BFM
relationships:
promotions:
@@ -7697,8 +7706,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-01T16:15:29.897Z'
- updated_at: '2021-11-01T16:15:29.897Z'
+ created_at: '2021-11-01T22:36:02.369Z'
+ updated_at: '2021-11-01T22:36:02.369Z'
code: MJO
relationships:
promotions:
@@ -7759,8 +7768,8 @@ paths:
type: promotion_category
attributes:
name: 2021 Promotions
- created_at: '2021-11-01T16:15:29.949Z'
- updated_at: '2021-11-01T16:15:29.955Z'
+ created_at: '2021-11-01T22:36:02.421Z'
+ updated_at: '2021-11-01T22:36:02.427Z'
code: 2021-Promos
relationships:
promotions:
@@ -7888,12 +7897,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H88505663024
+ number: H55115761949
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-01T16:15:30.080Z'
- updated_at: '2021-11-01T16:15:30.083Z'
+ created_at: '2021-11-01T22:36:02.552Z'
+ updated_at: '2021-11-01T22:36:02.555Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -7935,12 +7944,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H98428238361
+ number: H95299716655
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-01T16:15:30.110Z'
- updated_at: '2021-11-01T16:15:30.113Z'
+ created_at: '2021-11-01T22:36:02.582Z'
+ updated_at: '2021-11-01T22:36:02.585Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8035,12 +8044,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H36188312911
+ number: H83811960445
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-01T16:15:30.406Z'
- updated_at: '2021-11-01T16:15:30.424Z'
+ created_at: '2021-11-01T22:36:02.880Z'
+ updated_at: '2021-11-01T22:36:02.898Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8174,12 +8183,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H71866168944
+ number: H44536023359
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-01T16:15:31.307Z'
- updated_at: '2021-11-01T16:15:31.336Z'
+ created_at: '2021-11-01T22:36:03.825Z'
+ updated_at: '2021-11-01T22:36:03.858Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8278,12 +8287,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H73130150181
+ number: H88854215341
cost: '100.0'
- shipped_at: '2021-11-01T16:15:31.759Z'
+ shipped_at: '2021-11-01T22:36:04.288Z'
state: shipped
- created_at: '2021-11-01T16:15:31.726Z'
- updated_at: '2021-11-01T16:15:31.759Z'
+ created_at: '2021-11-01T22:36:04.253Z'
+ updated_at: '2021-11-01T22:36:04.288Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8382,12 +8391,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H00303001213
+ number: H26080304428
cost: '100.0'
shipped_at:
state: canceled
- created_at: '2021-11-01T16:15:32.142Z'
- updated_at: '2021-11-01T16:15:32.173Z'
+ created_at: '2021-11-01T22:36:04.686Z'
+ updated_at: '2021-11-01T22:36:04.713Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8486,12 +8495,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H57719834983
+ number: H93653327402
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-01T16:15:32.566Z'
- updated_at: '2021-11-01T16:15:32.594Z'
+ created_at: '2021-11-01T22:36:05.117Z'
+ updated_at: '2021-11-01T22:36:05.151Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8590,12 +8599,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H41747708365
+ number: H26635718038
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-01T16:15:32.990Z'
- updated_at: '2021-11-01T16:15:33.017Z'
+ created_at: '2021-11-01T22:36:05.552Z'
+ updated_at: '2021-11-01T22:36:05.580Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8698,14 +8707,14 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #116'
- created_at: '2021-11-01T16:15:33.247Z'
- updated_at: '2021-11-01T16:15:33.247Z'
+ created_at: '2021-11-01T22:36:05.889Z'
+ updated_at: '2021-11-01T22:36:05.889Z'
- id: '117'
type: shipping_category
attributes:
name: 'ShippingCategory #117'
- created_at: '2021-11-01T16:15:33.248Z'
- updated_at: '2021-11-01T16:15:33.248Z'
+ created_at: '2021-11-01T22:36:05.890Z'
+ updated_at: '2021-11-01T22:36:05.890Z'
meta:
count: 2
total_count: 2
@@ -8750,8 +8759,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #120'
- created_at: '2021-11-01T16:15:33.372Z'
- updated_at: '2021-11-01T16:15:33.372Z'
+ created_at: '2021-11-01T22:36:05.944Z'
+ updated_at: '2021-11-01T22:36:05.944Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -8800,8 +8809,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #121'
- created_at: '2021-11-01T16:15:33.405Z'
- updated_at: '2021-11-01T16:15:33.405Z'
+ created_at: '2021-11-01T22:36:05.977Z'
+ updated_at: '2021-11-01T22:36:05.977Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -8851,8 +8860,8 @@ paths:
type: shipping_category
attributes:
name: Default
- created_at: '2021-11-01T16:15:33.455Z'
- updated_at: '2021-11-01T16:15:33.461Z'
+ created_at: '2021-11-01T22:36:06.028Z'
+ updated_at: '2021-11-01T22:36:06.034Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -8986,8 +8995,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-01T16:15:33.579Z'
- updated_at: '2021-11-01T16:15:33.579Z'
+ created_at: '2021-11-01T22:36:06.155Z'
+ updated_at: '2021-11-01T22:36:06.155Z'
deleted_at:
relationships:
shipping_categories:
@@ -9010,8 +9019,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-01T16:15:33.588Z'
- updated_at: '2021-11-01T16:15:33.588Z'
+ created_at: '2021-11-01T22:36:06.164Z'
+ updated_at: '2021-11-01T22:36:06.164Z'
deleted_at:
relationships:
shipping_categories:
@@ -9081,8 +9090,8 @@ paths:
admin_name: DHL Express- Zone A
display_on: both
tracking_url:
- created_at: '2021-11-01T16:15:33.665Z'
- updated_at: '2021-11-01T16:15:33.665Z'
+ created_at: '2021-11-01T22:36:06.245Z'
+ updated_at: '2021-11-01T22:36:06.245Z'
deleted_at:
relationships:
shipping_categories:
@@ -9166,8 +9175,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-01T16:15:33.713Z'
- updated_at: '2021-11-01T16:15:33.713Z'
+ created_at: '2021-11-01T22:36:06.289Z'
+ updated_at: '2021-11-01T22:36:06.289Z'
deleted_at:
relationships:
shipping_categories:
@@ -9242,8 +9251,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-01T16:15:33.787Z'
- updated_at: '2021-11-01T16:15:33.801Z'
+ created_at: '2021-11-01T22:36:06.369Z'
+ updated_at: '2021-11-01T22:36:06.382Z'
deleted_at:
relationships:
shipping_categories:
@@ -9392,8 +9401,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-01T16:15:34.031Z'
- updated_at: '2021-11-01T16:15:34.035Z'
+ created_at: '2021-11-01T22:36:06.617Z'
+ updated_at: '2021-11-01T22:36:06.621Z'
meta_title:
meta_description:
meta_keywords:
@@ -9427,8 +9436,8 @@ paths:
lft: 4
rgt: 5
description:
- created_at: '2021-11-01T16:15:34.091Z'
- updated_at: '2021-11-01T16:15:34.094Z'
+ created_at: '2021-11-01T22:36:06.676Z'
+ updated_at: '2021-11-01T22:36:06.679Z'
meta_title:
meta_description:
meta_keywords:
@@ -9462,8 +9471,8 @@ paths:
lft: 1
rgt: 6
description:
- created_at: '2021-11-01T16:15:33.968Z'
- updated_at: '2021-11-01T16:15:34.105Z'
+ created_at: '2021-11-01T22:36:06.555Z'
+ updated_at: '2021-11-01T22:36:06.690Z'
meta_title:
meta_description:
meta_keywords:
@@ -9544,8 +9553,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-01T16:15:34.342Z'
- updated_at: '2021-11-01T16:15:34.346Z'
+ created_at: '2021-11-01T22:36:06.906Z'
+ updated_at: '2021-11-01T22:36:06.910Z'
meta_title:
meta_description:
meta_keywords:
@@ -9630,8 +9639,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-01T16:15:34.456Z'
- updated_at: '2021-11-01T16:15:34.460Z'
+ created_at: '2021-11-01T22:36:07.024Z'
+ updated_at: '2021-11-01T22:36:07.028Z'
meta_title:
meta_description:
meta_keywords:
@@ -9719,8 +9728,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-01T16:15:34.685Z'
- updated_at: '2021-11-01T16:15:34.711Z'
+ created_at: '2021-11-01T22:36:07.240Z'
+ updated_at: '2021-11-01T22:36:07.266Z'
meta_title:
meta_description:
meta_keywords:
@@ -9873,9 +9882,9 @@ paths:
- id: '97'
type: user
attributes:
- created_at: '2021-11-01T16:15:35.204Z'
- updated_at: '2021-11-01T16:15:35.204Z'
+ created_at: '2021-11-01T22:36:07.752Z'
+ updated_at: '2021-11-01T22:36:07.752Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -9887,9 +9896,9 @@ paths:
- id: '98'
type: user
attributes:
- created_at: '2021-11-01T16:15:35.209Z'
- updated_at: '2021-11-01T16:15:35.209Z'
+ created_at: '2021-11-01T22:36:07.758Z'
+ updated_at: '2021-11-01T22:36:07.758Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -9901,9 +9910,9 @@ paths:
- id: '99'
type: user
attributes:
- created_at: '2021-11-01T16:15:35.210Z'
- updated_at: '2021-11-01T16:15:35.210Z'
+ created_at: '2021-11-01T22:36:07.759Z'
+ updated_at: '2021-11-01T22:36:07.759Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -9962,9 +9971,9 @@ paths:
id: '104'
type: user
attributes:
- created_at: '2021-11-01T16:15:35.288Z'
- updated_at: '2021-11-01T16:15:35.288Z'
+ created_at: '2021-11-01T22:36:07.826Z'
+ updated_at: '2021-11-01T22:36:07.826Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -10027,9 +10036,9 @@ paths:
id: '107'
type: user
attributes:
- created_at: '2021-11-01T16:15:35.335Z'
- updated_at: '2021-11-01T16:15:35.335Z'
+ created_at: '2021-11-01T22:36:07.878Z'
+ updated_at: '2021-11-01T22:36:07.878Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -10094,8 +10103,8 @@ paths:
type: user
attributes:
- created_at: '2021-11-01T16:15:35.406Z'
- updated_at: '2021-11-01T16:15:35.415Z'
+ created_at: '2021-11-01T22:36:07.946Z'
+ updated_at: '2021-11-01T22:36:07.954Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -10242,12 +10251,12 @@ paths:
position: 1
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-01T16:15:35.625Z'
+ updated_at: '2021-11-01T22:36:08.256Z'
discontinue_on:
- created_at: '2021-11-01T16:15:35.620Z'
+ created_at: '2021-11-01T22:36:08.250Z'
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 116'
+ name: 'Product #181 - 4315'
options_text: ''
total_on_hand: 0
purchasable: true
@@ -10282,21 +10291,21 @@ paths:
type: variant
attributes:
sku: SKU-249
- weight: '104.23'
- height: '146.44'
- depth: '173.52'
+ weight: '150.2'
+ height: '7.71'
+ depth: '162.69'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-01T16:15:35.653Z'
+ updated_at: '2021-11-01T22:36:08.285Z'
discontinue_on:
- created_at: '2021-11-01T16:15:35.647Z'
+ created_at: '2021-11-01T22:36:08.279Z'
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 116'
+ name: 'Product #181 - 4315'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -10333,21 +10342,21 @@ paths:
type: variant
attributes:
sku: SKU-250
- weight: '86.2'
- height: '132.54'
- depth: '194.2'
+ weight: '150.54'
+ height: '89.18'
+ depth: '47.63'
deleted_at:
is_master: false
cost_price: '17.0'
position: 3
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-01T16:15:35.672Z'
+ updated_at: '2021-11-01T22:36:08.304Z'
discontinue_on:
- created_at: '2021-11-01T16:15:35.666Z'
+ created_at: '2021-11-01T22:36:08.298Z'
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 116'
+ name: 'Product #181 - 4315'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -10437,21 +10446,21 @@ paths:
type: variant
attributes:
sku: SKU-255
- weight: '195.68'
- height: '31.86'
- depth: '6.16'
+ weight: '149.44'
+ height: '129.71'
+ depth: '166.72'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-01T16:15:35.885Z'
+ updated_at: '2021-11-01T22:36:08.519Z'
discontinue_on:
- created_at: '2021-11-01T16:15:35.879Z'
+ created_at: '2021-11-01T22:36:08.508Z'
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #183 - 4666'
+ name: 'Product #183 - 6694'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -10612,14 +10621,14 @@ paths:
- id: '1'
type: event
attributes:
- execution_time: 2695
+ execution_time: 30902
name: order.canceled
request_errors: ''
response_code: '200'
success: true
url: https://www.url1.com/
- created_at: '2021-11-01T16:15:36.301Z'
- updated_at: '2021-11-01T16:15:36.301Z'
+ created_at: '2021-11-01T22:36:08.871Z'
+ updated_at: '2021-11-01T22:36:08.871Z'
relationships:
subscriber:
data:
@@ -10628,14 +10637,14 @@ paths:
- id: '2'
type: event
attributes:
- execution_time: 98173
+ execution_time: 56945
name: order.canceled
request_errors: ''
response_code: '200'
success: true
url: https://www.url2.com/
- created_at: '2021-11-01T16:15:36.304Z'
- updated_at: '2021-11-01T16:15:36.304Z'
+ created_at: '2021-11-01T22:36:08.875Z'
+ updated_at: '2021-11-01T22:36:08.875Z'
relationships:
subscriber:
data:
@@ -10711,8 +10720,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-01T16:15:36.359Z'
- updated_at: '2021-11-01T16:15:36.359Z'
+ created_at: '2021-11-01T22:36:08.924Z'
+ updated_at: '2021-11-01T22:36:08.924Z'
- id: '6'
type: subscriber
attributes:
@@ -10720,8 +10729,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-01T16:15:36.360Z'
- updated_at: '2021-11-01T16:15:36.360Z'
+ created_at: '2021-11-01T22:36:08.925Z'
+ updated_at: '2021-11-01T22:36:08.925Z'
meta:
count: 2
total_count: 2
@@ -10769,8 +10778,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-01T16:15:36.408Z'
- updated_at: '2021-11-01T16:15:36.408Z'
+ created_at: '2021-11-01T22:36:08.978Z'
+ updated_at: '2021-11-01T22:36:08.978Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -10825,8 +10834,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-01T16:15:36.439Z'
- updated_at: '2021-11-01T16:15:36.439Z'
+ created_at: '2021-11-01T22:36:09.010Z'
+ updated_at: '2021-11-01T22:36:09.010Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -10879,8 +10888,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-01T16:15:36.492Z'
- updated_at: '2021-11-01T16:15:36.492Z'
+ created_at: '2021-11-01T22:36:09.060Z'
+ updated_at: '2021-11-01T22:36:09.060Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -11001,10 +11010,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-01T16:15:36.733Z'
- updated_at: '2021-11-01T16:15:36.733Z'
- display_total: "$19.99"
+ created_at: '2021-11-01T22:36:09.311Z'
+ updated_at: '2021-11-01T22:36:09.311Z'
display_price: "$19.99"
+ display_total: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -11016,10 +11025,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-01T16:15:36.780Z'
- updated_at: '2021-11-01T16:15:36.780Z'
- display_total: "$19.99"
+ created_at: '2021-11-01T22:36:09.360Z'
+ updated_at: '2021-11-01T22:36:09.360Z'
display_price: "$19.99"
+ display_total: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -11031,10 +11040,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-01T16:15:36.826Z'
- updated_at: '2021-11-01T16:15:36.826Z'
- display_total: "$19.99"
+ created_at: '2021-11-01T22:36:09.406Z'
+ updated_at: '2021-11-01T22:36:09.406Z'
display_price: "$19.99"
+ display_total: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -11046,10 +11055,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-01T16:15:36.871Z'
- updated_at: '2021-11-01T16:15:36.871Z'
- display_total: "$19.99"
+ created_at: '2021-11-01T22:36:09.454Z'
+ updated_at: '2021-11-01T22:36:09.454Z'
display_price: "$19.99"
+ display_total: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -11108,10 +11117,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-01T16:15:37.319Z'
- updated_at: '2021-11-01T16:15:37.319Z'
- display_total: "$19.99"
+ created_at: '2021-11-01T22:36:09.911Z'
+ updated_at: '2021-11-01T22:36:09.911Z'
display_price: "$19.99"
+ display_total: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -11179,10 +11188,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-01T16:15:37.525Z'
- updated_at: '2021-11-01T16:15:37.525Z'
- display_total: "$19.99"
+ created_at: '2021-11-01T22:36:10.114Z'
+ updated_at: '2021-11-01T22:36:10.114Z'
display_price: "$19.99"
+ display_total: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -11246,10 +11255,10 @@ paths:
type: wished_item
attributes:
quantity: 3
- created_at: '2021-11-01T16:15:37.859Z'
- updated_at: '2021-11-01T16:15:37.867Z'
- display_total: "$59.97"
+ created_at: '2021-11-01T22:36:10.454Z'
+ updated_at: '2021-11-01T22:36:10.463Z'
display_price: "$19.99"
+ display_total: "$59.97"
price: '19.99'
total: '59.97'
relationships:
@@ -11382,9 +11391,9 @@ paths:
name: Black Friday
is_private: true
is_default: false
- created_at: '2021-11-01T16:15:38.537Z'
- updated_at: '2021-11-01T16:15:38.537Z'
- token: FWxVNirxSL8hyJDQJpZeBx4y
+ created_at: '2021-11-01T22:36:11.146Z'
+ updated_at: '2021-11-01T22:36:11.146Z'
+ token: EYTETFvJ3BR7pLBcqNhRcHKX
variant_included: false
relationships:
wished_items:
@@ -11399,9 +11408,9 @@ paths:
name: Birthday
is_private: true
is_default: false
- created_at: '2021-11-01T16:15:38.538Z'
- updated_at: '2021-11-01T16:15:38.538Z'
- token: u7ttyfedUjYCZjoKVkDnjEgG
+ created_at: '2021-11-01T22:36:11.148Z'
+ updated_at: '2021-11-01T22:36:11.148Z'
+ token: mB3yhtwWUxUthBtnn8vg89ui
variant_included: false
relationships:
wished_items:
@@ -11463,9 +11472,9 @@ paths:
name: Wishlist_26
is_private: true
is_default: false
- created_at: '2021-11-01T16:15:38.982Z'
- updated_at: '2021-11-01T16:15:38.982Z'
- token: eYsnp8KKEYoDYC57kNAdqXR5
+ created_at: '2021-11-01T22:36:11.597Z'
+ updated_at: '2021-11-01T22:36:11.597Z'
+ token: XULmdkxnXtU3metp2xanXpEb
variant_included: false
relationships:
wished_items:
@@ -11529,9 +11538,9 @@ paths:
name: My Wishlist
is_private: true
is_default: false
- created_at: '2021-11-01T16:15:39.020Z'
- updated_at: '2021-11-01T16:15:39.020Z'
- token: HAqhVZZtc7hTXi4ndQid4WTJ
+ created_at: '2021-11-01T22:36:11.641Z'
+ updated_at: '2021-11-01T22:36:11.641Z'
+ token: x1xqg1wUJeX6ftB9RWVJ91wi
variant_included: false
relationships:
wished_items:
@@ -11594,9 +11603,9 @@ paths:
name: My Super Wishlist
is_private: true
is_default: false
- created_at: '2021-11-01T16:15:39.080Z'
- updated_at: '2021-11-01T16:15:39.087Z'
- token: oKXZZsptL87xzBuk1G8uqkhE
+ created_at: '2021-11-01T22:36:11.703Z'
+ updated_at: '2021-11-01T22:36:11.711Z'
+ token: Y8TkkpY33TiKQZD4W7RHcu7Z
variant_included: false
relationships:
wished_items:
@@ -12188,10 +12197,18 @@ components:
properties:
name:
type: string
+ example: Main Menu
+ description: Give this Menu a name.
location:
type: string
+ enum:
+ - header
+ - footer
+ description: Set the location this menu appears in the website.
locale:
type: string
+ example: en-US
+ description: Set the language of this menu.
required:
- menu
x-internal: true
@@ -12203,10 +12220,18 @@ components:
properties:
name:
type: string
+ example: Main Menu
+ description: Give this Menu a name.
location:
type: string
+ enum:
+ - header
+ - footer
+ description: Set the location this menu appears in the website.
locale:
type: string
+ example: en-US
+ description: Set the language of this menu.
required:
- menu
x-internal: true
@@ -12221,24 +12246,59 @@ components:
properties:
name:
type: string
+ example: T-Shirts
+ description: The name of this Menu Item
code:
type: string
+ nullable: true
+ example: MEN-TS
+ description: Give this Menu Item a code to identify this Menu Item from
+ others. This is especially useful when using Container type Menu Items
+ to group items.
subtitle:
type: string
+ nullable: true
+ example: Shop men's T-Shirts
+ description: Set an optional subtitle for the Menu Item, this is useful
+ if your menu has promotional links that require more than just a link
+ name.
destination:
type: string
+ nullable: true
+ example: https://getvendo.com
+ description: 'Used when the linked_resource_type is set to: URL'
menu_id:
- type: string
+ type: integer
+ example: 1
+ description: Specify the ID of the Menu this item belongs to.
new_window:
type: boolean
+ description: When set to `true` the link will be opened in a new tab
+ or window.
item_type:
type: string
+ enum:
+ - Link
+ - Container
+ description: Links are standard links, where as Containers are used
+ to group links.
linked_resource_type:
type: string
+ enum:
+ - URL
+ - Spree::Taxon
+ - Spree::Product
+ - Spree::CmsPage
+ description: 'Set the type of resource you want to link to, or set to:
+ URL to use the destination field for an external link.'
linked_resource_id:
type: integer
+ example: 1
+ nullable: true
+ description: The ID of the resource you are linking to.
required:
- menu_item
+ title: Create a Menu Item
x-internal: true
update_menu_item_params:
type: object
@@ -12248,35 +12308,80 @@ components:
properties:
name:
type: string
+ example: T-Shirts
+ description: The name of this Menu Item
code:
type: string
+ nullable: true
+ example: MEN-TS
+ description: Give this Menu Item a code to identify this Menu Item from
+ others. This is especially useful when using Container type Menu Items
+ to group items.
subtitle:
type: string
+ nullable: true
+ example: Shop men's T-Shirts
+ description: Set an optional subtitle for the Menu Item, this is useful
+ if your menu has promotional links that require more than just a link
+ name.
destination:
type: string
+ nullable: true
+ example: https://getvendo.com
+ description: 'Used when the linked_resource_type is set to: URL'
menu_id:
- type: string
+ type: integer
+ example: 1
+ description: Specify the ID of the Menu this item belongs to.
new_window:
type: boolean
+ description: When set to `true` the link will be opened in a new tab
+ or window.
item_type:
type: string
+ enum:
+ - Link
+ - Container
+ description: Links are standard links, where as Containers are used
+ to group links.
linked_resource_type:
type: string
+ enum:
+ - URL
+ - Spree::Taxon
+ - Spree::Product
+ - Spree::CmsPage
+ description: 'Set the type of resource you want to link to, or set to:
+ URL to use the destination field for an external link.'
linked_resource_id:
type: integer
+ example: 1
+ nullable: true
+ description: The ID of the resource you are linking to.
required:
- menu_item
+ title: Update a Menu Item
x-internal: true
- menu_item_reposition_params:
+ menu_item_reposition:
type: object
properties:
- new_parent_id:
- type: integer
- new_position_idx:
- type: integer
+ menu_item:
+ type: object
+ required:
+ - new_parent_id
+ - new_position_idx
+ properties:
+ new_parent_id:
+ type: integer
+ example: 1
+ description: The ID of the new target parent Menu Item.
+ new_position_idx:
+ type: integer
+ example: 1
+ description: The new index position of the Menu Item within its parent
required:
- - new_parent_id
- - new_position_idx
+ - menu_item
+ title: Reposition a Menu Item
x-internal: true
create_option_type_params:
type: object
@@ -12376,7 +12481,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-11-01 16:15:03 UTC
+ example: 2021-11-01 22:35:35 UTC
bill_address_id:
type: string
example: '1'
@@ -12444,7 +12549,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-11-01 16:15:03 UTC
+ example: 2021-11-01 22:35:35 UTC
confirmation_delivered:
type: boolean
example: true
@@ -12511,7 +12616,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-11-01 16:15:03 UTC
+ example: 2021-11-01 22:35:35 UTC
bill_address_id:
type: string
example: '1'
@@ -12579,7 +12684,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-11-01 16:15:03 UTC
+ example: 2021-11-01 22:35:35 UTC
confirmation_delivered:
type: boolean
example: true
diff --git a/api/spec/integration/api/v2/platform/menu_items_spec.rb b/api/spec/integration/api/v2/platform/menu_items_spec.rb
index 226d0b4eb7..28f247a4bd 100644
--- a/api/spec/integration/api/v2/platform/menu_items_spec.rb
+++ b/api/spec/integration/api/v2/platform/menu_items_spec.rb
@@ -5,8 +5,8 @@ describe 'Menu Items API', swagger: true do
resource_name = 'Menu Item'
options = {
- include_example: 'linked_resource',
- filter_examples: [{ name: 'filter[menu_item_name_eq]', example: 'Women' }]
+ include_example: 'menu,icon,parent,children,linked_resource',
+ filter_examples: [{ name: 'filter[name_eq]', example: 'T-Shirts' }]
}
let(:menu) { create(:menu, store: store) }
@@ -19,18 +19,24 @@ describe 'Menu Items API', swagger: true do
let(:valid_create_param_value) { build(:menu_item, menu: menu).attributes }
let(:valid_update_param_value) do
{
- name: 'Menu Item One'
+ menu_item: {
+ name: 'Menu Item One'
+ }
}
end
let(:invalid_param_value) do
{
- name: '',
+ menu_item: {
+ name: ''
+ }
}
end
let(:valid_update_position_param_value) do
{
- new_parent_id: menu_item_two.id,
- new_position_idx: 0
+ menu_item: {
+ new_parent_id: menu_item_two.id,
+ new_position_idx: 0
+ }
}
end
@@ -44,15 +50,9 @@ describe 'Menu Items API', swagger: true do
description 'Reposition a Menu Item'
consumes 'application/json'
parameter name: :id, in: :path, type: :string
- parameter name: :menu_item, in: :body, schema: { '$ref' => '#/components/schemas/menu_item_reposition_params' }
+ parameter name: :menu_item, in: :body, schema: { '$ref' => '#/components/schemas/menu_item_reposition' }
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
diff --git a/api/spec/integration/api/v2/platform/menus_spec.rb b/api/spec/integration/api/v2/platform/menus_spec.rb
index c50e5adc9a..700c699d6d 100644
--- a/api/spec/integration/api/v2/platform/menus_spec.rb
+++ b/api/spec/integration/api/v2/platform/menus_spec.rb
@@ -6,7 +6,8 @@ describe 'Menus API', swagger: true do
resource_name = 'Menu'
options = {
include_example: 'menu_items',
- filter_examples: [{ name: 'filter[location_eq]', example: 'header' }]
+ filter_examples: [{ name: 'filter[name_eq]', example: 'Main Menu' },
+ { name: 'filter[location_eq]', example: 'header' }]
}
let(:id) { create(:menu, name: 'Main Menu').id }
@@ -44,8 +45,7 @@ describe 'Menus API', swagger: true do
{
name: '',
locale: '',
- location: '',
- store: ''
+ location: ''
}
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 ed14173285..41a9143aa5 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
@@ -12,7 +12,31 @@ describe 'Platform API v2 Menu Items spec', type: :request do
describe 'menu_item#reposition' do
context 'with no params' do
- let(:params) { nil }
+ let(:params) do
+ {
+ menu_item: {
+ new_parent_id: nil,
+ new_position_idx: nil
+ }
+ }
+ end
+
+ before do
+ 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 none existing parent ID' do
+ let(:params) do
+ {
+ menu_item: {
+ new_parent_id: 999129192192,
+ new_position_idx: 0
+ }
+ }
+ end
before do
patch "/api/v2/platform/menu_items/#{menu_item_a.id}/reposition", headers: bearer_token, params: params
@@ -22,7 +46,14 @@ describe 'Platform API v2 Menu Items spec', type: :request do
end
context 'with correct params' do
- let(:params) { { new_parent_id: menu_item_b.id, new_position_idx: 0 } }
+ let(:params) do
+ {
+ menu_item: {
+ new_parent_id: menu_item_b.id,
+ new_position_idx: 0
+ }
+ }
+ end
before do
patch "/api/v2/platform/menu_items/#{menu_item_a.id}/reposition", headers: bearer_token, params: params
@@ -41,8 +72,15 @@ describe 'Platform API v2 Menu Items spec', type: :request do
end
end
- context 'with correct params moving within same item' do
- let(:params) { { new_parent_id: menu_item_b.id, new_position_idx: 1 } }
+ context 'with correct params moving within the same item' do
+ let(:params) do
+ {
+ menu_item: {
+ new_parent_id: menu_item_b.id,
+ new_position_idx: 1
+ }
+ }
+ end
before do
patch "/api/v2/platform/menu_items/#{menu_item_a.id}/reposition", headers: bearer_token, params: params
diff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rb
index 2832a21fb7..88b3c15c99 100644
--- a/api/spec/swagger_helper.rb
+++ b/api/spec/swagger_helper.rb
@@ -388,9 +388,9 @@ RSpec.configure do |config|
type: :object,
required: %w[name location locale],
properties: {
- name: { type: :string },
- location: { type: :string },
- locale: { type: :string }
+ name: { type: :string, example: 'Main Menu', description: 'Give this Menu a name.' },
+ location: { type: :string, enum: ['header', 'footer'], description: 'Set the location this menu appears in the website.' },
+ locale: { type: :string, example: 'en-US', description: 'Set the language of this menu.' }
}
}
},
@@ -403,9 +403,9 @@ RSpec.configure do |config|
menu: {
type: :object,
properties: {
- name: { type: :string },
- location: { type: :string },
- locale: { type: :string }
+ name: { type: :string, example: 'Main Menu', description: 'Give this Menu a name.' },
+ location: { type: :string, enum: ['header', 'footer'], description: 'Set the location this menu appears in the website.' },
+ locale: { type: :string, example: 'en-US', description: 'Set the language of this menu.' }
}
}
},
@@ -421,19 +421,20 @@ RSpec.configure do |config|
type: :object,
required: %w[name menu_id],
properties: {
- name: { type: :string },
- code: { type: :string },
- subtitle: { type: :string },
- destination: { type: :string },
- menu_id: { type: :string },
- new_window: { type: :boolean },
- item_type: { type: :string },
- linked_resource_type: { type: :string },
- linked_resource_id: { type: :integer }
+ name: { type: :string, example: 'T-Shirts', description: 'The name of this Menu Item'},
+ code: { type: :string, nullable: true, example: 'MEN-TS', description: 'Give this Menu Item a code to identify this Menu Item from others. This is especially useful when using Container type Menu Items to group items.' },
+ subtitle: { type: :string, nullable: true, example: "Shop men's T-Shirts", description: 'Set an optional subtitle for the Menu Item, this is useful if your menu has promotional links that require more than just a link name.' },
+ destination: { type: :string, nullable: true, example: 'https://getvendo.com', description: 'Used when the linked_resource_type is set to: URL' },
+ menu_id: { type: :integer, example: 1, description: 'Specify the ID of the Menu this item belongs to.' },
+ new_window: { type: :boolean, description: 'When set to `true` the link will be opened in a new tab or window.' },
+ item_type: { type: :string, enum: ['Link', 'Container'], description: 'Links are standard links, where as Containers are used to group links.' },
+ linked_resource_type: { type: :string, enum: ['URL', 'Spree::Taxon', 'Spree::Product', 'Spree::CmsPage'], description: 'Set the type of resource you want to link to, or set to: URL to use the destination field for an external link.' },
+ linked_resource_id: { type: :integer, example: 1, nullable: true, description: 'The ID of the resource you are linking to.' }
}
}
},
required: %w[menu_item],
+ title: 'Create a Menu Item',
'x-internal': true
},
update_menu_item_params: {
@@ -442,28 +443,36 @@ RSpec.configure do |config|
menu_item: {
type: :object,
properties: {
- name: { type: :string },
- code: { type: :string },
- subtitle: { type: :string },
- destination: { type: :string },
- menu_id: { type: :string },
- new_window: { type: :boolean },
- item_type: { type: :string },
- linked_resource_type: { type: :string },
- linked_resource_id: { type: :integer }
+ name: { type: :string, example: 'T-Shirts', description: 'The name of this Menu Item'},
+ code: { type: :string, nullable: true, example: 'MEN-TS', description: 'Give this Menu Item a code to identify this Menu Item from others. This is especially useful when using Container type Menu Items to group items.' },
+ subtitle: { type: :string, nullable: true, example: "Shop men's T-Shirts", description: 'Set an optional subtitle for the Menu Item, this is useful if your menu has promotional links that require more than just a link name.' },
+ destination: { type: :string, nullable: true, example: 'https://getvendo.com', description: 'Used when the linked_resource_type is set to: URL' },
+ menu_id: { type: :integer, example: 1, description: 'Specify the ID of the Menu this item belongs to.' },
+ new_window: { type: :boolean, description: 'When set to `true` the link will be opened in a new tab or window.' },
+ item_type: { type: :string, enum: ['Link', 'Container'], description: 'Links are standard links, where as Containers are used to group links.' },
+ linked_resource_type: { type: :string, enum: ['URL', 'Spree::Taxon', 'Spree::Product', 'Spree::CmsPage'], description: 'Set the type of resource you want to link to, or set to: URL to use the destination field for an external link.' },
+ linked_resource_id: { type: :integer, example: 1, nullable: true, description: 'The ID of the resource you are linking to.' }
}
}
},
required: %w[menu_item],
+ title: 'Update a Menu Item',
'x-internal': true
},
- menu_item_reposition_params: {
+ menu_item_reposition: {
type: :object,
properties: {
- new_parent_id: { type: :integer },
- new_position_idx: { type: :integer }
+ menu_item: {
+ type: :object,
+ required: %w[new_parent_id new_position_idx],
+ properties: {
+ new_parent_id: { type: :integer, example: 1, description: 'The ID of the new target parent Menu Item.' },
+ new_position_idx: { type: :integer, example: 1, description: 'The new index position of the Menu Item within its parent' }
+ }
+ }
},
- required: %w[new_parent_id new_position_idx],
+ required: %w[menu_item],
+ title: 'Reposition a Menu Item',
'x-internal': true
},