workarea-api 4.5.0 → 4.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +103 -0
  3. data/Gemfile +1 -3
  4. data/README.md +1 -1
  5. data/Rakefile +15 -14
  6. data/admin/app/controllers/workarea/api/admin/recommendation_settings_controller.rb +1 -1
  7. data/admin/app/models/workarea/api/admin/date_filtering.rb +0 -3
  8. data/admin/lib/workarea/api/admin.rb +1 -0
  9. data/admin/lib/workarea/api/admin/date_indexes.rb +23 -0
  10. data/admin/lib/workarea/api/admin/engine.rb +2 -0
  11. data/admin/test/integration/workarea/api/admin/recommendation_settings_integration_test.rb +14 -0
  12. data/admin/workarea-api-admin.gemspec +2 -2
  13. data/doc/api/admin/categories/bulk_upserting_categories.json +5 -5
  14. data/doc/api/admin/categories/creating_a_category.json +7 -7
  15. data/doc/api/admin/categories/listing_categories.json +4 -4
  16. data/doc/api/admin/categories/removing_a_category.json +5 -5
  17. data/doc/api/admin/categories/showing_a_category.json +6 -6
  18. data/doc/api/admin/categories/updating_a_category.json +6 -6
  19. data/doc/api/admin/category_product_rules/creating_a_category_product_rule.json +7 -7
  20. data/doc/api/admin/category_product_rules/listing_category_product_rules.json +6 -6
  21. data/doc/api/admin/category_product_rules/removing_a_category_product_rule.json +5 -5
  22. data/doc/api/admin/category_product_rules/updating_a_category_product_rule.json +5 -5
  23. data/doc/api/admin/content/bulk_upserting_content.json +5 -5
  24. data/doc/api/admin/content/creating_content.json +7 -7
  25. data/doc/api/admin/content/listing_content.json +4 -4
  26. data/doc/api/admin/content/showing_content.json +6 -6
  27. data/doc/api/admin/content/updating_content.json +5 -5
  28. data/doc/api/admin/content_assets/bulk_upserting_content_assets.json +5 -5
  29. data/doc/api/admin/content_assets/creating_a_content_asset.json +7 -7
  30. data/doc/api/admin/content_assets/listing_content_assets.json +4 -4
  31. data/doc/api/admin/content_assets/removing_a_content_asset.json +5 -5
  32. data/doc/api/admin/content_assets/showing_a_content_asset.json +6 -6
  33. data/doc/api/admin/content_assets/updating_a_content_asset.json +6 -6
  34. data/doc/api/admin/discounts/creating_a_discount.json +7 -7
  35. data/doc/api/admin/discounts/listing_discounts.json +4 -4
  36. data/doc/api/admin/discounts/removing_a_discount.json +5 -5
  37. data/doc/api/admin/discounts/showing_a_discount.json +6 -6
  38. data/doc/api/admin/discounts/updating_discounts.json +5 -5
  39. data/doc/api/admin/email_signups/listing_email_signups.json +4 -4
  40. data/doc/api/admin/email_signups/showing_an_email_signup_by_email.json +47 -0
  41. data/doc/api/admin/email_signups/showing_an_email_signup_by_id.json +47 -0
  42. data/doc/api/admin/fulfillment/listing_fulfillments.json +4 -4
  43. data/doc/api/admin/fulfillment/marking_items_as_canceled.json +6 -6
  44. data/doc/api/admin/fulfillment/marking_items_as_shipped.json +6 -6
  45. data/doc/api/admin/fulfillment/showing_fulfillment.json +4 -4
  46. data/doc/api/admin/global_functionality/dealing_with_locales.json +86 -0
  47. data/doc/api/admin/global_functionality/filtering_by_created_at_time_stamp.json +56 -0
  48. data/doc/api/admin/global_functionality/filtering_by_updated_time_stamp.json +56 -0
  49. data/doc/api/admin/global_functionality/paging_results.json +51 -0
  50. data/doc/api/admin/global_functionality/retrieving_addtional_pages_of_results.json +51 -0
  51. data/doc/api/admin/global_functionality/sorting_results.json +56 -0
  52. data/doc/api/admin/inventory_skus/bulk_upserting_inventory_skus.json +5 -5
  53. data/doc/api/admin/inventory_skus/creating_an_inventory_sku.json +6 -6
  54. data/doc/api/admin/inventory_skus/listing_inventory_skus.json +4 -4
  55. data/doc/api/admin/inventory_skus/removing_an_inventory_sku.json +3 -3
  56. data/doc/api/admin/inventory_skus/showing_an_inventory_sku.json +4 -4
  57. data/doc/api/admin/inventory_skus/updating_an_inventory_sku.json +3 -3
  58. data/doc/api/admin/navigation_menus/creating_a_menu.json +7 -7
  59. data/doc/api/admin/navigation_menus/listing_menus.json +4 -4
  60. data/doc/api/admin/navigation_menus/removing_a_navigation_menu.json +5 -5
  61. data/doc/api/admin/navigation_menus/showing_a_navigation_menu.json +6 -6
  62. data/doc/api/admin/navigation_menus/updating_a_navigation_menus.json +5 -5
  63. data/doc/api/admin/navigation_taxonomy/bulk_upserting_navigation_taxons.json +5 -5
  64. data/doc/api/admin/navigation_taxonomy/creating_a_taxon.json +7 -7
  65. data/doc/api/admin/navigation_taxonomy/listing_taxons.json +4 -4
  66. data/doc/api/admin/navigation_taxonomy/removing_a_navigation_taxon.json +5 -5
  67. data/doc/api/admin/navigation_taxonomy/showing_a_navigation_taxon.json +6 -6
  68. data/doc/api/admin/navigation_taxonomy/updating_a_navigation_taxons.json +5 -5
  69. data/doc/api/admin/orders/listing_orders.json +4 -4
  70. data/doc/api/admin/orders/showing_an_order.json +5 -5
  71. data/doc/api/admin/orders/viewing_orders_by_date_range.json +76 -0
  72. data/doc/api/admin/pages/bulk_upserting_pages.json +5 -5
  73. data/doc/api/admin/pages/creating_a_page.json +7 -7
  74. data/doc/api/admin/pages/listing_pages.json +4 -4
  75. data/doc/api/admin/pages/removing_a_page.json +5 -5
  76. data/doc/api/admin/pages/showing_a_page.json +6 -6
  77. data/doc/api/admin/pages/updating_a_page.json +6 -6
  78. data/doc/api/admin/payment_profiles/bulk_upserting_payment_profiles.json +5 -5
  79. data/doc/api/admin/payment_profiles/creating_a_payment_profile.json +7 -7
  80. data/doc/api/admin/payment_profiles/listing_payment_profiles.json +4 -4
  81. data/doc/api/admin/payment_profiles/removing_a_payment_profile.json +5 -5
  82. data/doc/api/admin/payment_profiles/showing_a_payment_profile.json +6 -6
  83. data/doc/api/admin/payment_profiles/updating_a_payment_profiles.json +5 -5
  84. data/doc/api/admin/payment_transactions/listing_payment_transactions.json +4 -4
  85. data/doc/api/admin/payment_transactions/showing_a_payment_transaction.json +6 -6
  86. data/doc/api/admin/payments/listing_payments.json +4 -4
  87. data/doc/api/admin/payments/showing_an_payment.json +4 -4
  88. data/doc/api/admin/prices/creating_a_pricing_sku_price.json +4 -4
  89. data/doc/api/admin/prices/listing_pricing_sku_prices.json +4 -4
  90. data/doc/api/admin/prices/removing_a_pricing_sku_price.json +5 -5
  91. data/doc/api/admin/prices/updating_a_pricing_sku_price.json +5 -5
  92. data/doc/api/admin/pricing_skus/bulk_upserting_pricing_skus.json +5 -5
  93. data/doc/api/admin/pricing_skus/creating_an_pricing_sku.json +6 -6
  94. data/doc/api/admin/pricing_skus/listing_pricing_skus.json +4 -4
  95. data/doc/api/admin/pricing_skus/removing_an_pricing_sku.json +3 -3
  96. data/doc/api/admin/pricing_skus/showing_an_pricing_sku.json +4 -4
  97. data/doc/api/admin/pricing_skus/updating_an_pricing_sku.json +3 -3
  98. data/doc/api/admin/product_images/creating_a_product_image_from_base64.json +7 -7
  99. data/doc/api/admin/product_images/creating_a_product_image_from_url.json +7 -7
  100. data/doc/api/admin/product_images/listing_product_images.json +7 -7
  101. data/doc/api/admin/product_images/removing_a_product_image.json +5 -5
  102. data/doc/api/admin/product_images/updating_a_product_image.json +5 -5
  103. data/doc/api/admin/products/bulk_upserting_products.json +5 -5
  104. data/doc/api/admin/products/creating_a_product.json +7 -7
  105. data/doc/api/admin/products/listing_products.json +4 -4
  106. data/doc/api/admin/products/removing_a_product.json +5 -5
  107. data/doc/api/admin/products/showing_a_product.json +6 -6
  108. data/doc/api/admin/products/updating_a_product.json +6 -6
  109. data/doc/api/admin/promo_code_lists/bulk_upserting_promo_code_lists.json +5 -5
  110. data/doc/api/admin/promo_code_lists/creating_a_promo_code_list.json +7 -7
  111. data/doc/api/admin/promo_code_lists/listing_promo_code_lists.json +4 -4
  112. data/doc/api/admin/promo_code_lists/removing_a_promo_code_list.json +5 -5
  113. data/doc/api/admin/promo_code_lists/showing_a_promo_code_list.json +6 -6
  114. data/doc/api/admin/promo_code_lists/updating_a_promo_code_list.json +5 -5
  115. data/doc/api/admin/recommendation_settings/showing_recommendation_settings.json +6 -6
  116. data/doc/api/admin/recommendation_settings/updating_recommendation_settings.json +5 -5
  117. data/doc/api/admin/redirects/bulk_upserting_redirects.json +5 -5
  118. data/doc/api/admin/redirects/creating_a_redirect.json +7 -7
  119. data/doc/api/admin/redirects/listing_redirects.json +4 -4
  120. data/doc/api/admin/redirects/removing_a_redirect.json +5 -5
  121. data/doc/api/admin/redirects/showing_a_redirect.json +6 -6
  122. data/doc/api/admin/redirects/updating_a_redirects.json +5 -5
  123. data/doc/api/admin/release_changes/adding_changes_to_a_release.json +6 -6
  124. data/doc/api/admin/releases/bulk_upserting_releases.json +5 -5
  125. data/doc/api/admin/releases/creating_a_release.json +7 -7
  126. data/doc/api/admin/releases/listing_releases.json +4 -4
  127. data/doc/api/admin/releases/removing_a_release.json +5 -5
  128. data/doc/api/admin/releases/showing_a_release.json +6 -6
  129. data/doc/api/admin/releases/updating_a_release.json +6 -6
  130. data/doc/api/admin/saved_addresses/creating_a_saved_address.json +7 -7
  131. data/doc/api/admin/saved_addresses/listing_saved_address.json +6 -6
  132. data/doc/api/admin/saved_addresses/removing_a_saved_address.json +5 -5
  133. data/doc/api/admin/saved_addresses/updating_a_saved_address.json +5 -5
  134. data/doc/api/admin/saved_credit_cards/creating_a_saved_credit_card.json +8 -8
  135. data/doc/api/admin/saved_credit_cards/listing_saved_credit_cards.json +6 -6
  136. data/doc/api/admin/saved_credit_cards/removing_a_saved_credit_card.json +5 -5
  137. data/doc/api/admin/saved_credit_cards/updating_a_saved_credit_card.json +5 -5
  138. data/doc/api/admin/shipping/listing_shipments.json +4 -4
  139. data/doc/api/admin/shipping/showing_a_shipment.json +6 -6
  140. data/doc/api/admin/shipping_rates/creating_a_shipping_rate.json +7 -7
  141. data/doc/api/admin/shipping_rates/listing_shipping_rates.json +6 -6
  142. data/doc/api/admin/shipping_rates/removing_a_shipping_rate.json +5 -5
  143. data/doc/api/admin/shipping_rates/updating_a_shipping_rate.json +5 -5
  144. data/doc/api/admin/shipping_services/bulk_upserting_shipping_services.json +5 -5
  145. data/doc/api/admin/shipping_services/creating_a_shipping_service.json +7 -7
  146. data/doc/api/admin/shipping_services/listing_shipping_services.json +4 -4
  147. data/doc/api/admin/shipping_services/removing_a_shipping_service.json +5 -5
  148. data/doc/api/admin/shipping_services/showing_a_shipping_service.json +7 -7
  149. data/doc/api/admin/shipping_services/updating_a_shipping_service.json +6 -6
  150. data/doc/api/admin/tax_categories/bulk_upserting_tax_categories.json +5 -5
  151. data/doc/api/admin/tax_categories/creating_a_tax_category.json +7 -7
  152. data/doc/api/admin/tax_categories/listing_tax_categories.json +5 -5
  153. data/doc/api/admin/tax_categories/removing_a_tax_category.json +5 -5
  154. data/doc/api/admin/tax_categories/showing_a_tax_category.json +7 -7
  155. data/doc/api/admin/tax_categories/updating_a_tax_categories.json +5 -5
  156. data/doc/api/admin/tax_rates/creating_a_tax_rate.json +8 -8
  157. data/doc/api/admin/tax_rates/listing_tax_rates.json +6 -6
  158. data/doc/api/admin/tax_rates/removing_a_tax_rate.json +5 -5
  159. data/doc/api/admin/tax_rates/updating_a_tax_rate.json +5 -5
  160. data/doc/api/admin/users/bulk_upserting_users.json +5 -5
  161. data/doc/api/admin/users/creating_a_user.json +7 -7
  162. data/doc/api/admin/users/listing_users.json +4 -4
  163. data/doc/api/admin/users/removing_a_user.json +5 -5
  164. data/doc/api/admin/users/showing_a_user_by_email.json +47 -0
  165. data/doc/api/admin/users/showing_a_user_by_id.json +47 -0
  166. data/doc/api/admin/users/updating_a_user.json +6 -6
  167. data/doc/api/admin/variants/creating_a_product_variant.json +6 -6
  168. data/doc/api/admin/variants/listing_product_variants.json +7 -7
  169. data/doc/api/admin/variants/removing_a_product_variant.json +5 -5
  170. data/doc/api/admin/variants/updating_a_product_variant.json +5 -5
  171. data/doc/api/storefront/accounts/creating_an_account.json +4 -4
  172. data/doc/api/storefront/accounts/getting_account_details.json +7 -7
  173. data/doc/api/storefront/accounts/updating_an_account.json +7 -7
  174. data/doc/api/storefront/analytics/saving_a_category_view.json +3 -3
  175. data/doc/api/storefront/analytics/saving_a_product_view.json +3 -3
  176. data/doc/api/storefront/analytics/saving_a_search.json +3 -3
  177. data/doc/api/storefront/assets/showing_an_asset.json +6 -6
  178. data/doc/api/storefront/authentication/creating_an_authentication_token.json +6 -6
  179. data/doc/api/storefront/authentication/refreshing_an_authentication_token.json +6 -6
  180. data/doc/api/storefront/authentication/using_an_authentication_token.json +6 -6
  181. data/doc/api/storefront/cart/adding_a_promo_code.json +7 -7
  182. data/doc/api/storefront/cart/adding_an_item.json +7 -7
  183. data/doc/api/storefront/cart/creating_a_new_cart_for_a_user.json +6 -6
  184. data/doc/api/storefront/cart/creating_a_new_guest_cart.json +4 -4
  185. data/doc/api/storefront/cart/delete_an_item.json +7 -7
  186. data/doc/api/storefront/cart/listing_user_s_carts.json +6 -6
  187. data/doc/api/storefront/cart/showing_cart.json +7 -7
  188. data/doc/api/storefront/cart/updating_an_item.json +7 -7
  189. data/doc/api/storefront/categories/showing_a_category.json +5 -5
  190. data/doc/api/storefront/categories/showing_a_listing_of_categories.json +5 -5
  191. data/doc/api/storefront/checkout/completing_a_checkout.json +7 -7
  192. data/doc/api/storefront/checkout/failure_to_update_a_checkout.json +52 -0
  193. data/doc/api/storefront/checkout/showing_a_checkout.json +6 -6
  194. data/doc/api/storefront/checkout/updating_a_checkout.json +6 -6
  195. data/doc/api/storefront/contacts/creating_a_contact.json +4 -4
  196. data/doc/api/storefront/email_signups/creating_an_email_signup.json +4 -4
  197. data/doc/api/storefront/email_signups/showing_an_email_signup_content.json +4 -4
  198. data/doc/api/storefront/index.json +7 -0
  199. data/doc/api/storefront/menus/listing_menus.json +5 -5
  200. data/doc/api/storefront/menus/showing_a_menu.json +7 -7
  201. data/doc/api/storefront/orders/listing_the_user_s_orders.json +6 -6
  202. data/doc/api/storefront/orders/showing_an_order.json +7 -7
  203. data/doc/api/storefront/pages/showing_a_page.json +5 -5
  204. data/doc/api/storefront/password_resets/sending_a_forgot_password_email.json +5 -5
  205. data/doc/api/storefront/personalized_recommendations/showing_recommendations_with_a_session_id.json +8 -8
  206. data/doc/api/storefront/personalized_recommendations/showing_recommendations_with_authentication.json +6 -6
  207. data/doc/api/storefront/products/showing_a_product.json +5 -5
  208. data/doc/api/storefront/products/showing_a_product_with_a_specific_sku_selected.json +5 -5
  209. data/doc/api/storefront/recent_views/showing_recent_views_from_authentication.json +6 -6
  210. data/doc/api/storefront/recent_views/showing_recent_views_with_a_session_id.json +7 -7
  211. data/doc/api/storefront/recent_views/updating_recent_views_with_a_session_id.json +3 -3
  212. data/doc/api/storefront/recent_views/updating_recent_views_with_authentication.json +5 -5
  213. data/doc/api/storefront/saved_addresses/creating_a_saved_address.json +6 -6
  214. data/doc/api/storefront/saved_addresses/deleting_a_saved_address.json +6 -6
  215. data/doc/api/storefront/saved_addresses/listing_the_user_s_saved_addresses.json +6 -6
  216. data/doc/api/storefront/saved_addresses/showing_a_saved_address.json +7 -7
  217. data/doc/api/storefront/saved_addresses/updating_a_saved_address.json +7 -7
  218. data/doc/api/storefront/saved_credit_cards/creating_a_saved_credit_card.json +7 -7
  219. data/doc/api/storefront/saved_credit_cards/deleting_a_saved_credit_card.json +6 -6
  220. data/doc/api/storefront/saved_credit_cards/listing_the_user_s_saved_credit_cards.json +6 -6
  221. data/doc/api/storefront/saved_credit_cards/showing_a_saved_credit_card.json +7 -7
  222. data/doc/api/storefront/saved_credit_cards/updating_a_saved_credit_card.json +8 -8
  223. data/doc/api/storefront/searches/showing_search_autocomplete_suggestions.json +4 -4
  224. data/doc/api/storefront/searches/showing_search_results.json +5 -5
  225. data/doc/api/storefront/segmentation/specifying_session_count_for_segmentation.json +10 -10
  226. data/doc/api/storefront/segmentation/using_session_ids_for_segmenting_non_authenticated_users.json +10 -10
  227. data/doc/api/storefront/system_content/showing_system_content.json +5 -5
  228. data/doc/api/storefront/system_content/showing_the_home_page.json +5 -5
  229. data/doc/api/storefront/taxons/showing_a_taxon.json +7 -7
  230. data/doc/api/storefront/validation_errors/checkout_validation_errors.json +8 -8
  231. data/doc/api/storefront/validation_errors/general_validation_errors.json +2 -2
  232. data/lib/tasks/docs.rake +20 -0
  233. data/lib/workarea/api/version.rb +1 -1
  234. data/storefront/test/documentation/workarea/api/storefront/checkouts_documentation_test.rb +21 -0
  235. data/storefront/test/documentation/workarea/api/storefront/validation_documentation_test.rb +1 -1
  236. data/storefront/workarea-api-storefront.gemspec +2 -2
  237. data/workarea-api.gemspec +1 -1
  238. metadata +23 -9
@@ -18,17 +18,17 @@
18
18
  "X-Download-Options": "noopen",
19
19
  "X-Permitted-Cross-Domain-Policies": "none",
20
20
  "Referrer-Policy": "strict-origin-when-cross-origin",
21
- "Date": "Wed, 27 Nov 2019 00:52:48 GMT",
21
+ "Date": "Wed, 19 Aug 2020 13:54:09 GMT",
22
22
  "Content-Type": "application/json; charset=utf-8",
23
23
  "Access-Control-Allow-Origin": "*",
24
24
  "Access-Control-Allow-Headers": "*",
25
25
  "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
26
26
  "X-Requested-With": "",
27
27
  "Vary": "X-Requested-With, X-Workarea-Segments",
28
- "Last-Modified": "Wed, 27 Nov 2019 00:52:48 GMT",
28
+ "Last-Modified": "Wed, 19 Aug 2020 13:54:09 GMT",
29
29
  "Cache-Control": "no-cache, no-store, must-revalidate",
30
- "X-Request-Id": "f3d9d3a1-842e-422e-b717-5c29b14889e8",
31
- "X-Runtime": "0.008132",
30
+ "X-Request-Id": "c7549707-035f-428f-a882-b6f0266fbecf",
31
+ "X-Runtime": "0.013768",
32
32
  "X-Workarea-Segments": "",
33
33
  "Expires": "0",
34
34
  "Content-Length": "1981"
@@ -39,7 +39,7 @@
39
39
  "request_content_type": null,
40
40
  "response_status": 200,
41
41
  "response_status_text": "OK",
42
- "response_body": "{\n \"id\": \"5dddc8e01241596aa5204ce3\",\n \"name\": \"Layout\",\n \"url\": \"http://www.example.com/api/storefront/system_content/Layout\",\n \"browser_title\": \"Layout\",\n \"meta_description\": \"Shop online for Workarea API products\",\n \"content_blocks\": [\n {\n \"id\": \"5dddc8e01241596aa5204ce4\",\n \"type\": \"text\",\n \"area\": \"header_promo\",\n \"data\": {\n \"text\": \"Don't miss our sizzling summer deals!\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 0,\n \"html\": \"<div class=\\\"content-block content-block--text\\\" id=\\\"content_block_5dddc8e01241596aa5204ce4\\\" data-analytics=\\\"{&quot;event&quot;:&quot;contentBlockDisplay&quot;,&quot;payload&quot;:{&quot;id&quot;:&quot;5dddc8e01241596aa5204ce4&quot;,&quot;type&quot;:&quot;text&quot;,&quot;position&quot;:0,&quot;data&quot;:{&quot;text&quot;:&quot;Don&#39;t miss our sizzling summer deals!&quot;}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='text-content-block'>Don't miss our sizzling summer deals!</div>\\n</div>\\n\"\n },\n {\n \"id\": \"5dddc8e01241596aa5204ce5\",\n \"type\": \"text\",\n \"area\": \"footer_navigation\",\n \"data\": {\n \"text\": \"Be the first to received our exclusive discounts\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 0,\n \"html\": \"<div class=\\\"content-block content-block--text\\\" id=\\\"content_block_5dddc8e01241596aa5204ce5\\\" data-analytics=\\\"{&quot;event&quot;:&quot;contentBlockDisplay&quot;,&quot;payload&quot;:{&quot;id&quot;:&quot;5dddc8e01241596aa5204ce5&quot;,&quot;type&quot;:&quot;text&quot;,&quot;position&quot;:0,&quot;data&quot;:{&quot;text&quot;:&quot;Be the first to received our exclusive discounts&quot;}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='text-content-block'>Be the first to received our exclusive discounts</div>\\n</div>\\n\"\n }\n ]\n}",
42
+ "response_body": "{\n \"id\": \"5f3d2f010218236e938cebfe\",\n \"name\": \"Layout\",\n \"url\": \"http://www.example.com/api/storefront/system_content/Layout\",\n \"browser_title\": \"Layout\",\n \"meta_description\": \"Shop online for Workarea API products\",\n \"content_blocks\": [\n {\n \"id\": \"5f3d2f010218236e938cebff\",\n \"type\": \"text\",\n \"area\": \"header_promo\",\n \"data\": {\n \"text\": \"Don't miss our sizzling summer deals!\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 0,\n \"html\": \"<div class=\\\"content-block content-block--text\\\" id=\\\"content_block_5f3d2f010218236e938cebff\\\" data-analytics=\\\"{&quot;event&quot;:&quot;contentBlockDisplay&quot;,&quot;payload&quot;:{&quot;id&quot;:&quot;5f3d2f010218236e938cebff&quot;,&quot;type&quot;:&quot;text&quot;,&quot;position&quot;:0,&quot;data&quot;:{&quot;text&quot;:&quot;Don&#39;t miss our sizzling summer deals!&quot;}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='text-content-block'>Don't miss our sizzling summer deals!</div>\\n</div>\\n\"\n },\n {\n \"id\": \"5f3d2f010218236e938cec00\",\n \"type\": \"text\",\n \"area\": \"footer_navigation\",\n \"data\": {\n \"text\": \"Be the first to received our exclusive discounts\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 0,\n \"html\": \"<div class=\\\"content-block content-block--text\\\" id=\\\"content_block_5f3d2f010218236e938cec00\\\" data-analytics=\\\"{&quot;event&quot;:&quot;contentBlockDisplay&quot;,&quot;payload&quot;:{&quot;id&quot;:&quot;5f3d2f010218236e938cec00&quot;,&quot;type&quot;:&quot;text&quot;,&quot;position&quot;:0,&quot;data&quot;:{&quot;text&quot;:&quot;Be the first to received our exclusive discounts&quot;}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='text-content-block'>Be the first to received our exclusive discounts</div>\\n</div>\\n\"\n }\n ]\n}",
43
43
  "response_content_type": "application/json",
44
44
  "curl": "curl -g \"https://www.example.com/api/storefront/system_content/layout\" -X GET "
45
45
  }
@@ -18,17 +18,17 @@
18
18
  "X-Download-Options": "noopen",
19
19
  "X-Permitted-Cross-Domain-Policies": "none",
20
20
  "Referrer-Policy": "strict-origin-when-cross-origin",
21
- "Date": "Wed, 27 Nov 2019 00:52:48 GMT",
21
+ "Date": "Wed, 19 Aug 2020 13:54:10 GMT",
22
22
  "Content-Type": "application/json; charset=utf-8",
23
23
  "Access-Control-Allow-Origin": "*",
24
24
  "Access-Control-Allow-Headers": "*",
25
25
  "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
26
26
  "X-Requested-With": "",
27
27
  "Vary": "X-Requested-With, X-Workarea-Segments",
28
- "Last-Modified": "Wed, 27 Nov 2019 00:52:48 GMT",
28
+ "Last-Modified": "Wed, 19 Aug 2020 13:54:10 GMT",
29
29
  "Cache-Control": "no-cache, no-store, must-revalidate",
30
- "X-Request-Id": "f924549d-136a-4b93-b820-e6149f37bfc2",
31
- "X-Runtime": "0.008772",
30
+ "X-Request-Id": "3ad54fe0-81b2-4828-89f6-e4514c6621fa",
31
+ "X-Runtime": "0.009666",
32
32
  "X-Workarea-Segments": "",
33
33
  "Expires": "0",
34
34
  "Content-Length": "1830"
@@ -39,7 +39,7 @@
39
39
  "request_content_type": null,
40
40
  "response_status": 200,
41
41
  "response_status_text": "OK",
42
- "response_body": "{\n \"id\": \"5dddc8df1241596aa5204cde\",\n \"name\": \"Home Page\",\n \"url\": \"http://www.example.com/api/storefront/system_content/Home%20Page\",\n \"browser_title\": \"Home Page\",\n \"meta_description\": \"Shop online for Workarea API products\",\n \"content_blocks\": [\n {\n \"id\": \"5dddc8df1241596aa5204cdf\",\n \"type\": \"text\",\n \"area\": \"default\",\n \"data\": {\n \"text\": \"Summer is here!\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 0,\n \"html\": \"<div class=\\\"content-block content-block--text\\\" id=\\\"content_block_5dddc8df1241596aa5204cdf\\\" data-analytics=\\\"{&quot;event&quot;:&quot;contentBlockDisplay&quot;,&quot;payload&quot;:{&quot;id&quot;:&quot;5dddc8df1241596aa5204cdf&quot;,&quot;type&quot;:&quot;text&quot;,&quot;position&quot;:0,&quot;data&quot;:{&quot;text&quot;:&quot;Summer is here!&quot;}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='text-content-block'>Summer is here!</div>\\n</div>\\n\"\n },\n {\n \"id\": \"5dddc8df1241596aa5204ce0\",\n \"type\": \"text\",\n \"area\": \"default\",\n \"data\": {\n \"text\": \"Get 20% off all swimwear\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 1,\n \"html\": \"<div class=\\\"content-block content-block--text\\\" id=\\\"content_block_5dddc8df1241596aa5204ce0\\\" data-analytics=\\\"{&quot;event&quot;:&quot;contentBlockDisplay&quot;,&quot;payload&quot;:{&quot;id&quot;:&quot;5dddc8df1241596aa5204ce0&quot;,&quot;type&quot;:&quot;text&quot;,&quot;position&quot;:1,&quot;data&quot;:{&quot;text&quot;:&quot;Get 20% off all swimwear&quot;}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='text-content-block'>Get 20% off all swimwear</div>\\n</div>\\n\"\n }\n ]\n}",
42
+ "response_body": "{\n \"id\": \"5f3d2f020218236e938cec03\",\n \"name\": \"Home Page\",\n \"url\": \"http://www.example.com/api/storefront/system_content/Home%20Page\",\n \"browser_title\": \"Home Page\",\n \"meta_description\": \"Shop online for Workarea API products\",\n \"content_blocks\": [\n {\n \"id\": \"5f3d2f020218236e938cec04\",\n \"type\": \"text\",\n \"area\": \"default\",\n \"data\": {\n \"text\": \"Summer is here!\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 0,\n \"html\": \"<div class=\\\"content-block content-block--text\\\" id=\\\"content_block_5f3d2f020218236e938cec04\\\" data-analytics=\\\"{&quot;event&quot;:&quot;contentBlockDisplay&quot;,&quot;payload&quot;:{&quot;id&quot;:&quot;5f3d2f020218236e938cec04&quot;,&quot;type&quot;:&quot;text&quot;,&quot;position&quot;:0,&quot;data&quot;:{&quot;text&quot;:&quot;Summer is here!&quot;}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='text-content-block'>Summer is here!</div>\\n</div>\\n\"\n },\n {\n \"id\": \"5f3d2f020218236e938cec05\",\n \"type\": \"text\",\n \"area\": \"default\",\n \"data\": {\n \"text\": \"Get 20% off all swimwear\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 1,\n \"html\": \"<div class=\\\"content-block content-block--text\\\" id=\\\"content_block_5f3d2f020218236e938cec05\\\" data-analytics=\\\"{&quot;event&quot;:&quot;contentBlockDisplay&quot;,&quot;payload&quot;:{&quot;id&quot;:&quot;5f3d2f020218236e938cec05&quot;,&quot;type&quot;:&quot;text&quot;,&quot;position&quot;:1,&quot;data&quot;:{&quot;text&quot;:&quot;Get 20% off all swimwear&quot;}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='text-content-block'>Get 20% off all swimwear</div>\\n</div>\\n\"\n }\n ]\n}",
43
43
  "response_content_type": "application/json",
44
44
  "curl": "curl -g \"https://www.example.com/api/storefront/system_content/home_page\" -X GET "
45
45
  }
@@ -18,30 +18,30 @@
18
18
  "X-Download-Options": "noopen",
19
19
  "X-Permitted-Cross-Domain-Policies": "none",
20
20
  "Referrer-Policy": "strict-origin-when-cross-origin",
21
- "Date": "Wed, 27 Nov 2019 00:52:46 GMT",
21
+ "Date": "Wed, 19 Aug 2020 13:55:29 GMT",
22
22
  "Content-Type": "application/json; charset=utf-8",
23
23
  "Access-Control-Allow-Origin": "*",
24
24
  "Access-Control-Allow-Headers": "*",
25
25
  "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
26
26
  "X-Requested-With": "",
27
27
  "Vary": "X-Requested-With, X-Workarea-Segments",
28
- "Last-Modified": "Wed, 27 Nov 2019 00:52:46 GMT",
28
+ "Last-Modified": "Wed, 19 Aug 2020 13:55:29 GMT",
29
29
  "Cache-Control": "no-cache, no-store, must-revalidate",
30
- "X-Request-Id": "5ceec41f-08e9-4933-a1f9-788147b25053",
31
- "X-Runtime": "0.007104",
30
+ "X-Request-Id": "b0eb5722-8d04-4656-9d95-9aedaebebf17",
31
+ "X-Runtime": "0.013856",
32
32
  "X-Workarea-Segments": "",
33
33
  "Expires": "0",
34
34
  "Content-Length": "534"
35
35
  },
36
36
  "request_method": "GET",
37
- "request_path": "/api/storefront/taxons/5dddc8dd1241596aa5204cd9",
37
+ "request_path": "/api/storefront/taxons/5f3d2f510218236e938cf11a",
38
38
  "request_body": null,
39
39
  "request_content_type": null,
40
40
  "response_status": 200,
41
41
  "response_status_text": "OK",
42
- "response_body": "{\n \"taxon\": {\n \"id\": \"5dddc8dd1241596aa5204cd9\",\n \"url\": \"/api/storefront/taxons/5dddc8dd1241596aa5204cd9\",\n \"name\": \"Mens\",\n \"depth\": 1,\n \"navigable_url\": \"http://example.com/pages/mens\",\n \"parent_id\": \"5dddc8dd1241596aa5204cda\",\n \"parent_ids\": [\n \"5dddc8dd1241596aa5204cda\"\n ],\n \"position\": 0\n },\n \"children\": [\n {\n \"id\": \"5dddc8de1241596aa5204cdb\",\n \"url\": \"/api/storefront/taxons/5dddc8de1241596aa5204cdb\",\n \"name\": \"Sale\",\n \"depth\": 2,\n \"navigable_url\": null,\n \"parent_id\": \"5dddc8dd1241596aa5204cd9\",\n \"parent_ids\": [\n \"5dddc8dd1241596aa5204cda\",\n \"5dddc8dd1241596aa5204cd9\"\n ],\n \"position\": 0\n }\n ]\n}",
42
+ "response_body": "{\n \"taxon\": {\n \"id\": \"5f3d2f510218236e938cf11a\",\n \"url\": \"/api/storefront/taxons/5f3d2f510218236e938cf11a\",\n \"name\": \"Mens\",\n \"depth\": 1,\n \"navigable_url\": \"http://example.com/pages/mens\",\n \"parent_id\": \"5f3d2f510218236e938cf11b\",\n \"parent_ids\": [\n \"5f3d2f510218236e938cf11b\"\n ],\n \"position\": 0\n },\n \"children\": [\n {\n \"id\": \"5f3d2f510218236e938cf11c\",\n \"url\": \"/api/storefront/taxons/5f3d2f510218236e938cf11c\",\n \"name\": \"Sale\",\n \"depth\": 2,\n \"navigable_url\": null,\n \"parent_id\": \"5f3d2f510218236e938cf11a\",\n \"parent_ids\": [\n \"5f3d2f510218236e938cf11b\",\n \"5f3d2f510218236e938cf11a\"\n ],\n \"position\": 0\n }\n ]\n}",
43
43
  "response_content_type": "application/json",
44
- "curl": "curl -g \"https://www.example.com/api/storefront/taxons/5dddc8dd1241596aa5204cd9\" -X GET "
44
+ "curl": "curl -g \"https://www.example.com/api/storefront/taxons/5f3d2f510218236e938cf11a\" -X GET "
45
45
  }
46
46
  ],
47
47
  "resource": "Taxons",
@@ -25,23 +25,23 @@
25
25
  "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
26
26
  "X-Requested-With": "",
27
27
  "Vary": "X-Requested-With, X-Workarea-Segments",
28
- "Last-Modified": "Wed, 27 Nov 2019 00:51:33 GMT",
28
+ "Last-Modified": "Wed, 19 Aug 2020 13:54:56 GMT",
29
29
  "Cache-Control": "no-cache, no-store, must-revalidate",
30
- "X-Request-Id": "1f3d729a-7f8d-47cc-a170-f6dbf096a0bf",
31
- "X-Runtime": "0.447104",
30
+ "X-Request-Id": "042fc2df-60ed-489f-90c0-37926f3dea56",
31
+ "X-Runtime": "0.579544",
32
32
  "X-Workarea-Segments": "",
33
33
  "Expires": "0",
34
34
  "Content-Length": "3271"
35
35
  },
36
36
  "request_method": "PATCH",
37
- "request_path": "/api/storefront/checkouts/65CBE75A6F",
37
+ "request_path": "/api/storefront/checkouts/42F1747F29",
38
38
  "request_body": "{\"email\":\"susanb@\",\"shipping_address\":{\"first_name\":\"\",\"last_name\":\"Baker\",\"street\":\"350 Fifth Avenue\",\"city\":\"New York\",\"region\":\"NY\",\"country\":\"US\",\"postal_code\":\"10118\"},\"billing_address\":{\"first_name\":\"Susan\",\"last_name\":\"Baker\",\"street\":\"\",\"city\":\"New York\",\"region\":\"NY\",\"country\":\"US\",\"postal_code\":\"10118\"}}",
39
39
  "request_content_type": "application/json",
40
- "response_status": 200,
41
- "response_status_text": "OK",
42
- "response_body": "{\n \"order\": {\n \"id\": \"65CBE75A6F\",\n \"url\": \"http://www.example.com/api/storefront/orders/65CBE75A6F\",\n \"user_id\": null,\n \"email\": \"susanb@\",\n \"placed_at\": null,\n \"canceled_at\": null,\n \"promo_codes\": [\n\n ],\n \"requires_shipping\": true,\n \"items\": [\n {\n \"id\": \"5dddc8951241596aa5204b41\",\n \"product_id\": \"VINTEE\",\n \"sku\": \"VT001\",\n \"quantity\": 2,\n \"product_url\": \"http://www.example.com/api/storefront/products/vintage-tee?sku=VT001\",\n \"options\": {\n },\n \"customizations\": {\n },\n \"product_image\": {\n \"urls\": [\n {\n \"type\": \"small\",\n \"url\": \"http://www.example.com/product_images/placeholder/small.jpg?c=1574815751\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1574815751\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1574815751\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1574815751\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1574815751\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1574815751\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1574815751\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1574815751\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1574815751\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1574815751\"\n }\n ]\n },\n \"pricing\": {\n \"price_adjustments\": [\n {\n \"description\": \"Item Subtotal\",\n \"discount\": false,\n \"amount\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n }\n }\n ],\n \"total_price\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_unit_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"customized\": false,\n \"customizations_unit_price\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n }\n }\n }\n ],\n \"pricing\": {\n \"price_adjustments\": [\n\n ],\n \"shipping_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"tax_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"subtotal_price\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"total_price\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"paid_amount\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n }\n },\n \"shipping_service\": null,\n \"tenders\": [\n\n ]\n },\n \"checkout\": {\n \"url\": \"http://www.example.com/api/storefront/checkouts/65CBE75A6F\",\n \"started_at\": \"2019-11-27T00:51:33.506Z\",\n \"shippable\": false,\n \"complete\": false,\n \"addresses\": {\n \"complete\": false,\n \"email\": \"susanb@\",\n \"problems\": [\n \"Email is invalid\"\n ],\n \"shipping_address\": {\n \"id\": \"5dddc8951241596aa5204b48\",\n \"first_name\": \"\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"350 Fifth Avenue\",\n \"street_2\": null,\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": null,\n \"phone_extension\": null,\n \"problems\": [\n \"First name can't be blank\"\n ]\n },\n \"billing_address\": {\n \"id\": \"5dddc8951241596aa5204b49\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"\",\n \"street_2\": null,\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": null,\n \"phone_extension\": null,\n \"problems\": [\n \"Street can't be blank\"\n ]\n }\n },\n \"shipping\": {\n \"complete\": false,\n \"problems\": [\n \"Address is invalid\"\n ],\n \"shipping_service\": null,\n \"shipping_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"shipping_options\": [\n\n ]\n },\n \"payment\": {\n \"complete\": false,\n \"problems\": [\n \"Address is invalid\"\n ],\n \"tenders\": [\n\n ]\n }\n }\n}",
40
+ "response_status": 422,
41
+ "response_status_text": "Unprocessable Entity",
42
+ "response_body": "{\n \"order\": {\n \"id\": \"42F1747F29\",\n \"url\": \"http://www.example.com/api/storefront/orders/42F1747F29\",\n \"user_id\": null,\n \"email\": \"susanb@\",\n \"placed_at\": null,\n \"canceled_at\": null,\n \"promo_codes\": [\n\n ],\n \"requires_shipping\": true,\n \"items\": [\n {\n \"id\": \"5f3d2f300218236e938cee2b\",\n \"product_id\": \"VINTEE\",\n \"sku\": \"VT001\",\n \"quantity\": 2,\n \"product_url\": \"http://www.example.com/api/storefront/products/vintage-tee?sku=VT001\",\n \"options\": {\n },\n \"customizations\": {\n },\n \"product_image\": {\n \"urls\": [\n {\n \"type\": \"small\",\n \"url\": \"http://www.example.com/product_images/placeholder/small.jpg?c=1597845226\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1597845226\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1597845226\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1597845226\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1597845226\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1597845226\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1597845226\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1597845226\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1597845226\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1597845226\"\n }\n ]\n },\n \"pricing\": {\n \"price_adjustments\": [\n {\n \"description\": \"Item Subtotal\",\n \"discount\": false,\n \"amount\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n }\n }\n ],\n \"total_price\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_unit_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"customized\": false,\n \"customizations_unit_price\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n }\n }\n }\n ],\n \"pricing\": {\n \"price_adjustments\": [\n\n ],\n \"shipping_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"tax_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"subtotal_price\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"total_price\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"paid_amount\": {\n \"cents\": 1000.0,\n \"currency_iso\": \"USD\"\n }\n },\n \"shipping_service\": null,\n \"tenders\": [\n\n ]\n },\n \"checkout\": {\n \"url\": \"http://www.example.com/api/storefront/checkouts/42F1747F29\",\n \"started_at\": \"2020-08-19T13:54:56.210Z\",\n \"shippable\": false,\n \"complete\": false,\n \"addresses\": {\n \"complete\": false,\n \"email\": \"susanb@\",\n \"problems\": [\n \"Email is invalid\"\n ],\n \"shipping_address\": {\n \"id\": \"5f3d2f300218236e938cee32\",\n \"first_name\": \"\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"350 Fifth Avenue\",\n \"street_2\": null,\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": null,\n \"phone_extension\": null,\n \"problems\": [\n \"First name can't be blank\"\n ]\n },\n \"billing_address\": {\n \"id\": \"5f3d2f300218236e938cee33\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"\",\n \"street_2\": null,\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": null,\n \"phone_extension\": null,\n \"problems\": [\n \"Street can't be blank\"\n ]\n }\n },\n \"shipping\": {\n \"complete\": false,\n \"problems\": [\n \"Address is invalid\"\n ],\n \"shipping_service\": null,\n \"shipping_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"shipping_options\": [\n\n ]\n },\n \"payment\": {\n \"complete\": false,\n \"problems\": [\n \"Address is invalid\"\n ],\n \"tenders\": [\n\n ]\n }\n }\n}",
43
43
  "response_content_type": "application/json",
44
- "curl": "curl \"https://www.example.com/api/storefront/checkouts/65CBE75A6F\" -d '{\"email\":\"susanb@\",\"shipping_address\":{\"first_name\":\"\",\"last_name\":\"Baker\",\"street\":\"350 Fifth Avenue\",\"city\":\"New York\",\"region\":\"NY\",\"country\":\"US\",\"postal_code\":\"10118\"},\"billing_address\":{\"first_name\":\"Susan\",\"last_name\":\"Baker\",\"street\":\"\",\"city\":\"New York\",\"region\":\"NY\",\"country\":\"US\",\"postal_code\":\"10118\"}}' -X PATCH \\\n\t-H \"Content-Type: application/json\""
44
+ "curl": "curl \"https://www.example.com/api/storefront/checkouts/42F1747F29\" -d '{\"email\":\"susanb@\",\"shipping_address\":{\"first_name\":\"\",\"last_name\":\"Baker\",\"street\":\"350 Fifth Avenue\",\"city\":\"New York\",\"region\":\"NY\",\"country\":\"US\",\"postal_code\":\"10118\"},\"billing_address\":{\"first_name\":\"Susan\",\"last_name\":\"Baker\",\"street\":\"\",\"city\":\"New York\",\"region\":\"NY\",\"country\":\"US\",\"postal_code\":\"10118\"}}' -X PATCH \\\n\t-H \"Content-Type: application/json\""
45
45
  }
46
46
  ],
47
47
  "resource": "Validation Errors",
@@ -21,8 +21,8 @@
21
21
  "Referrer-Policy": "strict-origin-when-cross-origin",
22
22
  "Content-Type": "application/json; charset=utf-8",
23
23
  "Cache-Control": "no-cache, no-store, must-revalidate",
24
- "X-Request-Id": "ba73618c-7816-4930-b249-c07a150c0e9c",
25
- "X-Runtime": "0.007253",
24
+ "X-Request-Id": "08cd60aa-3701-4cba-b912-33cfa24b6354",
25
+ "X-Runtime": "0.008567",
26
26
  "X-Workarea-Segments": "",
27
27
  "Expires": "0",
28
28
  "Content-Length": "59"
@@ -0,0 +1,20 @@
1
+ load 'rails/test_unit/testing.rake'
2
+
3
+ namespace :workarea do
4
+ namespace :test do
5
+ desc 'Generate Workarea API Documentation'
6
+ task api_docs: :'workarea:prepare' do
7
+ roots = [Workarea::Core::Engine.root] +
8
+ Workarea::Plugin.installed.map(&:root) +
9
+ [Rails.root]
10
+
11
+ ENV['GENERATE_API_DOCS'] = 'true'
12
+
13
+ Rails::TestUnit::Runner.rake_run(
14
+ roots
15
+ .map { |r| FileList["#{r}/test/documentation/**/*_test.rb"] }
16
+ .reduce(&:+)
17
+ )
18
+ end
19
+ end
20
+ end
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module Api
3
- VERSION = '4.5.0'.freeze
3
+ VERSION = '4.5.6'.freeze
4
4
  end
5
5
  end
@@ -85,6 +85,27 @@ module Workarea
85
85
  end
86
86
  end
87
87
 
88
+ def test_and_document_update_failure
89
+ description 'Failure to update a checkout'
90
+ route storefront_api.checkout_path(':id')
91
+ explanation <<-EOS
92
+ This is an example of what occurs when you fail to send in the correct parameters for your checkout.
93
+ EOS
94
+
95
+ record_request do
96
+ patch storefront_api.checkout_path(@order),
97
+ as: :json,
98
+ params: {
99
+ email: 'susanb@workarea.com',
100
+ shipping_address: address.except(:first_name),
101
+ billing_address: address.except(:last_name),
102
+ shipping_service: 'Express'
103
+ }
104
+
105
+ assert_equal(422, response.status)
106
+ end
107
+ end
108
+
88
109
  def test_and_document_complete
89
110
  description 'Completing a checkout'
90
111
  route storefront_api.complete_checkout_path(':id')
@@ -72,7 +72,7 @@ module Workarea
72
72
  }
73
73
  }
74
74
 
75
- assert_equal(200, response.status)
75
+ assert_equal(422, response.status)
76
76
  end
77
77
  end
78
78
  end
@@ -14,6 +14,6 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.required_ruby_version = '>= 2.3.0'
16
16
 
17
- s.add_dependency 'workarea', '~> 3.x', '>= 3.2.x'
18
- s.add_dependency 'responders', '~> 2.4.0'
17
+ s.add_dependency 'workarea', '~> 3.x', '>= 3.5.x'
18
+ s.add_dependency 'responders', '~> 3.0.0'
19
19
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.required_ruby_version = '>= 2.3.0'
19
19
 
20
- s.add_dependency 'workarea', '~> 3.x', '>= 3.4.x'
20
+ s.add_dependency 'workarea', '~> 3.x', '>= 3.5.x'
21
21
  s.add_dependency 'workarea-api-storefront', Workarea::Api::VERSION
22
22
  s.add_dependency 'workarea-api-admin', Workarea::Api::VERSION
23
23
  s.add_dependency 'raddocs', '~> 2.2.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 4.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-11-27 00:00:00.000000000 Z
12
+ date: 2020-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: workarea
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: 3.x
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 3.4.x
23
+ version: 3.5.x
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,35 +30,35 @@ dependencies:
30
30
  version: 3.x
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 3.4.x
33
+ version: 3.5.x
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: workarea-api-storefront
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.5.0
40
+ version: 4.5.6
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 4.5.0
47
+ version: 4.5.6
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: workarea-api-admin
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 4.5.0
54
+ version: 4.5.6
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 4.5.0
61
+ version: 4.5.6
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: raddocs
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -163,6 +163,7 @@ files:
163
163
  - admin/config/locales/en.yml
164
164
  - admin/config/routes.rb
165
165
  - admin/lib/workarea/api/admin.rb
166
+ - admin/lib/workarea/api/admin/date_indexes.rb
166
167
  - admin/lib/workarea/api/admin/engine.rb
167
168
  - admin/lib/workarea/api/admin/swagger.rb
168
169
  - admin/test/documentation/workarea/api/admin/categories_documentation_test.rb
@@ -332,10 +333,18 @@ files:
332
333
  - doc/api/admin/discounts/updating_discounts.json
333
334
  - doc/api/admin/email_signups/listing_email_signups.json
334
335
  - doc/api/admin/email_signups/showing_an_email_signup.json
336
+ - doc/api/admin/email_signups/showing_an_email_signup_by_email.json
337
+ - doc/api/admin/email_signups/showing_an_email_signup_by_id.json
335
338
  - doc/api/admin/fulfillment/listing_fulfillments.json
336
339
  - doc/api/admin/fulfillment/marking_items_as_canceled.json
337
340
  - doc/api/admin/fulfillment/marking_items_as_shipped.json
338
341
  - doc/api/admin/fulfillment/showing_fulfillment.json
342
+ - doc/api/admin/global_functionality/dealing_with_locales.json
343
+ - doc/api/admin/global_functionality/filtering_by_created_at_time_stamp.json
344
+ - doc/api/admin/global_functionality/filtering_by_updated_time_stamp.json
345
+ - doc/api/admin/global_functionality/paging_results.json
346
+ - doc/api/admin/global_functionality/retrieving_addtional_pages_of_results.json
347
+ - doc/api/admin/global_functionality/sorting_results.json
339
348
  - doc/api/admin/index.json
340
349
  - doc/api/admin/inventory_skus/bulk_upserting_inventory_skus.json
341
350
  - doc/api/admin/inventory_skus/creating_an_inventory_sku.json
@@ -356,6 +365,7 @@ files:
356
365
  - doc/api/admin/navigation_taxonomy/updating_a_navigation_taxons.json
357
366
  - doc/api/admin/orders/listing_orders.json
358
367
  - doc/api/admin/orders/showing_an_order.json
368
+ - doc/api/admin/orders/viewing_orders_by_date_range.json
359
369
  - doc/api/admin/pages/bulk_upserting_pages.json
360
370
  - doc/api/admin/pages/creating_a_page.json
361
371
  - doc/api/admin/pages/listing_pages.json
@@ -449,6 +459,8 @@ files:
449
459
  - doc/api/admin/users/listing_users.json
450
460
  - doc/api/admin/users/removing_a_user.json
451
461
  - doc/api/admin/users/showing_a_user.json
462
+ - doc/api/admin/users/showing_a_user_by_email.json
463
+ - doc/api/admin/users/showing_a_user_by_id.json
452
464
  - doc/api/admin/users/updating_a_user.json
453
465
  - doc/api/admin/variants/creating_a_product_variant.json
454
466
  - doc/api/admin/variants/listing_product_variants.json
@@ -475,6 +487,7 @@ files:
475
487
  - doc/api/storefront/categories/showing_a_category.json
476
488
  - doc/api/storefront/categories/showing_a_listing_of_categories.json
477
489
  - doc/api/storefront/checkout/completing_a_checkout.json
490
+ - doc/api/storefront/checkout/failure_to_update_a_checkout.json
478
491
  - doc/api/storefront/checkout/showing_a_checkout.json
479
492
  - doc/api/storefront/checkout/updating_a_checkout.json
480
493
  - doc/api/storefront/contacts/creating_a_contact.json
@@ -514,6 +527,7 @@ files:
514
527
  - doc/api/storefront/taxons/showing_a_taxon.json
515
528
  - doc/api/storefront/validation_errors/checkout_validation_errors.json
516
529
  - doc/api/storefront/validation_errors/general_validation_errors.json
530
+ - lib/tasks/docs.rake
517
531
  - lib/workarea/api.rb
518
532
  - lib/workarea/api/curl.rb
519
533
  - lib/workarea/api/documentation.rb
@@ -743,7 +757,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
743
757
  - !ruby/object:Gem::Version
744
758
  version: '0'
745
759
  requirements: []
746
- rubygems_version: 3.0.6
760
+ rubygems_version: 3.0.3
747
761
  signing_key:
748
762
  specification_version: 4
749
763
  summary: Adds a JSON REST API to the Workarea Commerce Platform