workarea-api 4.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +20 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
- data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.gitignore +24 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +807 -0
- data/CODE_OF_CONDUCT.md +3 -0
- data/CONTRIBUTING.md +3 -0
- data/Gemfile +21 -0
- data/LICENSE +52 -0
- data/README.md +107 -0
- data/Rakefile +121 -0
- data/admin/.gitignore +12 -0
- data/admin/README.md +82 -0
- data/admin/Rakefile +10 -0
- data/admin/app/assets/images/workarea/api/admin/icons/api.svg +1 -0
- data/admin/app/controllers/workarea/api/admin/application_controller.rb +73 -0
- data/admin/app/controllers/workarea/api/admin/categories_controller.rb +305 -0
- data/admin/app/controllers/workarea/api/admin/category_product_rules_controller.rb +232 -0
- data/admin/app/controllers/workarea/api/admin/content_assets_controller.rb +299 -0
- data/admin/app/controllers/workarea/api/admin/content_controller.rb +268 -0
- data/admin/app/controllers/workarea/api/admin/discounts_controller.rb +271 -0
- data/admin/app/controllers/workarea/api/admin/email_signups_controller.rb +108 -0
- data/admin/app/controllers/workarea/api/admin/fulfillments_controller.rb +268 -0
- data/admin/app/controllers/workarea/api/admin/inventory_skus_controller.rb +305 -0
- data/admin/app/controllers/workarea/api/admin/navigation_menus_controller.rb +267 -0
- data/admin/app/controllers/workarea/api/admin/navigation_taxons_controller.rb +305 -0
- data/admin/app/controllers/workarea/api/admin/orders_controller.rb +160 -0
- data/admin/app/controllers/workarea/api/admin/pages_controller.rb +305 -0
- data/admin/app/controllers/workarea/api/admin/payment_profiles_controller.rb +305 -0
- data/admin/app/controllers/workarea/api/admin/payment_transactions_controller.rb +108 -0
- data/admin/app/controllers/workarea/api/admin/payments_controller.rb +115 -0
- data/admin/app/controllers/workarea/api/admin/prices_controller.rb +232 -0
- data/admin/app/controllers/workarea/api/admin/pricing_skus_controller.rb +305 -0
- data/admin/app/controllers/workarea/api/admin/product_images_controller.rb +232 -0
- data/admin/app/controllers/workarea/api/admin/products_controller.rb +305 -0
- data/admin/app/controllers/workarea/api/admin/promo_code_lists_controller.rb +305 -0
- data/admin/app/controllers/workarea/api/admin/recommendation_settings_controller.rb +122 -0
- data/admin/app/controllers/workarea/api/admin/redirects_controller.rb +305 -0
- data/admin/app/controllers/workarea/api/admin/releases_controller.rb +304 -0
- data/admin/app/controllers/workarea/api/admin/saved_addresses_controller.rb +232 -0
- data/admin/app/controllers/workarea/api/admin/saved_credit_cards_controller.rb +256 -0
- data/admin/app/controllers/workarea/api/admin/shipping_rates_controller.rb +232 -0
- data/admin/app/controllers/workarea/api/admin/shipping_services_controller.rb +299 -0
- data/admin/app/controllers/workarea/api/admin/shippings_controller.rb +105 -0
- data/admin/app/controllers/workarea/api/admin/swagger_controller.rb +41 -0
- data/admin/app/controllers/workarea/api/admin/tax_categories_controller.rb +242 -0
- data/admin/app/controllers/workarea/api/admin/tax_rates_controller.rb +292 -0
- data/admin/app/controllers/workarea/api/admin/users_controller.rb +296 -0
- data/admin/app/controllers/workarea/api/admin/variants_controller.rb +232 -0
- data/admin/app/models/workarea/api/admin/bulk_upsert.rb +74 -0
- data/admin/app/models/workarea/user.decorator +7 -0
- data/admin/app/views/workarea/admin/users/_api_permissions.html.haml +6 -0
- data/admin/app/workers/workarea/perform_api_bulk_upsert.rb +15 -0
- data/admin/bin/rails +18 -0
- data/admin/config/initializers/append_points.rb +4 -0
- data/admin/config/initializers/config.rb +15 -0
- data/admin/config/locales/en.yml +9 -0
- data/admin/config/routes.rb +81 -0
- data/admin/lib/workarea/api/admin/engine.rb +14 -0
- data/admin/lib/workarea/api/admin/swagger.rb +106 -0
- data/admin/lib/workarea/api/admin.rb +21 -0
- data/admin/test/documentation/workarea/api/admin/categories_documentation_test.rb +106 -0
- data/admin/test/documentation/workarea/api/admin/category_product_rules_documentation_test.rb +78 -0
- data/admin/test/documentation/workarea/api/admin/content_assets_documentation_test.rb +94 -0
- data/admin/test/documentation/workarea/api/admin/content_documentation_test.rb +87 -0
- data/admin/test/documentation/workarea/api/admin/discounts_documentation_test.rb +85 -0
- data/admin/test/documentation/workarea/api/admin/email_signups_documentation_test.rb +41 -0
- data/admin/test/documentation/workarea/api/admin/fulfillment_documentation_test.rb +84 -0
- data/admin/test/documentation/workarea/api/admin/inventory_skus_documentation_test.rb +95 -0
- data/admin/test/documentation/workarea/api/admin/navigation_menus_documentation_test.rb +81 -0
- data/admin/test/documentation/workarea/api/admin/navigation_taxons_documentation_test.rb +94 -0
- data/admin/test/documentation/workarea/api/admin/orders_documentation_test.rb +65 -0
- data/admin/test/documentation/workarea/api/admin/pages_documentation_test.rb +93 -0
- data/admin/test/documentation/workarea/api/admin/payment_profiles_documentation_test.rb +98 -0
- data/admin/test/documentation/workarea/api/admin/payment_transactions_documentation_test.rb +43 -0
- data/admin/test/documentation/workarea/api/admin/payments_documentation_test.rb +41 -0
- data/admin/test/documentation/workarea/api/admin/prices_documentation_test.rb +82 -0
- data/admin/test/documentation/workarea/api/admin/pricing_skus_documentation_test.rb +95 -0
- data/admin/test/documentation/workarea/api/admin/product_images_documentation_test.rb +101 -0
- data/admin/test/documentation/workarea/api/admin/products_documentation_test.rb +96 -0
- data/admin/test/documentation/workarea/api/admin/promo_code_lists_documentation_test.rb +94 -0
- data/admin/test/documentation/workarea/api/admin/recommendation_settings_documentation_test.rb +37 -0
- data/admin/test/documentation/workarea/api/admin/redirects_documentation_test.rb +96 -0
- data/admin/test/documentation/workarea/api/admin/release_changes_documentation_test.rb +32 -0
- data/admin/test/documentation/workarea/api/admin/releases_documentation_test.rb +93 -0
- data/admin/test/documentation/workarea/api/admin/saved_addresses_documentation_test.rb +92 -0
- data/admin/test/documentation/workarea/api/admin/saved_credit_cards_documentation_test.rb +86 -0
- data/admin/test/documentation/workarea/api/admin/shipping_rates_documentation_test.rb +78 -0
- data/admin/test/documentation/workarea/api/admin/shipping_services_documentation_test.rb +93 -0
- data/admin/test/documentation/workarea/api/admin/shippings_documentation_test.rb +41 -0
- data/admin/test/documentation/workarea/api/admin/tax_categories_documentation_test.rb +95 -0
- data/admin/test/documentation/workarea/api/admin/tax_rates_documentation_test.rb +78 -0
- data/admin/test/documentation/workarea/api/admin/users_documentation_test.rb +99 -0
- data/admin/test/documentation/workarea/api/admin/variants_documentation_test.rb +80 -0
- data/admin/test/dummy/Rakefile +7 -0
- data/admin/test/dummy/app/assets/config/manifest.js +4 -0
- data/admin/test/dummy/app/assets/images/.keep +0 -0
- data/admin/test/dummy/app/assets/javascripts/application.js +13 -0
- data/admin/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/admin/test/dummy/app/controllers/application_controller.rb +3 -0
- data/admin/test/dummy/app/controllers/concerns/.keep +0 -0
- data/admin/test/dummy/app/helpers/application_helper.rb +2 -0
- data/admin/test/dummy/app/jobs/application_job.rb +2 -0
- data/admin/test/dummy/app/mailers/.keep +0 -0
- data/admin/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/admin/test/dummy/app/models/.keep +0 -0
- data/admin/test/dummy/app/models/concerns/.keep +0 -0
- data/admin/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/admin/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/admin/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/admin/test/dummy/bin/bundle +3 -0
- data/admin/test/dummy/bin/rails +4 -0
- data/admin/test/dummy/bin/rake +4 -0
- data/admin/test/dummy/bin/setup +34 -0
- data/admin/test/dummy/bin/update +29 -0
- data/admin/test/dummy/config/application.rb +25 -0
- data/admin/test/dummy/config/boot.rb +5 -0
- data/admin/test/dummy/config/cable.yml +9 -0
- data/admin/test/dummy/config/environment.rb +5 -0
- data/admin/test/dummy/config/environments/development.rb +55 -0
- data/admin/test/dummy/config/environments/production.rb +86 -0
- data/admin/test/dummy/config/environments/test.rb +43 -0
- data/admin/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/admin/test/dummy/config/initializers/assets.rb +11 -0
- data/admin/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/admin/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/admin/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/admin/test/dummy/config/initializers/inflections.rb +16 -0
- data/admin/test/dummy/config/initializers/mime_types.rb +4 -0
- data/admin/test/dummy/config/initializers/new_framework_defaults.rb +21 -0
- data/admin/test/dummy/config/initializers/session_store.rb +3 -0
- data/admin/test/dummy/config/initializers/workarea.rb +8 -0
- data/admin/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/admin/test/dummy/config/locales/en.yml +23 -0
- data/admin/test/dummy/config/puma.rb +47 -0
- data/admin/test/dummy/config/routes.rb +6 -0
- data/admin/test/dummy/config/secrets.yml +22 -0
- data/admin/test/dummy/config/spring.rb +6 -0
- data/admin/test/dummy/config.ru +4 -0
- data/admin/test/dummy/db/seeds.rb +2 -0
- data/admin/test/dummy/log/.keep +0 -0
- data/admin/test/dummy/public/404.html +67 -0
- data/admin/test/dummy/public/422.html +67 -0
- data/admin/test/dummy/public/500.html +66 -0
- data/admin/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/admin/test/dummy/public/apple-touch-icon.png +0 -0
- data/admin/test/dummy/public/favicon.ico +1 -0
- data/admin/test/integration/workarea/api/admin/audit_log_integration_test.rb +20 -0
- data/admin/test/integration/workarea/api/admin/authentication_integration_test.rb +61 -0
- data/admin/test/integration/workarea/api/admin/categories_integration_test.rb +64 -0
- data/admin/test/integration/workarea/api/admin/category_product_rules_integration_test.rb +58 -0
- data/admin/test/integration/workarea/api/admin/content_assets_integration_test.rb +65 -0
- data/admin/test/integration/workarea/api/admin/content_integration_test.rb +59 -0
- data/admin/test/integration/workarea/api/admin/discounts_integration_test.rb +64 -0
- data/admin/test/integration/workarea/api/admin/email_signups_integration_test.rb +32 -0
- data/admin/test/integration/workarea/api/admin/error_handling_integration_test.rb +16 -0
- data/admin/test/integration/workarea/api/admin/fulfillments_integration_test.rb +62 -0
- data/admin/test/integration/workarea/api/admin/inventory_skus_integration_test.rb +70 -0
- data/admin/test/integration/workarea/api/admin/navigation_menus_integration_test.rb +54 -0
- data/admin/test/integration/workarea/api/admin/navigation_taxons_integration_test.rb +63 -0
- data/admin/test/integration/workarea/api/admin/orders_integration_test.rb +53 -0
- data/admin/test/integration/workarea/api/admin/pages_integration_test.rb +64 -0
- data/admin/test/integration/workarea/api/admin/payment_profiles_integration_test.rb +75 -0
- data/admin/test/integration/workarea/api/admin/payment_transactions_integration_test.rb +45 -0
- data/admin/test/integration/workarea/api/admin/payments_integration_test.rb +29 -0
- data/admin/test/integration/workarea/api/admin/prices_integration_test.rb +55 -0
- data/admin/test/integration/workarea/api/admin/pricing_skus_integration_test.rb +72 -0
- data/admin/test/integration/workarea/api/admin/product_images_integration_test.rb +56 -0
- data/admin/test/integration/workarea/api/admin/products_integration_test.rb +66 -0
- data/admin/test/integration/workarea/api/admin/promo_code_lists_integration_test.rb +70 -0
- data/admin/test/integration/workarea/api/admin/recommendation_settings_integration_test.rb +41 -0
- data/admin/test/integration/workarea/api/admin/redirects_integration_test.rb +69 -0
- data/admin/test/integration/workarea/api/admin/release_changes_integration_test.rb +32 -0
- data/admin/test/integration/workarea/api/admin/releases_integration_test.rb +60 -0
- data/admin/test/integration/workarea/api/admin/saved_addresses_integration_test.rb +70 -0
- data/admin/test/integration/workarea/api/admin/saved_credit_cards_integration_test.rb +76 -0
- data/admin/test/integration/workarea/api/admin/shipping_rates_integration_test.rb +54 -0
- data/admin/test/integration/workarea/api/admin/shipping_services_integration_test.rb +64 -0
- data/admin/test/integration/workarea/api/admin/shippings_integration_test.rb +34 -0
- data/admin/test/integration/workarea/api/admin/tax_categories_integration_test.rb +64 -0
- data/admin/test/integration/workarea/api/admin/tax_rates_integration_test.rb +66 -0
- data/admin/test/integration/workarea/api/admin/users_integration_test.rb +67 -0
- data/admin/test/integration/workarea/api/admin/variants_integration_test.rb +59 -0
- data/admin/test/models/workarea/api/admin/bulk_upsert_test.rb +79 -0
- data/admin/test/test_helper.rb +10 -0
- data/admin/test/vcr_cassettes/product_image_from_url.yml +43 -0
- data/admin/workarea-api-admin.gemspec +18 -0
- data/app/views/workarea/api/docs/engine_index.haml +1 -0
- data/app/views/workarea/api/docs/example.haml +114 -0
- data/app/views/workarea/api/docs/index.haml +28 -0
- data/app/views/workarea/api/docs/javascripts.haml +31 -0
- data/app/views/workarea/api/docs/javascripts_head.haml +5 -0
- data/app/views/workarea/api/docs/layout.haml +32 -0
- data/app/views/workarea/api/docs/logo.haml +1 -0
- data/app/views/workarea/api/docs/nav.haml +7 -0
- data/app/views/workarea/api/docs/stylesheets.haml +278 -0
- data/config/initializers/raddocs.rb +12 -0
- data/config/initializers/workarea.rb +3 -0
- data/config/routes.rb +5 -0
- data/doc/api/admin/categories/bulk_upserting_categories.json +42 -0
- data/doc/api/admin/categories/creating_a_category.json +46 -0
- data/doc/api/admin/categories/listing_categories.json +58 -0
- data/doc/api/admin/categories/removing_a_category.json +42 -0
- data/doc/api/admin/categories/showing_a_category.json +44 -0
- data/doc/api/admin/categories/updating_a_category.json +42 -0
- data/doc/api/admin/category_product_rules/creating_a_category_product_rule.json +46 -0
- data/doc/api/admin/category_product_rules/listing_category_product_rules.json +44 -0
- data/doc/api/admin/category_product_rules/removing_a_category_product_rule.json +42 -0
- data/doc/api/admin/category_product_rules/updating_a_category_product_rule.json +42 -0
- data/doc/api/admin/content/bulk_upserting_content.json +42 -0
- data/doc/api/admin/content/creating_content.json +46 -0
- data/doc/api/admin/content/listing_content.json +57 -0
- data/doc/api/admin/content/showing_content.json +44 -0
- data/doc/api/admin/content/updating_content.json +42 -0
- data/doc/api/admin/content_assets/bulk_upserting_content_assets.json +42 -0
- data/doc/api/admin/content_assets/creating_a_content_asset.json +46 -0
- data/doc/api/admin/content_assets/listing_content_assets.json +58 -0
- data/doc/api/admin/content_assets/removing_a_content_asset.json +42 -0
- data/doc/api/admin/content_assets/showing_a_content_asset.json +44 -0
- data/doc/api/admin/content_assets/updating_a_content_asset.json +42 -0
- data/doc/api/admin/discounts/creating_a_discount.json +46 -0
- data/doc/api/admin/discounts/listing_discounts.json +58 -0
- data/doc/api/admin/discounts/removing_a_discount.json +42 -0
- data/doc/api/admin/discounts/showing_a_discount.json +44 -0
- data/doc/api/admin/discounts/updating_discounts.json +42 -0
- data/doc/api/admin/email_signups/listing_email_signups.json +58 -0
- data/doc/api/admin/email_signups/showing_an_email_signup.json +44 -0
- data/doc/api/admin/fulfillment/listing_fulfillments.json +55 -0
- data/doc/api/admin/fulfillment/marking_items_as_canceled.json +46 -0
- data/doc/api/admin/fulfillment/marking_items_as_shipped.json +46 -0
- data/doc/api/admin/fulfillment/showing_fulfillment.json +44 -0
- data/doc/api/admin/index.json +1219 -0
- data/doc/api/admin/inventory_skus/bulk_upserting_inventory_skus.json +42 -0
- data/doc/api/admin/inventory_skus/creating_an_inventory_sku.json +46 -0
- data/doc/api/admin/inventory_skus/listing_inventory_skus.json +58 -0
- data/doc/api/admin/inventory_skus/removing_an_inventory_sku.json +42 -0
- data/doc/api/admin/inventory_skus/showing_an_inventory_sku.json +44 -0
- data/doc/api/admin/inventory_skus/updating_an_inventory_sku.json +42 -0
- data/doc/api/admin/navigation_menus/creating_a_menu.json +46 -0
- data/doc/api/admin/navigation_menus/listing_menus.json +58 -0
- data/doc/api/admin/navigation_menus/removing_a_navigation_menu.json +42 -0
- data/doc/api/admin/navigation_menus/showing_a_navigation_menu.json +44 -0
- data/doc/api/admin/navigation_menus/updating_a_navigation_menus.json +42 -0
- data/doc/api/admin/navigation_taxonomy/bulk_upserting_navigation_taxons.json +42 -0
- data/doc/api/admin/navigation_taxonomy/creating_a_taxon.json +46 -0
- data/doc/api/admin/navigation_taxonomy/listing_taxons.json +58 -0
- data/doc/api/admin/navigation_taxonomy/removing_a_navigation_taxon.json +42 -0
- data/doc/api/admin/navigation_taxonomy/showing_a_navigation_taxon.json +44 -0
- data/doc/api/admin/navigation_taxonomy/updating_a_navigation_taxons.json +42 -0
- data/doc/api/admin/orders/listing_orders.json +58 -0
- data/doc/api/admin/orders/showing_an_order.json +44 -0
- data/doc/api/admin/orders/viewing_orders_by_date_range.json +68 -0
- data/doc/api/admin/pages/bulk_upserting_pages.json +42 -0
- data/doc/api/admin/pages/creating_a_page.json +46 -0
- data/doc/api/admin/pages/listing_pages.json +58 -0
- data/doc/api/admin/pages/removing_a_page.json +42 -0
- data/doc/api/admin/pages/showing_a_page.json +44 -0
- data/doc/api/admin/pages/updating_a_page.json +42 -0
- data/doc/api/admin/payment_profiles/bulk_upserting_payment_profiles.json +42 -0
- data/doc/api/admin/payment_profiles/creating_a_payment_profile.json +46 -0
- data/doc/api/admin/payment_profiles/listing_payment_profiles.json +58 -0
- data/doc/api/admin/payment_profiles/removing_a_payment_profile.json +42 -0
- data/doc/api/admin/payment_profiles/showing_a_payment_profile.json +44 -0
- data/doc/api/admin/payment_profiles/updating_a_payment_profiles.json +42 -0
- data/doc/api/admin/payment_transactions/listing_payment_transactions.json +58 -0
- data/doc/api/admin/payment_transactions/showing_a_payment_transaction.json +44 -0
- data/doc/api/admin/payments/listing_payments.json +58 -0
- data/doc/api/admin/payments/showing_an_payment.json +44 -0
- data/doc/api/admin/prices/creating_a_pricing_sku_price.json +46 -0
- data/doc/api/admin/prices/listing_pricing_sku_prices.json +58 -0
- data/doc/api/admin/prices/removing_a_pricing_sku_price.json +42 -0
- data/doc/api/admin/prices/updating_a_pricing_sku_price.json +42 -0
- data/doc/api/admin/pricing_skus/bulk_upserting_pricing_skus.json +42 -0
- data/doc/api/admin/pricing_skus/creating_an_pricing_sku.json +46 -0
- data/doc/api/admin/pricing_skus/listing_pricing_skus.json +58 -0
- data/doc/api/admin/pricing_skus/removing_an_pricing_sku.json +42 -0
- data/doc/api/admin/pricing_skus/showing_an_pricing_sku.json +44 -0
- data/doc/api/admin/pricing_skus/updating_an_pricing_sku.json +42 -0
- data/doc/api/admin/product_images/creating_a_product_image_from_base64.json +46 -0
- data/doc/api/admin/product_images/creating_a_product_image_from_url.json +46 -0
- data/doc/api/admin/product_images/listing_product_images.json +44 -0
- data/doc/api/admin/product_images/removing_a_product_image.json +42 -0
- data/doc/api/admin/product_images/updating_a_product_image.json +42 -0
- data/doc/api/admin/products/bulk_upserting_products.json +42 -0
- data/doc/api/admin/products/creating_a_product.json +46 -0
- data/doc/api/admin/products/listing_products.json +58 -0
- data/doc/api/admin/products/removing_a_product.json +42 -0
- data/doc/api/admin/products/showing_a_product.json +44 -0
- data/doc/api/admin/products/updating_a_product.json +42 -0
- data/doc/api/admin/promo_code_lists/bulk_upserting_promo_code_lists.json +42 -0
- data/doc/api/admin/promo_code_lists/creating_a_promo_code_list.json +46 -0
- data/doc/api/admin/promo_code_lists/listing_promo_code_lists.json +58 -0
- data/doc/api/admin/promo_code_lists/removing_a_promo_code_list.json +42 -0
- data/doc/api/admin/promo_code_lists/showing_a_promo_code_list.json +44 -0
- data/doc/api/admin/promo_code_lists/updating_a_promo_code_list.json +42 -0
- data/doc/api/admin/recommendation_settings/showing_recommendation_settings.json +44 -0
- data/doc/api/admin/recommendation_settings/updating_recommendation_settings.json +42 -0
- data/doc/api/admin/redirects/bulk_upserting_redirects.json +42 -0
- data/doc/api/admin/redirects/creating_a_redirect.json +46 -0
- data/doc/api/admin/redirects/listing_redirects.json +58 -0
- data/doc/api/admin/redirects/removing_a_redirect.json +42 -0
- data/doc/api/admin/redirects/showing_a_redirect.json +44 -0
- data/doc/api/admin/redirects/updating_a_redirects.json +42 -0
- data/doc/api/admin/release_changes/adding_changes_to_a_release.json +43 -0
- data/doc/api/admin/releases/bulk_upserting_releases.json +42 -0
- data/doc/api/admin/releases/creating_a_release.json +46 -0
- data/doc/api/admin/releases/listing_releases.json +58 -0
- data/doc/api/admin/releases/removing_a_release.json +42 -0
- data/doc/api/admin/releases/showing_a_release.json +44 -0
- data/doc/api/admin/releases/updating_a_release.json +42 -0
- data/doc/api/admin/saved_addresses/creating_a_saved_address.json +46 -0
- data/doc/api/admin/saved_addresses/listing_saved_address.json +44 -0
- data/doc/api/admin/saved_addresses/removing_a_saved_address.json +42 -0
- data/doc/api/admin/saved_addresses/updating_a_saved_address.json +42 -0
- data/doc/api/admin/saved_credit_cards/creating_a_saved_credit_card.json +46 -0
- data/doc/api/admin/saved_credit_cards/listing_saved_credit_cards.json +55 -0
- data/doc/api/admin/saved_credit_cards/removing_a_saved_credit_card.json +42 -0
- data/doc/api/admin/saved_credit_cards/updating_a_saved_credit_card.json +42 -0
- data/doc/api/admin/shipping/listing_shipments.json +58 -0
- data/doc/api/admin/shipping/showing_a_shipment.json +44 -0
- data/doc/api/admin/shipping_rates/creating_a_shipping_rate.json +46 -0
- data/doc/api/admin/shipping_rates/listing_shipping_rates.json +44 -0
- data/doc/api/admin/shipping_rates/removing_a_shipping_rate.json +42 -0
- data/doc/api/admin/shipping_rates/updating_a_shipping_rate.json +42 -0
- data/doc/api/admin/shipping_services/bulk_upserting_shipping_services.json +42 -0
- data/doc/api/admin/shipping_services/creating_a_shipping_service.json +46 -0
- data/doc/api/admin/shipping_services/listing_shipping_services.json +58 -0
- data/doc/api/admin/shipping_services/removing_a_shipping_service.json +42 -0
- data/doc/api/admin/shipping_services/showing_a_shipping_service.json +44 -0
- data/doc/api/admin/shipping_services/updating_a_shipping_service.json +42 -0
- data/doc/api/admin/tax_categories/bulk_upserting_tax_categories.json +42 -0
- data/doc/api/admin/tax_categories/creating_a_tax_category.json +46 -0
- data/doc/api/admin/tax_categories/listing_tax_categories.json +55 -0
- data/doc/api/admin/tax_categories/removing_a_tax_category.json +42 -0
- data/doc/api/admin/tax_categories/showing_a_tax_category.json +44 -0
- data/doc/api/admin/tax_categories/updating_a_tax_categories.json +42 -0
- data/doc/api/admin/tax_rates/creating_a_tax_rate.json +46 -0
- data/doc/api/admin/tax_rates/listing_tax_rates.json +44 -0
- data/doc/api/admin/tax_rates/removing_a_tax_rate.json +42 -0
- data/doc/api/admin/tax_rates/updating_a_tax_rate.json +42 -0
- data/doc/api/admin/users/bulk_upserting_users.json +42 -0
- data/doc/api/admin/users/creating_a_user.json +46 -0
- data/doc/api/admin/users/listing_users.json +58 -0
- data/doc/api/admin/users/removing_a_user.json +42 -0
- data/doc/api/admin/users/showing_a_user.json +44 -0
- data/doc/api/admin/users/updating_a_user.json +42 -0
- data/doc/api/admin/variants/creating_a_product_variant.json +46 -0
- data/doc/api/admin/variants/listing_product_variants.json +44 -0
- data/doc/api/admin/variants/removing_a_product_variant.json +42 -0
- data/doc/api/admin/variants/updating_a_product_variant.json +42 -0
- data/doc/api/storefront/accounts/creating_an_account.json +51 -0
- data/doc/api/storefront/accounts/getting_account_details.json +50 -0
- data/doc/api/storefront/accounts/updating_an_account.json +52 -0
- data/doc/api/storefront/analytics/saving_a_category_view.json +39 -0
- data/doc/api/storefront/analytics/saving_a_product_view.json +39 -0
- data/doc/api/storefront/analytics/saving_a_search.json +39 -0
- data/doc/api/storefront/analytics/saving_a_search_abandonment.json +38 -0
- data/doc/api/storefront/analytics/saving_filters.json +38 -0
- data/doc/api/storefront/assets/showing_an_asset.json +50 -0
- data/doc/api/storefront/authentication/creating_an_authentication_token.json +51 -0
- data/doc/api/storefront/authentication/refreshing_an_authentication_token.json +52 -0
- data/doc/api/storefront/authentication/using_an_authentication_token.json +51 -0
- data/doc/api/storefront/cart/adding_a_promo_code.json +52 -0
- data/doc/api/storefront/cart/adding_an_item.json +52 -0
- data/doc/api/storefront/cart/creating_a_new_cart_for_a_user.json +52 -0
- data/doc/api/storefront/cart/creating_a_new_guest_cart.json +51 -0
- data/doc/api/storefront/cart/delete_an_item.json +52 -0
- data/doc/api/storefront/cart/listing_user_s_carts.json +51 -0
- data/doc/api/storefront/cart/showing_cart.json +51 -0
- data/doc/api/storefront/cart/updating_an_item.json +52 -0
- data/doc/api/storefront/categories/showing_a_category.json +64 -0
- data/doc/api/storefront/categories/showing_a_listing_of_categories.json +55 -0
- data/doc/api/storefront/checkout/completing_a_checkout.json +51 -0
- data/doc/api/storefront/checkout/showing_a_checkout.json +50 -0
- data/doc/api/storefront/checkout/updating_a_checkout.json +51 -0
- data/doc/api/storefront/contacts/creating_a_contact.json +51 -0
- data/doc/api/storefront/email_signups/creating_an_email_signup.json +51 -0
- data/doc/api/storefront/email_signups/showing_an_email_signup_content.json +50 -0
- data/doc/api/storefront/index.json +527 -0
- data/doc/api/storefront/menus/listing_menus.json +51 -0
- data/doc/api/storefront/menus/showing_a_menu.json +51 -0
- data/doc/api/storefront/orders/listing_the_user_s_orders.json +51 -0
- data/doc/api/storefront/orders/showing_an_order.json +51 -0
- data/doc/api/storefront/pages/showing_a_page.json +51 -0
- data/doc/api/storefront/password_resets/sending_a_forgot_password_email.json +50 -0
- data/doc/api/storefront/personalized_recommendations/showing_recommendations_with_a_session_id.json +55 -0
- data/doc/api/storefront/personalized_recommendations/showing_recommendations_with_authentication.json +51 -0
- data/doc/api/storefront/products/showing_a_product.json +51 -0
- data/doc/api/storefront/products/showing_a_product_with_a_specific_sku_selected.json +55 -0
- data/doc/api/storefront/recent_views/showing_recent_views_from_authentication.json +51 -0
- data/doc/api/storefront/recent_views/showing_recent_views_with_a_session_id.json +55 -0
- data/doc/api/storefront/recent_views/updating_recent_views_with_a_session_id.json +53 -0
- data/doc/api/storefront/recent_views/updating_recent_views_with_authentication.json +51 -0
- data/doc/api/storefront/saved_addresses/creating_a_saved_address.json +51 -0
- data/doc/api/storefront/saved_addresses/deleting_a_saved_address.json +48 -0
- data/doc/api/storefront/saved_addresses/listing_the_user_s_saved_addresses.json +51 -0
- data/doc/api/storefront/saved_addresses/showing_a_saved_address.json +50 -0
- data/doc/api/storefront/saved_addresses/updating_a_saved_address.json +51 -0
- data/doc/api/storefront/saved_credit_cards/creating_a_saved_credit_card.json +51 -0
- data/doc/api/storefront/saved_credit_cards/deleting_a_saved_credit_card.json +48 -0
- data/doc/api/storefront/saved_credit_cards/listing_the_user_s_saved_credit_cards.json +51 -0
- data/doc/api/storefront/saved_credit_cards/showing_a_saved_credit_card.json +50 -0
- data/doc/api/storefront/saved_credit_cards/updating_a_saved_credit_card.json +51 -0
- data/doc/api/storefront/searches/showing_search_autocomplete_suggestions.json +52 -0
- data/doc/api/storefront/searches/showing_search_results.json +69 -0
- data/doc/api/storefront/system_content/showing_system_content.json +51 -0
- data/doc/api/storefront/system_content/showing_the_home_page.json +51 -0
- data/doc/api/storefront/taxons/showing_a_taxon.json +51 -0
- data/doc/api/storefront/validation_errors/checkout_validation_errors.json +51 -0
- data/doc/api/storefront/validation_errors/general_validation_errors.json +45 -0
- data/lib/workarea/api/curl.rb +86 -0
- data/lib/workarea/api/documentation.rb +61 -0
- data/lib/workarea/api/documentation_test.rb +210 -0
- data/lib/workarea/api/engine.rb +8 -0
- data/lib/workarea/api/version.rb +5 -0
- data/lib/workarea/api.rb +18 -0
- data/storefront/.gitignore +12 -0
- data/storefront/README.md +58 -0
- data/storefront/Rakefile +10 -0
- data/storefront/app/controllers/workarea/api/storefront/accounts_controller.rb +31 -0
- data/storefront/app/controllers/workarea/api/storefront/analytics_controller.rb +41 -0
- data/storefront/app/controllers/workarea/api/storefront/application_controller.rb +65 -0
- data/storefront/app/controllers/workarea/api/storefront/assets_controller.rb +11 -0
- data/storefront/app/controllers/workarea/api/storefront/authentication.rb +30 -0
- data/storefront/app/controllers/workarea/api/storefront/authentication_tokens_controller.rb +50 -0
- data/storefront/app/controllers/workarea/api/storefront/cart_items_controller.rb +100 -0
- data/storefront/app/controllers/workarea/api/storefront/carts_controller.rb +47 -0
- data/storefront/app/controllers/workarea/api/storefront/categories_controller.rb +25 -0
- data/storefront/app/controllers/workarea/api/storefront/checkouts_controller.rb +117 -0
- data/storefront/app/controllers/workarea/api/storefront/contacts_controller.rb +20 -0
- data/storefront/app/controllers/workarea/api/storefront/current_checkout.rb +60 -0
- data/storefront/app/controllers/workarea/api/storefront/email_signups_controller.rb +15 -0
- data/storefront/app/controllers/workarea/api/storefront/menus_controller.rb +19 -0
- data/storefront/app/controllers/workarea/api/storefront/orders_controller.rb +32 -0
- data/storefront/app/controllers/workarea/api/storefront/pages_controller.rb +14 -0
- data/storefront/app/controllers/workarea/api/storefront/password_resets_controller.rb +17 -0
- data/storefront/app/controllers/workarea/api/storefront/products_controller.rb +17 -0
- data/storefront/app/controllers/workarea/api/storefront/recent_views_controller.rb +46 -0
- data/storefront/app/controllers/workarea/api/storefront/recommendations_controller.rb +22 -0
- data/storefront/app/controllers/workarea/api/storefront/saved_addresses_controller.rb +38 -0
- data/storefront/app/controllers/workarea/api/storefront/saved_credit_cards_controller.rb +54 -0
- data/storefront/app/controllers/workarea/api/storefront/searches_controller.rb +29 -0
- data/storefront/app/controllers/workarea/api/storefront/system_content_controller.rb +16 -0
- data/storefront/app/controllers/workarea/api/storefront/taxons_controller.rb +20 -0
- data/storefront/app/controllers/workarea/api/storefront/user_activity.rb +36 -0
- data/storefront/app/controllers/workarea/storefront/application_controller.decorator +12 -0
- data/storefront/app/helpers/workarea/api/storefront/application_helper.rb +15 -0
- data/storefront/app/helpers/workarea/api/storefront/checkouts_helper.rb +11 -0
- data/storefront/app/helpers/workarea/api/storefront/content_blocks_helper.rb +38 -0
- data/storefront/app/models/workarea/catalog/category.decorator +7 -0
- data/storefront/app/models/workarea/user/authentication_token.rb +33 -0
- data/storefront/app/models/workarea/user.decorator +8 -0
- data/storefront/app/view_models/workarea/api/storefront/search_suggestion_view_model.rb +21 -0
- data/storefront/app/views/workarea/api/storefront/accounts/_account.json.jbuilder +7 -0
- data/storefront/app/views/workarea/api/storefront/accounts/create.json.jbuilder +7 -0
- data/storefront/app/views/workarea/api/storefront/accounts/show.json.jbuilder +1 -0
- data/storefront/app/views/workarea/api/storefront/assets/show.json.jbuilder +4 -0
- data/storefront/app/views/workarea/api/storefront/authentication_tokens/_authentication_token.json.jbuilder +2 -0
- data/storefront/app/views/workarea/api/storefront/authentication_tokens/create.json.jbuilder +1 -0
- data/storefront/app/views/workarea/api/storefront/authentication_tokens/update.json.jbuilder +1 -0
- data/storefront/app/views/workarea/api/storefront/cart_items/item.json.jbuilder +9 -0
- data/storefront/app/views/workarea/api/storefront/carts/index.json.jbuilder +4 -0
- data/storefront/app/views/workarea/api/storefront/carts/show.json.jbuilder +1 -0
- data/storefront/app/views/workarea/api/storefront/categories/_category.json.jbuilder +4 -0
- data/storefront/app/views/workarea/api/storefront/categories/index.json.jbuilder +3 -0
- data/storefront/app/views/workarea/api/storefront/categories/show.json.jbuilder +30 -0
- data/storefront/app/views/workarea/api/storefront/checkouts/_shipping_options.json.jbuilder +4 -0
- data/storefront/app/views/workarea/api/storefront/checkouts/show.json.jbuilder +17 -0
- data/storefront/app/views/workarea/api/storefront/checkouts/steps/_addresses.json.jbuilder +19 -0
- data/storefront/app/views/workarea/api/storefront/checkouts/steps/_payment.json.jbuilder +9 -0
- data/storefront/app/views/workarea/api/storefront/checkouts/steps/_shipping.json.jbuilder +9 -0
- data/storefront/app/views/workarea/api/storefront/content_blocks/_block.json.jbuilder +7 -0
- data/storefront/app/views/workarea/api/storefront/email_signups/create.json.jbuilder +2 -0
- data/storefront/app/views/workarea/api/storefront/email_signups/show.json.jbuilder +4 -0
- data/storefront/app/views/workarea/api/storefront/facets/_range.json.jbuilder +8 -0
- data/storefront/app/views/workarea/api/storefront/facets/_terms.json.jbuilder +8 -0
- data/storefront/app/views/workarea/api/storefront/fulfillments/_fulfillment.json.jbuilder +18 -0
- data/storefront/app/views/workarea/api/storefront/menus/_menu.json.jbuilder +11 -0
- data/storefront/app/views/workarea/api/storefront/menus/index.json.jbuilder +3 -0
- data/storefront/app/views/workarea/api/storefront/menus/show.json.jbuilder +1 -0
- data/storefront/app/views/workarea/api/storefront/orders/_item.json.jbuilder +26 -0
- data/storefront/app/views/workarea/api/storefront/orders/_order.json.jbuilder +42 -0
- data/storefront/app/views/workarea/api/storefront/orders/index.json.jbuilder +4 -0
- data/storefront/app/views/workarea/api/storefront/orders/show.json.jbuilder +7 -0
- data/storefront/app/views/workarea/api/storefront/orders/tenders/_credit_card.json.jbuilder +6 -0
- data/storefront/app/views/workarea/api/storefront/orders/tenders/_store_credit.json.jbuilder +2 -0
- data/storefront/app/views/workarea/api/storefront/pages/show.json.jbuilder +16 -0
- data/storefront/app/views/workarea/api/storefront/products/_image_urls.json.jbuilder +5 -0
- data/storefront/app/views/workarea/api/storefront/products/_product.json.jbuilder +41 -0
- data/storefront/app/views/workarea/api/storefront/products/show.json.jbuilder +9 -0
- data/storefront/app/views/workarea/api/storefront/recent_views/show.json.jbuilder +8 -0
- data/storefront/app/views/workarea/api/storefront/recommendations/show.json.jbuilder +3 -0
- data/storefront/app/views/workarea/api/storefront/saved_addresses/_saved_address.json.jbuilder +2 -0
- data/storefront/app/views/workarea/api/storefront/saved_addresses/index.json.jbuilder +4 -0
- data/storefront/app/views/workarea/api/storefront/saved_addresses/show.json.jbuilder +2 -0
- data/storefront/app/views/workarea/api/storefront/saved_credit_cards/_card.json.jbuilder +9 -0
- data/storefront/app/views/workarea/api/storefront/saved_credit_cards/index.json.jbuilder +4 -0
- data/storefront/app/views/workarea/api/storefront/saved_credit_cards/show.json.jbuilder +2 -0
- data/storefront/app/views/workarea/api/storefront/searches/index.json.jbuilder +1 -0
- data/storefront/app/views/workarea/api/storefront/searches/show.json.jbuilder +19 -0
- data/storefront/app/views/workarea/api/storefront/shared/_address.json.jbuilder +12 -0
- data/storefront/app/views/workarea/api/storefront/shared/_pagination.json.jbuilder +11 -0
- data/storefront/app/views/workarea/api/storefront/system_content/show.json.jbuilder +12 -0
- data/storefront/app/views/workarea/api/storefront/taxons/_taxon.json.jbuilder +10 -0
- data/storefront/app/views/workarea/api/storefront/taxons/show.json.jbuilder +7 -0
- data/storefront/app/workers/workarea/remove_authentication_tokens_on_password_changes.rb +19 -0
- data/storefront/bin/rails +18 -0
- data/storefront/config/initializers/config.rb +2 -0
- data/storefront/config/locales/en.yml +13 -0
- data/storefront/config/routes.rb +41 -0
- data/storefront/lib/workarea/api/storefront/engine.rb +10 -0
- data/storefront/lib/workarea/api/storefront.rb +15 -0
- data/storefront/test/documentation/workarea/api/storefront/accounts_documentation_test.rb +70 -0
- data/storefront/test/documentation/workarea/api/storefront/analytics_documentation_test.rb +51 -0
- data/storefront/test/documentation/workarea/api/storefront/assets_documentation_test.rb +32 -0
- data/storefront/test/documentation/workarea/api/storefront/authentication_documentation_test.rb +84 -0
- data/storefront/test/documentation/workarea/api/storefront/cart_items_documentation_test.rb +104 -0
- data/storefront/test/documentation/workarea/api/storefront/carts_documentation_test.rb +121 -0
- data/storefront/test/documentation/workarea/api/storefront/categories_documentation_test.rb +90 -0
- data/storefront/test/documentation/workarea/api/storefront/checkouts_documentation_test.rb +142 -0
- data/storefront/test/documentation/workarea/api/storefront/contacts_documentation_test.rb +39 -0
- data/storefront/test/documentation/workarea/api/storefront/email_signups_documentation_test.rb +53 -0
- data/storefront/test/documentation/workarea/api/storefront/menus_documentation_test.rb +67 -0
- data/storefront/test/documentation/workarea/api/storefront/orders_documentation_test.rb +127 -0
- data/storefront/test/documentation/workarea/api/storefront/pages_documentation_test.rb +66 -0
- data/storefront/test/documentation/workarea/api/storefront/password_resets_documentation_test.rb +30 -0
- data/storefront/test/documentation/workarea/api/storefront/products_documentation_test.rb +64 -0
- data/storefront/test/documentation/workarea/api/storefront/recent_views_documentation_test.rb +116 -0
- data/storefront/test/documentation/workarea/api/storefront/recommendations_documentation_test.rb +68 -0
- data/storefront/test/documentation/workarea/api/storefront/saved_addresses_documentation_test.rb +129 -0
- data/storefront/test/documentation/workarea/api/storefront/saved_credit_cards_documentation_test.rb +129 -0
- data/storefront/test/documentation/workarea/api/storefront/searches_documentation_test.rb +88 -0
- data/storefront/test/documentation/workarea/api/storefront/system_content_documentation_test.rb +66 -0
- data/storefront/test/documentation/workarea/api/storefront/taxons_documentation_test.rb +37 -0
- data/storefront/test/documentation/workarea/api/storefront/validation_documentation_test.rb +81 -0
- data/storefront/test/dummy/Rakefile +7 -0
- data/storefront/test/dummy/app/assets/config/manifest.js +4 -0
- data/storefront/test/dummy/app/assets/images/.keep +0 -0
- data/storefront/test/dummy/app/assets/javascripts/application.js +13 -0
- data/storefront/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/storefront/test/dummy/app/controllers/application_controller.rb +3 -0
- data/storefront/test/dummy/app/controllers/concerns/.keep +0 -0
- data/storefront/test/dummy/app/helpers/application_helper.rb +2 -0
- data/storefront/test/dummy/app/jobs/application_job.rb +2 -0
- data/storefront/test/dummy/app/mailers/.keep +0 -0
- data/storefront/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/storefront/test/dummy/app/models/.keep +0 -0
- data/storefront/test/dummy/app/models/concerns/.keep +0 -0
- data/storefront/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/storefront/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/storefront/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/storefront/test/dummy/bin/bundle +3 -0
- data/storefront/test/dummy/bin/rails +4 -0
- data/storefront/test/dummy/bin/rake +4 -0
- data/storefront/test/dummy/bin/setup +34 -0
- data/storefront/test/dummy/bin/update +29 -0
- data/storefront/test/dummy/config/application.rb +25 -0
- data/storefront/test/dummy/config/boot.rb +5 -0
- data/storefront/test/dummy/config/cable.yml +9 -0
- data/storefront/test/dummy/config/environment.rb +5 -0
- data/storefront/test/dummy/config/environments/development.rb +55 -0
- data/storefront/test/dummy/config/environments/production.rb +86 -0
- data/storefront/test/dummy/config/environments/test.rb +43 -0
- data/storefront/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/storefront/test/dummy/config/initializers/assets.rb +11 -0
- data/storefront/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/storefront/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/storefront/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/storefront/test/dummy/config/initializers/inflections.rb +16 -0
- data/storefront/test/dummy/config/initializers/mime_types.rb +4 -0
- data/storefront/test/dummy/config/initializers/new_framework_defaults.rb +21 -0
- data/storefront/test/dummy/config/initializers/session_store.rb +3 -0
- data/storefront/test/dummy/config/initializers/workarea.rb +8 -0
- data/storefront/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/storefront/test/dummy/config/locales/en.yml +23 -0
- data/storefront/test/dummy/config/puma.rb +47 -0
- data/storefront/test/dummy/config/routes.rb +6 -0
- data/storefront/test/dummy/config/secrets.yml +22 -0
- data/storefront/test/dummy/config/spring.rb +6 -0
- data/storefront/test/dummy/config.ru +4 -0
- data/storefront/test/dummy/db/seeds.rb +2 -0
- data/storefront/test/dummy/log/.keep +0 -0
- data/storefront/test/dummy/public/404.html +67 -0
- data/storefront/test/dummy/public/422.html +67 -0
- data/storefront/test/dummy/public/500.html +66 -0
- data/storefront/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/storefront/test/dummy/public/apple-touch-icon.png +0 -0
- data/storefront/test/dummy/public/favicon.ico +1 -0
- data/storefront/test/integration/workarea/api/storefront/accounts_integration_test.rb +49 -0
- data/storefront/test/integration/workarea/api/storefront/analytics_integration_test.rb +36 -0
- data/storefront/test/integration/workarea/api/storefront/assets_integration_test.rb +24 -0
- data/storefront/test/integration/workarea/api/storefront/authentication_integration_test.rb +50 -0
- data/storefront/test/integration/workarea/api/storefront/authentication_tokens_integration_test.rb +87 -0
- data/storefront/test/integration/workarea/api/storefront/cart_items_integration_test.rb +149 -0
- data/storefront/test/integration/workarea/api/storefront/carts_integration_test.rb +114 -0
- data/storefront/test/integration/workarea/api/storefront/categories_integration_test.rb +84 -0
- data/storefront/test/integration/workarea/api/storefront/checkouts_integration_test.rb +203 -0
- data/storefront/test/integration/workarea/api/storefront/contacts_integration_test.rb +28 -0
- data/storefront/test/integration/workarea/api/storefront/email_signups_integration_test.rb +35 -0
- data/storefront/test/integration/workarea/api/storefront/menus_integration_test.rb +53 -0
- data/storefront/test/integration/workarea/api/storefront/orders_integration_test.rb +115 -0
- data/storefront/test/integration/workarea/api/storefront/pages_integration_test.rb +57 -0
- data/storefront/test/integration/workarea/api/storefront/password_resets_integration_test.rb +20 -0
- data/storefront/test/integration/workarea/api/storefront/products_integration_test.rb +50 -0
- data/storefront/test/integration/workarea/api/storefront/recent_views_integration_test.rb +118 -0
- data/storefront/test/integration/workarea/api/storefront/recommendations_integration_test.rb +51 -0
- data/storefront/test/integration/workarea/api/storefront/saved_addresses_integration_test.rb +100 -0
- data/storefront/test/integration/workarea/api/storefront/saved_credit_cards_integration_test.rb +107 -0
- data/storefront/test/integration/workarea/api/storefront/searches_integration_test.rb +128 -0
- data/storefront/test/integration/workarea/api/storefront/system_content_integration_test.rb +35 -0
- data/storefront/test/integration/workarea/api/storefront/taxons_integration_test.rb +44 -0
- data/storefront/test/integration/workarea/api/storefront/user_carts_integration_test.rb +55 -0
- data/storefront/test/models/workarea/user/authentication_token_test.rb +30 -0
- data/storefront/test/support/authentication_test.rb +25 -0
- data/storefront/test/support/orders_test.rb +18 -0
- data/storefront/test/test_helper.rb +10 -0
- data/storefront/workarea-api-storefront.gemspec +18 -0
- data/workarea-api.gemspec +25 -0
- metadata +741 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"parameters": [
|
3
|
+
|
4
|
+
],
|
5
|
+
"response_fields": [
|
6
|
+
|
7
|
+
],
|
8
|
+
"requests": [
|
9
|
+
{
|
10
|
+
"request_headers": {
|
11
|
+
"Authorization": "Token token=\"VCLZLZNytgSk4eNoMvB6fiEd\""
|
12
|
+
},
|
13
|
+
"request_query_parameters": {
|
14
|
+
},
|
15
|
+
"response_headers": {
|
16
|
+
"X-Frame-Options": "SAMEORIGIN",
|
17
|
+
"X-XSS-Protection": "1; mode=block",
|
18
|
+
"X-Content-Type-Options": "nosniff",
|
19
|
+
"X-Download-Options": "noopen",
|
20
|
+
"X-Permitted-Cross-Domain-Policies": "none",
|
21
|
+
"Referrer-Policy": "strict-origin-when-cross-origin",
|
22
|
+
"Content-Type": "application/json; charset=utf-8",
|
23
|
+
"Access-Control-Allow-Origin": "*",
|
24
|
+
"Access-Control-Allow-Headers": "*",
|
25
|
+
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
26
|
+
"X-Requested-With": "",
|
27
|
+
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
|
+
"ETag": "W/\"1163dbf0c33850e8e2585e30e3fb94da\"",
|
29
|
+
"Cache-Control": "no-cache, no-store, must-revalidate",
|
30
|
+
"X-Request-Id": "801fbb0b-a79e-4df0-ad1f-135934c99600",
|
31
|
+
"X-Runtime": "0.028632",
|
32
|
+
"Expires": "0",
|
33
|
+
"Content-Length": "6389"
|
34
|
+
},
|
35
|
+
"request_method": "GET",
|
36
|
+
"request_path": "/api/storefront/orders",
|
37
|
+
"request_body": null,
|
38
|
+
"request_content_type": null,
|
39
|
+
"response_status": 200,
|
40
|
+
"response_status_text": "OK",
|
41
|
+
"response_body": "{\n \"user_id\": \"5d5dbce1d4322a4b69d78a50\",\n \"orders\": [\n {\n \"id\": \"5FD19B695B\",\n \"url\": \"http://www.example.com/api/storefront/orders/5FD19B695B\",\n \"user_id\": \"5d5dbce1d4322a4b69d78a50\",\n \"email\": \"sbaker@workarea.com\",\n \"placed_at\": \"2019-08-21T21:51:31.859Z\",\n \"canceled_at\": null,\n \"promo_codes\": [\n\n ],\n \"requires_shipping\": true,\n \"items\": [\n {\n \"id\": \"5d5dbce2d4322a4b69d78a5a\",\n \"product_id\": \"EC647996A2\",\n \"sku\": \"PROD3\",\n \"quantity\": 1,\n \"product_url\": \"http://www.example.com/api/storefront/products/product-three?sku=PROD3\",\n \"options\": {\n },\n \"customizations\": {\n \"foo\": \"bar\"\n },\n \"product_image\": {\n \"urls\": [\n {\n \"type\": \"small\",\n \"url\": \"http://www.example.com/product_images/placeholder/small.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1566424156\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1566424156\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1566424156\"\n }\n ]\n },\n \"pricing\": {\n \"price_adjustments\": [\n {\n \"description\": \"Item Subtotal\",\n \"discount\": false,\n \"amount\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n }\n }\n ],\n \"total_price\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_unit_price\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n },\n \"original_price\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n },\n \"customized\": true,\n \"customizations_unit_price\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n }\n }\n },\n {\n \"id\": \"5d5dbce2d4322a4b69d78a57\",\n \"product_id\": \"12DF7369C8\",\n \"sku\": \"PROD2\",\n \"quantity\": 1,\n \"product_url\": \"http://www.example.com/api/storefront/products/product-two?sku=PROD2\",\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=1566424156\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1566424156\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1566424156\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1566424156\"\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\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"original_price\": {\n \"cents\": 1000.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 \"id\": \"5d5dbce2d4322a4b69d78a54\",\n \"product_id\": \"1AFBE84648\",\n \"sku\": \"PROD1\",\n \"quantity\": 2,\n \"product_url\": \"http://www.example.com/api/storefront/products/product-one?sku=PROD1\",\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=1566424156\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1566424156\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1566424156\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1566424156\"\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\": 100.0,\n \"currency_iso\": \"USD\"\n },\n \"tax_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"subtotal_price\": {\n \"cents\": 4000.0,\n \"currency_iso\": \"USD\"\n },\n \"total_price\": {\n \"cents\": 4100.0,\n \"currency_iso\": \"USD\"\n },\n \"paid_amount\": {\n \"cents\": 4100.0,\n \"currency_iso\": \"USD\"\n }\n },\n \"shipping_service\": \"Express\",\n \"shipping_address\": {\n \"id\": \"5d5dbce2d4322a4b69d78a5e\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"350 Fifth Avenue\",\n \"street_2\": \"Second Floor\",\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": \"6465552390\",\n \"phone_extension\": null\n },\n \"billing_address\": {\n \"id\": \"5d5dbce2d4322a4b69d78a72\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"350 Fifth Avenue\",\n \"street_2\": \"Second Floor\",\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": \"6465552390\",\n \"phone_extension\": null\n },\n \"tenders\": [\n {\n \"type\": \"credit_card\",\n \"amount\": {\n \"cents\": 4100.0,\n \"currency_iso\": \"USD\"\n },\n \"issuer\": \"Test Card\",\n \"display_number\": \"XXXX-XXXX-XXXX-1\",\n \"month\": 1,\n \"year\": 2020\n }\n ]\n }\n ]\n}",
|
42
|
+
"response_content_type": "application/json",
|
43
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/orders\" -X GET \\\n\t-H \"Authorization: Token token=\\\"VCLZLZNytgSk4eNoMvB6fiEd\\\"\""
|
44
|
+
}
|
45
|
+
],
|
46
|
+
"resource": "Orders",
|
47
|
+
"description": "Listing the user's orders",
|
48
|
+
"route": "/api/storefront/orders",
|
49
|
+
"explanation": " This endpoints returns recently placed orders for a customer. Use it\n for showing an order history for the customer.\n",
|
50
|
+
"http_method": "GET"
|
51
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"parameters": [
|
3
|
+
|
4
|
+
],
|
5
|
+
"response_fields": [
|
6
|
+
|
7
|
+
],
|
8
|
+
"requests": [
|
9
|
+
{
|
10
|
+
"request_headers": {
|
11
|
+
"Authorization": "Token token=\"3KoD46iQWsj9GcFv3StnTmTp\""
|
12
|
+
},
|
13
|
+
"request_query_parameters": {
|
14
|
+
},
|
15
|
+
"response_headers": {
|
16
|
+
"X-Frame-Options": "SAMEORIGIN",
|
17
|
+
"X-XSS-Protection": "1; mode=block",
|
18
|
+
"X-Content-Type-Options": "nosniff",
|
19
|
+
"X-Download-Options": "noopen",
|
20
|
+
"X-Permitted-Cross-Domain-Policies": "none",
|
21
|
+
"Referrer-Policy": "strict-origin-when-cross-origin",
|
22
|
+
"Content-Type": "application/json; charset=utf-8",
|
23
|
+
"Access-Control-Allow-Origin": "*",
|
24
|
+
"Access-Control-Allow-Headers": "*",
|
25
|
+
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
26
|
+
"X-Requested-With": "",
|
27
|
+
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
|
+
"ETag": "W/\"00be926cf0b3981ce08c4d54f11c9e29\"",
|
29
|
+
"Cache-Control": "no-cache, no-store, must-revalidate",
|
30
|
+
"X-Request-Id": "e0353fff-f011-4f9c-9e09-aa2f0d8321ea",
|
31
|
+
"X-Runtime": "0.038223",
|
32
|
+
"Expires": "0",
|
33
|
+
"Content-Length": "11595"
|
34
|
+
},
|
35
|
+
"request_method": "GET",
|
36
|
+
"request_path": "/api/storefront/orders/4B5A26891C",
|
37
|
+
"request_body": null,
|
38
|
+
"request_content_type": null,
|
39
|
+
"response_status": 200,
|
40
|
+
"response_status_text": "OK",
|
41
|
+
"response_body": "{\n \"order\": {\n \"id\": \"4B5A26891C\",\n \"url\": \"http://www.example.com/api/storefront/orders/4B5A26891C\",\n \"user_id\": \"5d5dbcded4322a4b69d789f6\",\n \"email\": \"sbaker@workarea.com\",\n \"placed_at\": \"2019-08-21T21:51:28.274Z\",\n \"canceled_at\": null,\n \"promo_codes\": [\n\n ],\n \"requires_shipping\": true,\n \"items\": [\n {\n \"id\": \"5d5dbcded4322a4b69d78a00\",\n \"product_id\": \"FE98C1877E\",\n \"sku\": \"PROD3\",\n \"quantity\": 1,\n \"product_url\": \"http://www.example.com/api/storefront/products/product-three?sku=PROD3\",\n \"options\": {\n },\n \"customizations\": {\n \"foo\": \"bar\"\n },\n \"product_image\": {\n \"urls\": [\n {\n \"type\": \"small\",\n \"url\": \"http://www.example.com/product_images/placeholder/small.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1566424156\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1566424156\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1566424156\"\n }\n ]\n },\n \"pricing\": {\n \"price_adjustments\": [\n {\n \"description\": \"Item Subtotal\",\n \"discount\": false,\n \"amount\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n }\n }\n ],\n \"total_price\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_unit_price\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n },\n \"original_price\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n },\n \"customized\": true,\n \"customizations_unit_price\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n }\n }\n },\n {\n \"id\": \"5d5dbcded4322a4b69d789fd\",\n \"product_id\": \"34615B56C8\",\n \"sku\": \"PROD2\",\n \"quantity\": 1,\n \"product_url\": \"http://www.example.com/api/storefront/products/product-two?sku=PROD2\",\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=1566424156\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1566424156\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1566424156\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1566424156\"\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\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"original_price\": {\n \"cents\": 1000.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 \"id\": \"5d5dbcded4322a4b69d789fa\",\n \"product_id\": \"BFAF72E85F\",\n \"sku\": \"PROD1\",\n \"quantity\": 2,\n \"product_url\": \"http://www.example.com/api/storefront/products/product-one?sku=PROD1\",\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=1566424156\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1566424156\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1566424156\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1566424156\"\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\": 100.0,\n \"currency_iso\": \"USD\"\n },\n \"tax_total\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n },\n \"subtotal_price\": {\n \"cents\": 4000.0,\n \"currency_iso\": \"USD\"\n },\n \"total_price\": {\n \"cents\": 4100.0,\n \"currency_iso\": \"USD\"\n },\n \"paid_amount\": {\n \"cents\": 4100.0,\n \"currency_iso\": \"USD\"\n }\n },\n \"shipping_service\": \"Express\",\n \"shipping_address\": {\n \"id\": \"5d5dbcded4322a4b69d78a04\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"350 Fifth Avenue\",\n \"street_2\": \"Second Floor\",\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": \"6465552390\",\n \"phone_extension\": null\n },\n \"billing_address\": {\n \"id\": \"5d5dbcdfd4322a4b69d78a18\",\n \"first_name\": \"Susan\",\n \"last_name\": \"Baker\",\n \"company\": null,\n \"street\": \"350 Fifth Avenue\",\n \"street_2\": \"Second Floor\",\n \"city\": \"New York\",\n \"country\": \"US\",\n \"region\": \"NY\",\n \"postal_code\": \"10118\",\n \"phone_number\": \"6465552390\",\n \"phone_extension\": null\n },\n \"tenders\": [\n {\n \"type\": \"credit_card\",\n \"amount\": {\n \"cents\": 4100.0,\n \"currency_iso\": \"USD\"\n },\n \"issuer\": \"Test Card\",\n \"display_number\": \"XXXX-XXXX-XXXX-1\",\n \"month\": 1,\n \"year\": 2020\n }\n ]\n },\n \"fulfillment\": {\n \"status\": \"Partially Shipped\",\n \"packages\": [\n {\n \"tracking_number\": \"1z\",\n \"tracking_link\": \"http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=1z\",\n \"items\": [\n {\n \"id\": \"5d5dbcded4322a4b69d789fa\",\n \"product_id\": \"BFAF72E85F\",\n \"sku\": \"PROD1\",\n \"quantity\": 2,\n \"product_url\": \"http://www.example.com/api/storefront/products/product-one?sku=PROD1\",\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=1566424156\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1566424156\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1566424156\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1566424156\"\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 }\n ],\n \"pending_items\": [\n {\n \"id\": \"5d5dbcded4322a4b69d78a00\",\n \"product_id\": \"FE98C1877E\",\n \"sku\": \"PROD3\",\n \"quantity\": 1,\n \"product_url\": \"http://www.example.com/api/storefront/products/product-three?sku=PROD3\",\n \"options\": {\n },\n \"customizations\": {\n \"foo\": \"bar\"\n },\n \"product_image\": {\n \"urls\": [\n {\n \"type\": \"small\",\n \"url\": \"http://www.example.com/product_images/placeholder/small.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1566424156\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1566424156\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1566424156\"\n }\n ]\n },\n \"pricing\": {\n \"price_adjustments\": [\n {\n \"description\": \"Item Subtotal\",\n \"discount\": false,\n \"amount\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n }\n }\n ],\n \"total_price\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_unit_price\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n },\n \"original_price\": {\n \"cents\": 2000.0,\n \"currency_iso\": \"USD\"\n },\n \"customized\": true,\n \"customizations_unit_price\": {\n \"cents\": 0.0,\n \"currency_iso\": \"USD\"\n }\n }\n }\n ],\n \"canceled_items\": [\n {\n \"id\": \"5d5dbcded4322a4b69d789fd\",\n \"product_id\": \"34615B56C8\",\n \"sku\": \"PROD2\",\n \"quantity\": 1,\n \"product_url\": \"http://www.example.com/api/storefront/products/product-two?sku=PROD2\",\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=1566424156\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium.jpg?c=1566424156\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/small_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/medium_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/placeholder/large_thumb.jpg?c=1566424156\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/placeholder/detail.jpg?c=1566424156\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/placeholder/super_zoom.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon.jpg?c=1566424156\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/placeholder/favicon_ico.jpg?c=1566424156\"\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\": 1000.0,\n \"currency_iso\": \"USD\"\n },\n \"original_price\": {\n \"cents\": 1000.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 }\n}",
|
42
|
+
"response_content_type": "application/json",
|
43
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/orders/4B5A26891C\" -X GET \\\n\t-H \"Authorization: Token token=\\\"3KoD46iQWsj9GcFv3StnTmTp\\\"\""
|
44
|
+
}
|
45
|
+
],
|
46
|
+
"resource": "Orders",
|
47
|
+
"description": "Showing an order",
|
48
|
+
"route": "/api/storefront/orders/:id",
|
49
|
+
"explanation": " This endpoint returns everything needed to render an order for a\n customer's order history including order details and fulfillment\n status.\n",
|
50
|
+
"http_method": "GET"
|
51
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"parameters": [
|
3
|
+
|
4
|
+
],
|
5
|
+
"response_fields": [
|
6
|
+
|
7
|
+
],
|
8
|
+
"requests": [
|
9
|
+
{
|
10
|
+
"request_headers": {
|
11
|
+
},
|
12
|
+
"request_query_parameters": {
|
13
|
+
},
|
14
|
+
"response_headers": {
|
15
|
+
"X-Frame-Options": "SAMEORIGIN",
|
16
|
+
"X-XSS-Protection": "1; mode=block",
|
17
|
+
"X-Content-Type-Options": "nosniff",
|
18
|
+
"X-Download-Options": "noopen",
|
19
|
+
"X-Permitted-Cross-Domain-Policies": "none",
|
20
|
+
"Referrer-Policy": "strict-origin-when-cross-origin",
|
21
|
+
"Date": "Wed, 21 Aug 2019 21:54:44 GMT",
|
22
|
+
"Content-Type": "application/json; charset=utf-8",
|
23
|
+
"Access-Control-Allow-Origin": "*",
|
24
|
+
"Access-Control-Allow-Headers": "*",
|
25
|
+
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
26
|
+
"X-Requested-With": "",
|
27
|
+
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
|
+
"Cache-Control": "no-cache, no-store, must-revalidate",
|
29
|
+
"ETag": "W/\"3acf4dc26f76e7deb56d8f8cc55d891a\"",
|
30
|
+
"X-Request-Id": "0a18eb33-f92d-4e00-b65e-366ab36f9ce3",
|
31
|
+
"X-Runtime": "0.017454",
|
32
|
+
"Expires": "0",
|
33
|
+
"Content-Length": "3949"
|
34
|
+
},
|
35
|
+
"request_method": "GET",
|
36
|
+
"request_path": "/api/storefront/pages/summer-lookbook",
|
37
|
+
"request_body": null,
|
38
|
+
"request_content_type": null,
|
39
|
+
"response_status": 200,
|
40
|
+
"response_status_text": "OK",
|
41
|
+
"response_body": "{\n \"id\": \"5d5dbda3d4322a4b69d79359\",\n \"name\": \"Summer Lookbook\",\n \"url\": \"http://www.example.com/api/storefront/pages/summer-lookbook\",\n \"browser_title\": \"Summer Lookbook\",\n \"meta_description\": \"Shop online for Workarea API products\",\n \"breadcrumbs\": [\n {\n \"id\": \"5d5dbda4d4322a4b69d7935c\",\n \"url\": \"/api/storefront/taxons/5d5dbda4d4322a4b69d7935c\",\n \"name\": \"Home\",\n \"depth\": 0,\n \"navigable_url\": \"/\",\n \"parent_id\": null,\n \"parent_ids\": [\n\n ],\n \"position\": 0\n },\n {\n \"id\": \"5d5dbda3d4322a4b69d7935b\",\n \"url\": \"/api/storefront/taxons/5d5dbda3d4322a4b69d7935b\",\n \"name\": \"Women\",\n \"depth\": 1,\n \"navigable_url\": \"www.example.com/women\",\n \"parent_id\": \"5d5dbda4d4322a4b69d7935c\",\n \"parent_ids\": [\n \"5d5dbda4d4322a4b69d7935c\"\n ],\n \"position\": 0\n },\n {\n \"id\": \"5d5dbda4d4322a4b69d7935d\",\n \"url\": \"/api/storefront/taxons/5d5dbda4d4322a4b69d7935d\",\n \"name\": \"Summer Lookbook\",\n \"depth\": 2,\n \"navigable_url\": \"http://www.example.com/api/storefront/pages/summer-lookbook\",\n \"parent_id\": \"5d5dbda3d4322a4b69d7935b\",\n \"parent_ids\": [\n \"5d5dbda4d4322a4b69d7935c\",\n \"5d5dbda3d4322a4b69d7935b\"\n ],\n \"position\": 0\n }\n ],\n \"content_blocks\": [\n {\n \"id\": \"5d5dbda4d4322a4b69d7935e\",\n \"type\": \"text\",\n \"area\": \"default\",\n \"data\": {\n \"text\": \"Great new looks for summer\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 0,\n \"html\": \"<div class=\\\"content-block content-block--text\\\" id=\\\"content_block_5d5dbda4d4322a4b69d7935e\\\" data-analytics=\\\"{"event":"contentBlockDisplay","payload":{"id":"5d5dbda4d4322a4b69d7935e","type":"text","position":0,"data":{"text":"Great new looks for summer"}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='text-content-block'>Great new looks for summer</div>\\n</div>\\n\"\n },\n {\n \"id\": \"5d5dbda4d4322a4b69d79360\",\n \"type\": \"image\",\n \"area\": \"default\",\n \"data\": {\n \"image\": \"5d5dbda4d4322a4b69d7935f\",\n \"alt\": \"splash\",\n \"link\": \"\",\n \"align\": \"\",\n \"image_url\": \"http://www.example.com/media/W1siZiIsIjIwMTkvMDgvMjEvN3N4NTQ1OTB1NF9maWxlLmpwZyJdLFsicCIsIm9wdGltIl1d/file.jpg?sha=2aa463f5630bc220\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 1,\n \"html\": \"<div class=\\\"content-block content-block--image\\\" id=\\\"content_block_5d5dbda4d4322a4b69d79360\\\" data-analytics=\\\"{"event":"contentBlockDisplay","payload":{"id":"5d5dbda4d4322a4b69d79360","type":"image","position":1,"data":{"image":"5d5dbda4d4322a4b69d7935f","alt":"splash","link":"","align":""}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='image-content-block image-content-block--'>\\n<img alt=\\\"splash\\\" class=\\\"image-content-block__image\\\" src=\\\"/media/W1siZiIsIjIwMTkvMDgvMjEvN3N4NTQ1OTB1NF9maWxlLmpwZyJdXQ/file.jpg?sha=6eaac3a7a86770ca\\\" />\\n</div>\\n</div>\\n\"\n },\n {\n \"id\": \"5d5dbda4d4322a4b69d79361\",\n \"type\": \"text\",\n \"area\": \"default\",\n \"data\": {\n \"text\": \"Pool party fashion\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 2,\n \"html\": \"<div class=\\\"content-block content-block--text\\\" id=\\\"content_block_5d5dbda4d4322a4b69d79361\\\" data-analytics=\\\"{"event":"contentBlockDisplay","payload":{"id":"5d5dbda4d4322a4b69d79361","type":"text","position":2,"data":{"text":"Pool party fashion"}}}\\\" data-hidden-block-css-content=\\\"Block hidden at this breakpoint\\\"><div class='text-content-block'>Pool party fashion</div>\\n</div>\\n\"\n }\n ]\n}",
|
42
|
+
"response_content_type": "application/json",
|
43
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/pages/summer-lookbook\" -X GET "
|
44
|
+
}
|
45
|
+
],
|
46
|
+
"resource": "Pages",
|
47
|
+
"description": "Showing a page",
|
48
|
+
"route": "/api/storefront/pages/:slug",
|
49
|
+
"explanation": " This endpoint will return all relevant data for showing a content\n page.\n",
|
50
|
+
"http_method": "GET"
|
51
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"parameters": [
|
3
|
+
|
4
|
+
],
|
5
|
+
"response_fields": [
|
6
|
+
|
7
|
+
],
|
8
|
+
"requests": [
|
9
|
+
{
|
10
|
+
"request_headers": {
|
11
|
+
"Content-Type": "application/json"
|
12
|
+
},
|
13
|
+
"request_query_parameters": {
|
14
|
+
},
|
15
|
+
"response_headers": {
|
16
|
+
"X-Frame-Options": "SAMEORIGIN",
|
17
|
+
"X-XSS-Protection": "1; mode=block",
|
18
|
+
"X-Content-Type-Options": "nosniff",
|
19
|
+
"X-Download-Options": "noopen",
|
20
|
+
"X-Permitted-Cross-Domain-Policies": "none",
|
21
|
+
"Referrer-Policy": "strict-origin-when-cross-origin",
|
22
|
+
"Content-Type": "application/json",
|
23
|
+
"Access-Control-Allow-Origin": "*",
|
24
|
+
"Access-Control-Allow-Headers": "*",
|
25
|
+
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
26
|
+
"X-Requested-With": "",
|
27
|
+
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
|
+
"Cache-Control": "no-cache, no-store, must-revalidate",
|
29
|
+
"X-Request-Id": "71bcddb7-206f-4e11-9a73-81de11f5539f",
|
30
|
+
"X-Runtime": "0.051574",
|
31
|
+
"Expires": "0",
|
32
|
+
"Content-Length": "0"
|
33
|
+
},
|
34
|
+
"request_method": "POST",
|
35
|
+
"request_path": "/api/storefront/password_resets",
|
36
|
+
"request_body": "{\"email\":\"user7@workarea.com\"}",
|
37
|
+
"request_content_type": "application/json",
|
38
|
+
"response_status": 200,
|
39
|
+
"response_status_text": "OK",
|
40
|
+
"response_body": null,
|
41
|
+
"response_content_type": "application/json",
|
42
|
+
"curl": "curl \"https://www.example.com/api/storefront/password_resets\" -d '{\"email\":\"user7@workarea.com\"}' -X POST \\\n\t-H \"Content-Type: application/json\""
|
43
|
+
}
|
44
|
+
],
|
45
|
+
"resource": "Password Resets",
|
46
|
+
"description": "Sending a forgot password email",
|
47
|
+
"route": "/api/storefront/password_resets",
|
48
|
+
"explanation": " This will send a password reset email to the email address if there\n is an account. The email will contain a link to the site where the\n password reset can be completed.\n",
|
49
|
+
"http_method": "POST"
|
50
|
+
}
|
data/doc/api/storefront/personalized_recommendations/showing_recommendations_with_a_session_id.json
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
{
|
2
|
+
"parameters": [
|
3
|
+
{
|
4
|
+
"name": "session_id",
|
5
|
+
"description": "A unique session_id you keep for an anonymous browser"
|
6
|
+
}
|
7
|
+
],
|
8
|
+
"response_fields": [
|
9
|
+
|
10
|
+
],
|
11
|
+
"requests": [
|
12
|
+
{
|
13
|
+
"request_headers": {
|
14
|
+
},
|
15
|
+
"request_query_parameters": {
|
16
|
+
"session_id": "5d5dbd03d4322a4b69d78bcd"
|
17
|
+
},
|
18
|
+
"response_headers": {
|
19
|
+
"X-Frame-Options": "SAMEORIGIN",
|
20
|
+
"X-XSS-Protection": "1; mode=block",
|
21
|
+
"X-Content-Type-Options": "nosniff",
|
22
|
+
"X-Download-Options": "noopen",
|
23
|
+
"X-Permitted-Cross-Domain-Policies": "none",
|
24
|
+
"Referrer-Policy": "strict-origin-when-cross-origin",
|
25
|
+
"ETag": "W/\"be65f3ab42758d84aeddbf3e485648bd\"",
|
26
|
+
"Last-Modified": "Wed, 21 Aug 2019 21:52:03 GMT",
|
27
|
+
"Content-Type": "application/json; charset=utf-8",
|
28
|
+
"Access-Control-Allow-Origin": "*",
|
29
|
+
"Access-Control-Allow-Headers": "*",
|
30
|
+
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
31
|
+
"X-Requested-With": "",
|
32
|
+
"Vary": "X-Requested-With, X-Flash-Messages",
|
33
|
+
"Cache-Control": "no-cache, no-store, must-revalidate",
|
34
|
+
"X-Request-Id": "797b2125-19fb-48e2-95b1-17a8308b7f15",
|
35
|
+
"X-Runtime": "0.036716",
|
36
|
+
"Expires": "0",
|
37
|
+
"Content-Length": "3882"
|
38
|
+
},
|
39
|
+
"request_method": "GET",
|
40
|
+
"request_path": "/api/storefront/recommendations?session_id=5d5dbd03d4322a4b69d78bcd",
|
41
|
+
"request_body": null,
|
42
|
+
"request_content_type": null,
|
43
|
+
"response_status": 200,
|
44
|
+
"response_status_text": "OK",
|
45
|
+
"response_body": "{\n \"products\": [\n {\n \"id\": \"5FF338C21A\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product-8\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbd02d4322a4b69d78bc9\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n },\n {\n \"id\": \"29096749D8\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbcfed4322a4b69d78bb9\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n },\n {\n \"id\": \"EEEAEAACE8\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product-4\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbcffd4322a4b69d78bc1\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n },\n {\n \"id\": \"6B5D01C965\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product-2\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbcfed4322a4b69d78bbd\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n },\n {\n \"id\": \"481326709B\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product-3\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbcffd4322a4b69d78bbf\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n },\n {\n \"id\": \"F63E4BAE76\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product-7\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbd01d4322a4b69d78bc7\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n }\n ]\n}",
|
46
|
+
"response_content_type": "application/json",
|
47
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/recommendations?session_id=5d5dbd03d4322a4b69d78bcd\" -X GET "
|
48
|
+
}
|
49
|
+
],
|
50
|
+
"resource": "Personalized Recommendations",
|
51
|
+
"description": "Showing recommendations with a session ID",
|
52
|
+
"route": "/api/storefront/recommendations",
|
53
|
+
"explanation": " Display personalized recommendations based on a session ID that\n you've maintained for an anonymous browser (as opposed to\n authentication).\n",
|
54
|
+
"http_method": "GET"
|
55
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"parameters": [
|
3
|
+
|
4
|
+
],
|
5
|
+
"response_fields": [
|
6
|
+
|
7
|
+
],
|
8
|
+
"requests": [
|
9
|
+
{
|
10
|
+
"request_headers": {
|
11
|
+
"Authorization": "Token token=\"Arr2qngbgTaExhsZVyGHZjiv\""
|
12
|
+
},
|
13
|
+
"request_query_parameters": {
|
14
|
+
},
|
15
|
+
"response_headers": {
|
16
|
+
"X-Frame-Options": "SAMEORIGIN",
|
17
|
+
"X-XSS-Protection": "1; mode=block",
|
18
|
+
"X-Content-Type-Options": "nosniff",
|
19
|
+
"X-Download-Options": "noopen",
|
20
|
+
"X-Permitted-Cross-Domain-Policies": "none",
|
21
|
+
"Referrer-Policy": "strict-origin-when-cross-origin",
|
22
|
+
"ETag": "W/\"56c7c66c36f11a5934f425a6b1266426\"",
|
23
|
+
"Content-Type": "application/json; charset=utf-8",
|
24
|
+
"Access-Control-Allow-Origin": "*",
|
25
|
+
"Access-Control-Allow-Headers": "*",
|
26
|
+
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
27
|
+
"X-Requested-With": "",
|
28
|
+
"Vary": "X-Requested-With, X-Flash-Messages",
|
29
|
+
"Cache-Control": "no-cache, no-store, must-revalidate",
|
30
|
+
"X-Request-Id": "169f489f-b6be-491f-b499-4170689a42d2",
|
31
|
+
"X-Runtime": "0.033992",
|
32
|
+
"Expires": "0",
|
33
|
+
"Content-Length": "3882"
|
34
|
+
},
|
35
|
+
"request_method": "GET",
|
36
|
+
"request_path": "/api/storefront/recommendations",
|
37
|
+
"request_body": null,
|
38
|
+
"request_content_type": null,
|
39
|
+
"response_status": 200,
|
40
|
+
"response_status_text": "OK",
|
41
|
+
"response_body": "{\n \"products\": [\n {\n \"id\": \"DBB45C161E\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbd03d4322a4b69d78bd3\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n },\n {\n \"id\": \"5C23FDEF1C\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product-1\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbd04d4322a4b69d78bd5\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n },\n {\n \"id\": \"3EE998F26A\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product-4\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbd05d4322a4b69d78bdb\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n },\n {\n \"id\": \"9CDFD9860E\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product-9\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbd08d4322a4b69d78be5\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n },\n {\n \"id\": \"203FF74EDB\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product-3\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbd04d4322a4b69d78bd9\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n },\n {\n \"id\": \"59AB1ED30D\",\n \"name\": \"Test Product\",\n \"description\": null,\n \"slug\": \"test-product-7\",\n \"browser_title\": \"Test Product\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"Material\": [\n \"Cotton\"\n ],\n \"Style\": [\n \"12345\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"Material\": \"Cotton\",\n \"Style\": \"12345\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbd07d4322a4b69d78be1\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 500.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n\n ]\n }\n ]\n}",
|
42
|
+
"response_content_type": "application/json",
|
43
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/recommendations\" -X GET \\\n\t-H \"Authorization: Token token=\\\"Arr2qngbgTaExhsZVyGHZjiv\\\"\""
|
44
|
+
}
|
45
|
+
],
|
46
|
+
"resource": "Personalized Recommendations",
|
47
|
+
"description": "Showing recommendations with authentication",
|
48
|
+
"route": "/api/storefront/recommendations",
|
49
|
+
"explanation": " Display personalized recommendations based on the currently\n authenticated customer.\n",
|
50
|
+
"http_method": "GET"
|
51
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"parameters": [
|
3
|
+
|
4
|
+
],
|
5
|
+
"response_fields": [
|
6
|
+
|
7
|
+
],
|
8
|
+
"requests": [
|
9
|
+
{
|
10
|
+
"request_headers": {
|
11
|
+
},
|
12
|
+
"request_query_parameters": {
|
13
|
+
},
|
14
|
+
"response_headers": {
|
15
|
+
"X-Frame-Options": "SAMEORIGIN",
|
16
|
+
"X-XSS-Protection": "1; mode=block",
|
17
|
+
"X-Content-Type-Options": "nosniff",
|
18
|
+
"X-Download-Options": "noopen",
|
19
|
+
"X-Permitted-Cross-Domain-Policies": "none",
|
20
|
+
"Referrer-Policy": "strict-origin-when-cross-origin",
|
21
|
+
"Date": "Wed, 21 Aug 2019 21:55:18 GMT",
|
22
|
+
"Content-Type": "application/json; charset=utf-8",
|
23
|
+
"Access-Control-Allow-Origin": "*",
|
24
|
+
"Access-Control-Allow-Headers": "*",
|
25
|
+
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
26
|
+
"X-Requested-With": "",
|
27
|
+
"Vary": "X-Requested-With, X-Flash-Messages",
|
28
|
+
"Cache-Control": "no-cache, no-store, must-revalidate",
|
29
|
+
"ETag": "W/\"161c9e3eeae25f6eaab924c298a8c9b5\"",
|
30
|
+
"X-Request-Id": "0b5c244e-add8-41a0-b83e-c78429b4636a",
|
31
|
+
"X-Runtime": "0.040306",
|
32
|
+
"Expires": "0",
|
33
|
+
"Content-Length": "4103"
|
34
|
+
},
|
35
|
+
"request_method": "GET",
|
36
|
+
"request_path": "/api/storefront/products/nice-shirt",
|
37
|
+
"request_body": null,
|
38
|
+
"request_content_type": null,
|
39
|
+
"response_status": 200,
|
40
|
+
"response_status_text": "OK",
|
41
|
+
"response_body": "{\n \"product\": {\n \"id\": \"CF0F8B0BBF\",\n \"name\": \"Nice Shirt\",\n \"description\": null,\n \"slug\": \"nice-shirt\",\n \"browser_title\": \"Nice Shirt\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"size\": [\n \"Small\"\n ],\n \"color\": [\n \"Red\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"size\": [\n \"Small\",\n \"Medium\",\n \"Large\"\n ],\n \"color\": \"Blue\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbdc6d4322a4b69d795a3\",\n \"name\": \"SKU1\",\n \"sku\": \"SKU1\",\n \"details\": {\n \"color\": [\n \"Blue\"\n ]\n }\n },\n {\n \"id\": \"5d5dbdc6d4322a4b69d795a4\",\n \"name\": \"SKU2\",\n \"sku\": \"SKU2\",\n \"details\": {\n \"color\": [\n \"Red\"\n ]\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 300.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 200.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 300.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n {\n \"id\": \"5d5dbdc6d4322a4b69d795a5\",\n \"option\": \"Blue\",\n \"position\": 0,\n \"primary\": true,\n \"urls\": [\n {\n \"type\": \"small\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc6d4322a4b69d795a5/small.jpg?c=0\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc6d4322a4b69d795a5/medium.jpg?c=0\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc6d4322a4b69d795a5/small_thumb.jpg?c=0\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc6d4322a4b69d795a5/medium_thumb.jpg?c=0\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc6d4322a4b69d795a5/large_thumb.jpg?c=0\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc6d4322a4b69d795a5/detail.jpg?c=0\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc6d4322a4b69d795a5/zoom.jpg?c=0\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc6d4322a4b69d795a5/super_zoom.jpg?c=0\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc6d4322a4b69d795a5/favicon.jpg?c=0\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc6d4322a4b69d795a5/favicon_ico.jpg?c=0\"\n }\n ]\n }\n ]\n },\n \"recommendations\": [\n {\n \"id\": \"EE3230BDA1\",\n \"name\": \"Fall Jacket\",\n \"description\": null,\n \"slug\": \"fall-jacket\",\n \"browser_title\": \"Fall Jacket\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"size\": [\n \"Small\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"size\": [\n \"Small\",\n \"Medium\",\n \"Large\"\n ],\n \"color\": \"Blue\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbdc6d4322a4b69d795a7\",\n \"name\": \"SKU1\",\n \"sku\": \"SKU1\",\n \"details\": {\n \"color\": [\n \"Blue\"\n ]\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 200.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 200.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 200.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n {\n \"id\": \"5d5dbdc6d4322a4b69d795a8\",\n \"option\": \"Blue\",\n \"position\": 0,\n \"primary\": true,\n \"urls\": [\n {\n \"type\": \"small\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc6d4322a4b69d795a8/small.jpg?c=0\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc6d4322a4b69d795a8/medium.jpg?c=0\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc6d4322a4b69d795a8/small_thumb.jpg?c=0\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc6d4322a4b69d795a8/medium_thumb.jpg?c=0\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc6d4322a4b69d795a8/large_thumb.jpg?c=0\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc6d4322a4b69d795a8/detail.jpg?c=0\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc6d4322a4b69d795a8/zoom.jpg?c=0\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc6d4322a4b69d795a8/super_zoom.jpg?c=0\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc6d4322a4b69d795a8/favicon.jpg?c=0\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc6d4322a4b69d795a8/favicon_ico.jpg?c=0\"\n }\n ]\n }\n ]\n }\n ]\n}",
|
42
|
+
"response_content_type": "application/json",
|
43
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/products/nice-shirt\" -X GET "
|
44
|
+
}
|
45
|
+
],
|
46
|
+
"resource": "Products",
|
47
|
+
"description": "Showing a product",
|
48
|
+
"route": "/api/storefront/products/:slug",
|
49
|
+
"explanation": " This endpoint includes everything you need to render a product\n detail page including, variants, images, and recommendations.\n",
|
50
|
+
"http_method": "GET"
|
51
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
{
|
2
|
+
"parameters": [
|
3
|
+
{
|
4
|
+
"name": "sku",
|
5
|
+
"description": "View products details specifically for this SKU"
|
6
|
+
}
|
7
|
+
],
|
8
|
+
"response_fields": [
|
9
|
+
|
10
|
+
],
|
11
|
+
"requests": [
|
12
|
+
{
|
13
|
+
"request_headers": {
|
14
|
+
},
|
15
|
+
"request_query_parameters": {
|
16
|
+
"sku": "SKU2"
|
17
|
+
},
|
18
|
+
"response_headers": {
|
19
|
+
"X-Frame-Options": "SAMEORIGIN",
|
20
|
+
"X-XSS-Protection": "1; mode=block",
|
21
|
+
"X-Content-Type-Options": "nosniff",
|
22
|
+
"X-Download-Options": "noopen",
|
23
|
+
"X-Permitted-Cross-Domain-Policies": "none",
|
24
|
+
"Referrer-Policy": "strict-origin-when-cross-origin",
|
25
|
+
"Date": "Wed, 21 Aug 2019 21:55:19 GMT",
|
26
|
+
"Content-Type": "application/json; charset=utf-8",
|
27
|
+
"Access-Control-Allow-Origin": "*",
|
28
|
+
"Access-Control-Allow-Headers": "*",
|
29
|
+
"Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
|
30
|
+
"X-Requested-With": "",
|
31
|
+
"Vary": "X-Requested-With, X-Flash-Messages",
|
32
|
+
"Cache-Control": "no-cache, no-store, must-revalidate",
|
33
|
+
"ETag": "W/\"0d1d8721ad6a90da4b7161a820cb6db3\"",
|
34
|
+
"X-Request-Id": "765e7e3c-53e8-44b9-8be5-e2a24bd8d495",
|
35
|
+
"X-Runtime": "0.036595",
|
36
|
+
"Expires": "0",
|
37
|
+
"Content-Length": "4111"
|
38
|
+
},
|
39
|
+
"request_method": "GET",
|
40
|
+
"request_path": "/api/storefront/products/nice-shirt?sku=SKU2",
|
41
|
+
"request_body": null,
|
42
|
+
"request_content_type": null,
|
43
|
+
"response_status": 200,
|
44
|
+
"response_status_text": "OK",
|
45
|
+
"response_body": "{\n \"product\": {\n \"id\": \"E1FCE89668\",\n \"name\": \"Nice Shirt\",\n \"description\": null,\n \"slug\": \"nice-shirt\",\n \"browser_title\": \"Nice Shirt\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"size\": [\n \"Small\"\n ],\n \"color\": [\n \"Red\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"size\": [\n \"Small\",\n \"Medium\",\n \"Large\"\n ],\n \"color\": \"Blue\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"In Stock\",\n \"variants\": [\n {\n \"id\": \"5d5dbdc7d4322a4b69d795ac\",\n \"name\": \"SKU1\",\n \"sku\": \"SKU1\",\n \"details\": {\n \"color\": [\n \"Blue\"\n ]\n }\n },\n {\n \"id\": \"5d5dbdc7d4322a4b69d795ad\",\n \"name\": \"SKU2\",\n \"sku\": \"SKU2\",\n \"details\": {\n \"color\": [\n \"Red\"\n ]\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 300.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 300.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 300.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n {\n \"id\": \"5d5dbdc7d4322a4b69d795ae\",\n \"option\": \"Blue\",\n \"position\": 0,\n \"primary\": true,\n \"urls\": [\n {\n \"type\": \"small\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc7d4322a4b69d795ae/small.jpg?c=0\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc7d4322a4b69d795ae/medium.jpg?c=0\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc7d4322a4b69d795ae/small_thumb.jpg?c=0\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc7d4322a4b69d795ae/medium_thumb.jpg?c=0\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc7d4322a4b69d795ae/large_thumb.jpg?c=0\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc7d4322a4b69d795ae/detail.jpg?c=0\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc7d4322a4b69d795ae/zoom.jpg?c=0\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc7d4322a4b69d795ae/super_zoom.jpg?c=0\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc7d4322a4b69d795ae/favicon.jpg?c=0\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/nice-shirt/Blue/5d5dbdc7d4322a4b69d795ae/favicon_ico.jpg?c=0\"\n }\n ]\n }\n ]\n },\n \"recommendations\": [\n {\n \"id\": \"546223A2B9\",\n \"name\": \"Fall Jacket\",\n \"description\": null,\n \"slug\": \"fall-jacket\",\n \"browser_title\": \"Fall Jacket\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"size\": [\n \"Small\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"size\": [\n \"Small\",\n \"Medium\",\n \"Large\"\n ],\n \"color\": \"Blue\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5d5dbdc7d4322a4b69d795b0\",\n \"name\": \"SKU1\",\n \"sku\": \"SKU1\",\n \"details\": {\n \"color\": [\n \"Blue\"\n ]\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 200.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 200.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 200.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n {\n \"id\": \"5d5dbdc7d4322a4b69d795b1\",\n \"option\": \"Blue\",\n \"position\": 0,\n \"primary\": true,\n \"urls\": [\n {\n \"type\": \"small\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc7d4322a4b69d795b1/small.jpg?c=0\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc7d4322a4b69d795b1/medium.jpg?c=0\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc7d4322a4b69d795b1/small_thumb.jpg?c=0\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc7d4322a4b69d795b1/medium_thumb.jpg?c=0\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc7d4322a4b69d795b1/large_thumb.jpg?c=0\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc7d4322a4b69d795b1/detail.jpg?c=0\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc7d4322a4b69d795b1/zoom.jpg?c=0\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc7d4322a4b69d795b1/super_zoom.jpg?c=0\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc7d4322a4b69d795b1/favicon.jpg?c=0\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/fall-jacket/Blue/5d5dbdc7d4322a4b69d795b1/favicon_ico.jpg?c=0\"\n }\n ]\n }\n ]\n }\n ]\n}",
|
46
|
+
"response_content_type": "application/json",
|
47
|
+
"curl": "curl -g \"https://www.example.com/api/storefront/products/nice-shirt?sku=SKU2\" -X GET "
|
48
|
+
}
|
49
|
+
],
|
50
|
+
"resource": "Products",
|
51
|
+
"description": "Showing a product with a specific SKU selected",
|
52
|
+
"route": "/api/storefront/products/:slug",
|
53
|
+
"explanation": " This demonstrates how to get product details for a specific SKU.\n This will result in pricing, inventory, and images to match the\n storefront logic for that SKU.\n",
|
54
|
+
"http_method": "GET"
|
55
|
+
}
|