workarea-api 4.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,807 @@
|
|
|
1
|
+
Workarea Api 4.4.6 (2019-08-21)
|
|
2
|
+
--------------------------------------------------------------------------------
|
|
3
|
+
|
|
4
|
+
* Open Source!
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Workarea Api 4.4.5 (2019-07-23)
|
|
9
|
+
--------------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
* Fix release task
|
|
12
|
+
|
|
13
|
+
Curt Howard
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
Workarea Api 4.4.4 (2019-07-23)
|
|
18
|
+
--------------------------------------------------------------------------------
|
|
19
|
+
|
|
20
|
+
* Suppress Flash Message and Release Cookie headers from examples
|
|
21
|
+
|
|
22
|
+
API-226
|
|
23
|
+
Curt Howard
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Workarea Api 4.4.3 (2019-07-09)
|
|
28
|
+
--------------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
* Fix Release task to ensure docs are generated during release
|
|
31
|
+
|
|
32
|
+
API-224
|
|
33
|
+
Curt Howard
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
Workarea Api 4.4.2 (2019-06-11)
|
|
38
|
+
--------------------------------------------------------------------------------
|
|
39
|
+
|
|
40
|
+
* Restyle API Documentation
|
|
41
|
+
|
|
42
|
+
An effort to make it better match the developer documentation site.
|
|
43
|
+
|
|
44
|
+
API-221
|
|
45
|
+
Curt Howard
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Workarea Api 4.4.1 (2019-04-30)
|
|
50
|
+
--------------------------------------------------------------------------------
|
|
51
|
+
|
|
52
|
+
* Add api_access to config.permission_fields
|
|
53
|
+
|
|
54
|
+
API-220
|
|
55
|
+
Matt Duffy
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Workarea Api 4.4.0 (2019-03-13)
|
|
60
|
+
--------------------------------------------------------------------------------
|
|
61
|
+
|
|
62
|
+
* Require at least Workarea v3.4 for this minor
|
|
63
|
+
|
|
64
|
+
API-218
|
|
65
|
+
Ben Crouse
|
|
66
|
+
|
|
67
|
+
* Updates for v3.4 insights integration
|
|
68
|
+
|
|
69
|
+
Ben Crouse
|
|
70
|
+
|
|
71
|
+
* Update for workarea v3.4 compatibility
|
|
72
|
+
|
|
73
|
+
API-216
|
|
74
|
+
Matt Duffy
|
|
75
|
+
|
|
76
|
+
* Rewrite API READMEs
|
|
77
|
+
|
|
78
|
+
This is a full rewrite of all READMEs associated with **workarea-api**.
|
|
79
|
+
These READMEs now include information on how to authenticate with both
|
|
80
|
+
the Admin and Storefront APIs, as well as what the APIs are used for.
|
|
81
|
+
|
|
82
|
+
API-213
|
|
83
|
+
Tom Scott
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
Workarea Api 4.3.1 (2018-09-19)
|
|
88
|
+
--------------------------------------------------------------------------------
|
|
89
|
+
|
|
90
|
+
* Custom Validation Message For BulkUpsert Data Length
|
|
91
|
+
|
|
92
|
+
`Workarea::Api::Admin::BulkUpsert#data` has a max length of 1000, and
|
|
93
|
+
the validation message for the `:data` attribute made it clear that the
|
|
94
|
+
system counts by characters. API users don't think of their requests
|
|
95
|
+
like that, so the validation message has been changed to "has too many
|
|
96
|
+
objects" so that consumers can know what they need to change in order to
|
|
97
|
+
proceed.
|
|
98
|
+
|
|
99
|
+
API-210
|
|
100
|
+
Tom Scott
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
Workarea Api 4.3.0 (2018-08-21)
|
|
105
|
+
--------------------------------------------------------------------------------
|
|
106
|
+
|
|
107
|
+
* Restrict API doc route mounting to non-production environments
|
|
108
|
+
|
|
109
|
+
API-209
|
|
110
|
+
Curt Howard
|
|
111
|
+
|
|
112
|
+
* Remove basic auth from /api/docs route
|
|
113
|
+
|
|
114
|
+
API-209
|
|
115
|
+
Curt Howard
|
|
116
|
+
|
|
117
|
+
* Add swagger to the admin API
|
|
118
|
+
|
|
119
|
+
API-208
|
|
120
|
+
Ben Crouse
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
Workarea Api 4.2.0 (2018-05-24)
|
|
125
|
+
--------------------------------------------------------------------------------
|
|
126
|
+
|
|
127
|
+
* Add date to raketask
|
|
128
|
+
|
|
129
|
+
Curt Howard
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
Workarea Api 4.2.0.beta.1 (2018-05-24)
|
|
134
|
+
--------------------------------------------------------------------------------
|
|
135
|
+
|
|
136
|
+
* Fix test that had inconsisten ordering of results
|
|
137
|
+
|
|
138
|
+
Matt Duffy
|
|
139
|
+
|
|
140
|
+
* Leverage Workarea Changelog task
|
|
141
|
+
|
|
142
|
+
ECOMMERCE-5355
|
|
143
|
+
Curt Howard
|
|
144
|
+
|
|
145
|
+
* Allow orders to be filtered by the date they were placed
|
|
146
|
+
|
|
147
|
+
API-204
|
|
148
|
+
Curt Howard
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
Workarea Api 4.1.0 (2018-02-06)
|
|
153
|
+
--------------------------------------------------------------------------------
|
|
154
|
+
|
|
155
|
+
* Generate documentation as part of release task
|
|
156
|
+
|
|
157
|
+
In the release task, run `bin/rails test` with `GENERATE_API_DOCS` set
|
|
158
|
+
to true in order to build docs, then upload docs to Git.
|
|
159
|
+
|
|
160
|
+
API-119
|
|
161
|
+
Tom Scott
|
|
162
|
+
|
|
163
|
+
* Replace UserTestOrder with existing factory methods
|
|
164
|
+
|
|
165
|
+
UserTestOrder could not be decorated, making it difficult to decorate
|
|
166
|
+
the behavior of the test setup. Using existing factory methods better
|
|
167
|
+
enables a project to modify the test scenario to fit their project
|
|
168
|
+
requirements
|
|
169
|
+
|
|
170
|
+
API-200
|
|
171
|
+
Matt Duffy
|
|
172
|
+
|
|
173
|
+
* Adds highlight to active category in api docs
|
|
174
|
+
|
|
175
|
+
API-189
|
|
176
|
+
Ivana Veliskova
|
|
177
|
+
|
|
178
|
+
* Adds page title related to current page with correct formatting and updates header appropriately on each API page
|
|
179
|
+
|
|
180
|
+
API-187
|
|
181
|
+
Ivana Veliskova
|
|
182
|
+
|
|
183
|
+
* Adds logo throughout api layout documentation
|
|
184
|
+
|
|
185
|
+
API-186
|
|
186
|
+
Ivana Veliskova
|
|
187
|
+
|
|
188
|
+
* Adds storefront and admin api links to layout navigation
|
|
189
|
+
|
|
190
|
+
API-188
|
|
191
|
+
Ivana Veliskova
|
|
192
|
+
|
|
193
|
+
* Set order source when placing an order through the storefront api
|
|
194
|
+
|
|
195
|
+
API-193
|
|
196
|
+
Matt Duffy
|
|
197
|
+
|
|
198
|
+
* Includes workarea logo in api docs
|
|
199
|
+
|
|
200
|
+
API-186
|
|
201
|
+
Ivana Veliskova
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
Workarea Api 4.0.7 (2018-02-06)
|
|
205
|
+
--------------------------------------------------------------------------------
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
Workarea Api 4.0.7 (2018-02-06)
|
|
209
|
+
--------------------------------------------------------------------------------
|
|
210
|
+
|
|
211
|
+
* Generate documentation as part of release task
|
|
212
|
+
|
|
213
|
+
In the release task, run `bin/rails test` with `GENERATE_API_DOCS` set
|
|
214
|
+
to true in order to build docs, then upload docs to Git.
|
|
215
|
+
|
|
216
|
+
API-119
|
|
217
|
+
Tom Scott
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
Workarea Api 4.0.6 (2018-01-19)
|
|
221
|
+
--------------------------------------------------------------------------------
|
|
222
|
+
|
|
223
|
+
* Remove Redcarpet dependency
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
Workarea Api 4.0.5 (2017-10-03)
|
|
227
|
+
--------------------------------------------------------------------------------
|
|
228
|
+
|
|
229
|
+
* Adds highlight to active category in api docs
|
|
230
|
+
|
|
231
|
+
API-189
|
|
232
|
+
Ivana Veliskova
|
|
233
|
+
|
|
234
|
+
* Adds page title related to current page with correct formatting and updates header appropriately on each API page
|
|
235
|
+
|
|
236
|
+
API-187
|
|
237
|
+
Ivana Veliskova
|
|
238
|
+
|
|
239
|
+
* Adds logo throughout api layout documentation
|
|
240
|
+
|
|
241
|
+
API-186
|
|
242
|
+
Ivana Veliskova
|
|
243
|
+
|
|
244
|
+
* Adds storefront and admin api links to layout navigation
|
|
245
|
+
|
|
246
|
+
API-188
|
|
247
|
+
Ivana Veliskova
|
|
248
|
+
|
|
249
|
+
* Includes workarea logo in api docs
|
|
250
|
+
|
|
251
|
+
API-186
|
|
252
|
+
Ivana Veliskova
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
Workarea Api 4.0.4 (2017-09-06)
|
|
256
|
+
--------------------------------------------------------------------------------
|
|
257
|
+
|
|
258
|
+
* Fix search abandonment tests
|
|
259
|
+
|
|
260
|
+
Broken due to new logic to prevent excessive abandonment
|
|
261
|
+
|
|
262
|
+
API-192
|
|
263
|
+
Ben Crouse
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
Workarea Api 4.0.3 (2017-09-06)
|
|
267
|
+
--------------------------------------------------------------------------------
|
|
268
|
+
|
|
269
|
+
* Use Api::Storefront::ApplicationController namespace to prevent constant resolution errors
|
|
270
|
+
|
|
271
|
+
API-185
|
|
272
|
+
Dave Barnow
|
|
273
|
+
|
|
274
|
+
* Restart checkout after reset to ensure cart remains associated to user
|
|
275
|
+
|
|
276
|
+
API-181
|
|
277
|
+
Matt Duffy
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
Workarea Api 4.0.2 (2017-08-23)
|
|
281
|
+
--------------------------------------------------------------------------------
|
|
282
|
+
|
|
283
|
+
* Upgrade API user permissions partial
|
|
284
|
+
|
|
285
|
+
API-184
|
|
286
|
+
Curt Howard
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
Workarea Api 4.0.1 (2017-08-22)
|
|
290
|
+
--------------------------------------------------------------------------------
|
|
291
|
+
|
|
292
|
+
* Only format Request Body json on the client side
|
|
293
|
+
|
|
294
|
+
API-183
|
|
295
|
+
Curt Howard
|
|
296
|
+
|
|
297
|
+
* Clean up API docs presentation
|
|
298
|
+
|
|
299
|
+
API-165
|
|
300
|
+
Curt Howard
|
|
301
|
+
|
|
302
|
+
* Improve validation error messaging output
|
|
303
|
+
|
|
304
|
+
To make errors easier to find, parse and relate to causes, this
|
|
305
|
+
separates errors into a better data structure. NOTE, this is a slight
|
|
306
|
+
breaking change to API that should be fine for now since no one is using
|
|
307
|
+
the gem yet.
|
|
308
|
+
|
|
309
|
+
API-179
|
|
310
|
+
Ben Crouse
|
|
311
|
+
|
|
312
|
+
* Update Rakefile to work with latest updates to test setup
|
|
313
|
+
|
|
314
|
+
API-178
|
|
315
|
+
Matt Duffy
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
Workarea Api 4.0.0 (2017-08-15)
|
|
319
|
+
--------------------------------------------------------------------------------
|
|
320
|
+
|
|
321
|
+
* Decorate #current_user to prevent issues with content block rendering
|
|
322
|
+
|
|
323
|
+
API-175
|
|
324
|
+
Matt Duffy
|
|
325
|
+
|
|
326
|
+
* Add content documentation example
|
|
327
|
+
|
|
328
|
+
API-158
|
|
329
|
+
Curt Howard
|
|
330
|
+
|
|
331
|
+
* Disable CORS protection
|
|
332
|
+
|
|
333
|
+
This allows web views or sites hosting on different domains access to
|
|
334
|
+
use the API.
|
|
335
|
+
|
|
336
|
+
API-133
|
|
337
|
+
Ben Crouse
|
|
338
|
+
|
|
339
|
+
* Respect login locking when trying to generate an auth token
|
|
340
|
+
|
|
341
|
+
API-170
|
|
342
|
+
Ben Crouse
|
|
343
|
+
|
|
344
|
+
* Add endpoint to show a taxon with its children
|
|
345
|
+
|
|
346
|
+
API-174
|
|
347
|
+
Ben Crouse
|
|
348
|
+
|
|
349
|
+
* Add categories index endpoint
|
|
350
|
+
|
|
351
|
+
API-173
|
|
352
|
+
Ben Crouse
|
|
353
|
+
|
|
354
|
+
* Fix checking out with orders that are already placed
|
|
355
|
+
|
|
356
|
+
API-166
|
|
357
|
+
Ben Crouse
|
|
358
|
+
|
|
359
|
+
* Clean authentication tokens when a user changes password
|
|
360
|
+
|
|
361
|
+
API-169
|
|
362
|
+
Ben Crouse
|
|
363
|
+
|
|
364
|
+
* Ensure if an order belongs to a user, it requires authentication
|
|
365
|
+
|
|
366
|
+
API-167
|
|
367
|
+
Ben Crouse
|
|
368
|
+
|
|
369
|
+
* Fix documentation for analytics save filters
|
|
370
|
+
|
|
371
|
+
API-164
|
|
372
|
+
Dave Barnow
|
|
373
|
+
|
|
374
|
+
* Include rendered html in content blocks for storefront api
|
|
375
|
+
|
|
376
|
+
API-160
|
|
377
|
+
Matt Duffy
|
|
378
|
+
|
|
379
|
+
* Add better support for asset urls in storefront API
|
|
380
|
+
|
|
381
|
+
- Adds asset endpoint
|
|
382
|
+
- Adds field in block data of urls for assets in the block
|
|
383
|
+
|
|
384
|
+
API-156
|
|
385
|
+
Matt Duffy
|
|
386
|
+
|
|
387
|
+
* Properly validate email signups
|
|
388
|
+
|
|
389
|
+
API-137
|
|
390
|
+
Curt Howard
|
|
391
|
+
|
|
392
|
+
* Add checkout endpoint to storefront API
|
|
393
|
+
|
|
394
|
+
API-131
|
|
395
|
+
Matt Duffy
|
|
396
|
+
|
|
397
|
+
* Add cart endpoints to storefront api
|
|
398
|
+
|
|
399
|
+
API-135
|
|
400
|
+
Matt Duffy
|
|
401
|
+
|
|
402
|
+
* Remove name from product images
|
|
403
|
+
|
|
404
|
+
API-152
|
|
405
|
+
Curt Howard
|
|
406
|
+
|
|
407
|
+
* Add SKU param to product documentation
|
|
408
|
+
|
|
409
|
+
API-151
|
|
410
|
+
Curt Howard
|
|
411
|
+
|
|
412
|
+
* Blacklist thumb image processor
|
|
413
|
+
|
|
414
|
+
The `thumb` is not as it seems.
|
|
415
|
+
|
|
416
|
+
API-150
|
|
417
|
+
Curt Howard
|
|
418
|
+
|
|
419
|
+
* Add orders endpoint for storefront api
|
|
420
|
+
|
|
421
|
+
API-139
|
|
422
|
+
Matt Duffy
|
|
423
|
+
|
|
424
|
+
* Add recommendations endpoints
|
|
425
|
+
|
|
426
|
+
API-143
|
|
427
|
+
Curt Howard
|
|
428
|
+
|
|
429
|
+
* Add storefront API endpoints for pages and system content
|
|
430
|
+
|
|
431
|
+
API-140
|
|
432
|
+
Matt Duffy
|
|
433
|
+
|
|
434
|
+
* Add product endpoints
|
|
435
|
+
|
|
436
|
+
API-141
|
|
437
|
+
Curt Howard
|
|
438
|
+
|
|
439
|
+
* Add password endpoints
|
|
440
|
+
|
|
441
|
+
API-148
|
|
442
|
+
Curt Howard
|
|
443
|
+
|
|
444
|
+
* Add email signup endpoints
|
|
445
|
+
|
|
446
|
+
API-137
|
|
447
|
+
Curt Howard
|
|
448
|
+
|
|
449
|
+
* Add menus endpoints
|
|
450
|
+
|
|
451
|
+
API-129
|
|
452
|
+
Curt Howard
|
|
453
|
+
|
|
454
|
+
* Add user saved credit card endpoints for storefront api
|
|
455
|
+
|
|
456
|
+
API-147
|
|
457
|
+
Matt Duffy
|
|
458
|
+
|
|
459
|
+
* Add saved addresses endpoints for storefront api
|
|
460
|
+
|
|
461
|
+
API-146
|
|
462
|
+
Matt Duffy
|
|
463
|
+
|
|
464
|
+
* Add recent views endpoints
|
|
465
|
+
|
|
466
|
+
API-142
|
|
467
|
+
Ben Crouse
|
|
468
|
+
|
|
469
|
+
* Add search endpoints
|
|
470
|
+
|
|
471
|
+
API-144
|
|
472
|
+
Ben Crouse
|
|
473
|
+
|
|
474
|
+
* Add analytics endpoints
|
|
475
|
+
|
|
476
|
+
API-134
|
|
477
|
+
Ben Crouse
|
|
478
|
+
|
|
479
|
+
* Create contacts endpoint
|
|
480
|
+
|
|
481
|
+
API-129
|
|
482
|
+
Curt Howard
|
|
483
|
+
|
|
484
|
+
* Add categories endpoint
|
|
485
|
+
|
|
486
|
+
API-129
|
|
487
|
+
Curt Howard
|
|
488
|
+
|
|
489
|
+
* Fix separation of admin/storefront documentation
|
|
490
|
+
|
|
491
|
+
Having separate engines, I had to hack apart a fair bit of Raddocs to
|
|
492
|
+
achieve the goal of having two running groups of docs. At some point in
|
|
493
|
+
the future, we'll probably want to look into writing/maintaining our own
|
|
494
|
+
gem for this but for now, this should do.
|
|
495
|
+
|
|
496
|
+
API-132
|
|
497
|
+
Ben Crouse
|
|
498
|
+
|
|
499
|
+
* Add storefront authentication infrastructure
|
|
500
|
+
|
|
501
|
+
API-130
|
|
502
|
+
Ben Crouse
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
Workarea API 3.0.2 (2017-07-07)
|
|
506
|
+
--------------------------------------------------------------------------------
|
|
507
|
+
|
|
508
|
+
* Fix PaymentsDocumentationTest classname
|
|
509
|
+
|
|
510
|
+
This test had the incorrect name PagesDocumentationTest, which caused
|
|
511
|
+
the left navigation of the documentation to muddle Pages and Payment
|
|
512
|
+
into the same section
|
|
513
|
+
|
|
514
|
+
API-126
|
|
515
|
+
Curt Howard
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
Workarea API 3.0.1 (2017-06-08)
|
|
519
|
+
--------------------------------------------------------------------------------
|
|
520
|
+
|
|
521
|
+
* Update to use VCR included in base
|
|
522
|
+
|
|
523
|
+
Use the VCR installation included in base to allow cassette additions
|
|
524
|
+
and overrides.
|
|
525
|
+
|
|
526
|
+
API-121
|
|
527
|
+
Ben Crouse
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
Workarea API 3.0.0 (2017-05-26)
|
|
531
|
+
--------------------------------------------------------------------------------
|
|
532
|
+
|
|
533
|
+
* Update README
|
|
534
|
+
|
|
535
|
+
API-115
|
|
536
|
+
Ben Crouse
|
|
537
|
+
|
|
538
|
+
* Get raddocs working again
|
|
539
|
+
|
|
540
|
+
API-115
|
|
541
|
+
Ben Crouse
|
|
542
|
+
|
|
543
|
+
* Move to v3 namespace
|
|
544
|
+
|
|
545
|
+
API-115
|
|
546
|
+
Ben Crouse
|
|
547
|
+
|
|
548
|
+
* Add new infrastructure for documentation tests
|
|
549
|
+
|
|
550
|
+
API-115
|
|
551
|
+
Ben Crouse
|
|
552
|
+
|
|
553
|
+
* Convert request specs to tests and get them working
|
|
554
|
+
|
|
555
|
+
API-115
|
|
556
|
+
Ben Crouse
|
|
557
|
+
|
|
558
|
+
* Run renaming scripts
|
|
559
|
+
|
|
560
|
+
API-115
|
|
561
|
+
Ben Crouse
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
WebLinc API 2.1.2 (2016-12-06)
|
|
565
|
+
--------------------------------------------------------------------------------
|
|
566
|
+
|
|
567
|
+
* Don't use error as_json for not found handling
|
|
568
|
+
|
|
569
|
+
Using as_json is dangerous - it can cause an infinite loop depending on
|
|
570
|
+
how the error class is constructed and whether it has any
|
|
571
|
+
self-referential instance variables.
|
|
572
|
+
|
|
573
|
+
API-113
|
|
574
|
+
Ben Crouse
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
WebLinc API 2.1.1 (2016-10-11)
|
|
578
|
+
--------------------------------------------------------------------------------
|
|
579
|
+
|
|
580
|
+
* Fix tests for v2.3 compatibility
|
|
581
|
+
|
|
582
|
+
API-109
|
|
583
|
+
Ben Crouse
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
WebLinc API 2.1.0 (2016-08-01)
|
|
587
|
+
--------------------------------------------------------------------------------
|
|
588
|
+
|
|
589
|
+
* Fixes acceptance test payload for cancel_items
|
|
590
|
+
|
|
591
|
+
API-107
|
|
592
|
+
Dave Barnow
|
|
593
|
+
|
|
594
|
+
* Allow release_id to be included in api requests
|
|
595
|
+
|
|
596
|
+
When a patch/put request attempts to update a product, if a release
|
|
597
|
+
id was included on the request, it will save the changes with that
|
|
598
|
+
release rather than on the current live version of the resource
|
|
599
|
+
|
|
600
|
+
API-106
|
|
601
|
+
Matt Duffy
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
WebLinc API 2.0.3 (2016-05-23)
|
|
605
|
+
--------------------------------------------------------------------------------
|
|
606
|
+
|
|
607
|
+
* Fix missing type declaration for api permissions
|
|
608
|
+
|
|
609
|
+
API-104
|
|
610
|
+
Ben Crouse
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
WebLinc API 2.0.2 (2016-04-06)
|
|
614
|
+
--------------------------------------------------------------------------------
|
|
615
|
+
|
|
616
|
+
* Resolve issues with specs
|
|
617
|
+
|
|
618
|
+
API-102
|
|
619
|
+
Matt Duffy
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
WebLinc API 2.0.1 (2016-04-04)
|
|
623
|
+
--------------------------------------------------------------------------------
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
WebLinc API 2.0.0 (February 18, 2016)
|
|
627
|
+
--------------------------------------------------------------------------------
|
|
628
|
+
|
|
629
|
+
* Rewrite all endpoints
|
|
630
|
+
|
|
631
|
+
* Add new endpoints (payments, shipments, recommendations, etc)
|
|
632
|
+
|
|
633
|
+
* Add bulk upsert endpoints for all major resources
|
|
634
|
+
|
|
635
|
+
* Change authentication to use HTTP basic auth with user login credentials
|
|
636
|
+
|
|
637
|
+
* Add API permission to user edit page in the admin (required to use the API)
|
|
638
|
+
|
|
639
|
+
* Add Mongoid::AuditLog tracking to any change made through the API
|
|
640
|
+
|
|
641
|
+
* Add event source for events published by API requests
|
|
642
|
+
|
|
643
|
+
* Add rspec_api_documentation and raddocs for documentation generated from tests
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
WebLinc API 1.0.0
|
|
647
|
+
--------------------------------------------------------------------------------
|
|
648
|
+
|
|
649
|
+
* Update for compatibility with WebLinc 2.0
|
|
650
|
+
|
|
651
|
+
* Properly add hash params to product permitted params
|
|
652
|
+
|
|
653
|
+
Permitted params was removing arrays of value within the filter
|
|
654
|
+
and details hash of product params. Rather than try to dynamically
|
|
655
|
+
white list the keys of a hash, it now instead merges in the filters
|
|
656
|
+
and details explicitly.
|
|
657
|
+
|
|
658
|
+
API-83
|
|
659
|
+
Fixes: API-84
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
WebLinc API 0.12.0 (October 7, 2015)
|
|
663
|
+
--------------------------------------------------------------------------------
|
|
664
|
+
|
|
665
|
+
* Skip CSRF token verification on API controllers
|
|
666
|
+
|
|
667
|
+
If this isn't already a problem being hacked around, it will be in the
|
|
668
|
+
future. API controllers cannot enforce CSRF protection because they
|
|
669
|
+
don't need to and additionally make token-based API authentication much
|
|
670
|
+
harder than it needs to be. We probably never saw this issue because the
|
|
671
|
+
API was traditionally made for reading data, and CSRF protection is only valid for
|
|
672
|
+
POST/PUT/DELETE calls.
|
|
673
|
+
|
|
674
|
+
API-76
|
|
675
|
+
|
|
676
|
+
* Update for compatibility with the WebLinc v0.12 Ruby API.
|
|
677
|
+
|
|
678
|
+
* Upload product images with a remote URL
|
|
679
|
+
|
|
680
|
+
When `image_url` is passed as a parameter to `POST /api/products/1/images`,
|
|
681
|
+
we're now using Dragonfly to pull down the file at that URL and uploading
|
|
682
|
+
it to our CDN.
|
|
683
|
+
|
|
684
|
+
API-81
|
|
685
|
+
|
|
686
|
+
* Upload image data encoded as URL-safe Base64
|
|
687
|
+
|
|
688
|
+
This seems to have always been the intention of the API's product image
|
|
689
|
+
uploader...to take in base64-encoded binary image data directly from the
|
|
690
|
+
request. While we're also supporting URL-based image uploading, this is
|
|
691
|
+
the means by which clients who have nothing online (who would normally
|
|
692
|
+
have to FTP all the images over and establish some kind of convention)
|
|
693
|
+
can upload all of their media through this API endpoint.
|
|
694
|
+
|
|
695
|
+
API-80
|
|
696
|
+
|
|
697
|
+
* Fix sample data error when no reviews
|
|
698
|
+
|
|
699
|
+
Running sample data without the reviews plugin installed results in an
|
|
700
|
+
uninitialized constant `Weblinc::Review` error. Within the review
|
|
701
|
+
decorator, check for the reviews plugin before decorating
|
|
702
|
+
`Weblinc::Review`.
|
|
703
|
+
|
|
704
|
+
API-77
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
WebLinc API 0.11.0 (August 21, 2015)
|
|
708
|
+
--------------------------------------------------------------------------------
|
|
709
|
+
|
|
710
|
+
* Fix circular reference in pages request spec.
|
|
711
|
+
|
|
712
|
+
27ebe2f3988cbef5ffc041811a5a457443e95514
|
|
713
|
+
|
|
714
|
+
* Add endpoints for reviews.
|
|
715
|
+
|
|
716
|
+
1cd45613d5eb9491852f98edc3defadf2eb38289
|
|
717
|
+
|
|
718
|
+
* Update content for compatibility with WebLinc 0.11.
|
|
719
|
+
|
|
720
|
+
8462a669b9f20ca3ffb0132ec78bb55822d58b95
|
|
721
|
+
|
|
722
|
+
* Add CREATE and UPDATE methods for categories.
|
|
723
|
+
|
|
724
|
+
API-67
|
|
725
|
+
|
|
726
|
+
95d90113e3068841d770a5bc0a4d3a41d06605f4
|
|
727
|
+
84599c152298513b336ecf07773635bdbdac9564
|
|
728
|
+
|
|
729
|
+
* Fix tests to pass on ruby 2.2.
|
|
730
|
+
|
|
731
|
+
2d3ab7a91a4c3d3ff8a13f0450558f5154643f3a
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
WebLinc API 0.10.0 (July 11, 2015)
|
|
735
|
+
--------------------------------------------------------------------------------
|
|
736
|
+
|
|
737
|
+
* Update for compatibility with weblinc 0.10.0.
|
|
738
|
+
|
|
739
|
+
43b9e222ce21687c6ffe7de8dab8210e9929c635
|
|
740
|
+
|
|
741
|
+
* Fix documentation of `Weblinc::Api.config.auth_token` in `README`.
|
|
742
|
+
|
|
743
|
+
e558396e0acbd91995c9ebfde74637413c62db32
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
WebLinc API 0.9.0 (June 1, 2015)
|
|
747
|
+
--------------------------------------------------------------------------------
|
|
748
|
+
|
|
749
|
+
* Validate product details/filters are arrays of scalar values.
|
|
750
|
+
|
|
751
|
+
Previously, the ProductsController was merging the contents of the
|
|
752
|
+
details and filters hash onto the hash validated by strong_parameters.
|
|
753
|
+
We are now incorporating the validation that details/filters are arrays
|
|
754
|
+
of scalar values in accordance with strong_parameters' slightly
|
|
755
|
+
hard-to-comprehend API:
|
|
756
|
+
https://github.com/rails/strong_parameters#permitted-scalar-values
|
|
757
|
+
|
|
758
|
+
This should fix the issue of product details/filters not being checked
|
|
759
|
+
to ensure they are the proper type through the API.
|
|
760
|
+
|
|
761
|
+
API-60
|
|
762
|
+
|
|
763
|
+
* Fix randomly failing specs.
|
|
764
|
+
|
|
765
|
+
* Update for compatibility with weblinc 0.9.0.
|
|
766
|
+
|
|
767
|
+
da40c95485ac9e656d9c55921d5e3a3bde6d83f1
|
|
768
|
+
|
|
769
|
+
* Fix 'variant' misspelling in variants controller
|
|
770
|
+
|
|
771
|
+
API-59
|
|
772
|
+
|
|
773
|
+
* Add full API documentation.
|
|
774
|
+
|
|
775
|
+
API-50
|
|
776
|
+
|
|
777
|
+
* Move gift cards API functionality from weblinc-gift_cards to weblinc-api.
|
|
778
|
+
|
|
779
|
+
GIFTCARDS-50
|
|
780
|
+
|
|
781
|
+
* Fix decorator missing `with` option.
|
|
782
|
+
|
|
783
|
+
API-58
|
|
784
|
+
|
|
785
|
+
* Move wish lists API functionality from weblinc-wish_lists to weblinc-api.
|
|
786
|
+
|
|
787
|
+
WISHLISTS-45
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
WebLinc API 0.8.0 (April 10, 2015)
|
|
791
|
+
--------------------------------------------------------------------------------
|
|
792
|
+
|
|
793
|
+
* Conform to the [JSON API spec](http://jsonapi.org/).
|
|
794
|
+
|
|
795
|
+
This change redefines all API v1 endpoints and ensures proper use of HTTP
|
|
796
|
+
headers, json-based exception handling, and adds consistency to the format
|
|
797
|
+
of responses. Additionally, the API specs have been updated to reflect the
|
|
798
|
+
changes, to improve consistency across specs, and to ensure better test
|
|
799
|
+
coverage.
|
|
800
|
+
|
|
801
|
+
Updated API documentation is forthcoming in an upcoming patch release.
|
|
802
|
+
|
|
803
|
+
* Update testing environment for compatibility with WebLinc 0.8.0.
|
|
804
|
+
|
|
805
|
+
* Use new decorator style for consistency with WebLinc 0.8.0.
|
|
806
|
+
|
|
807
|
+
* Remove gems server secrets for consistency with WebLinc 0.8.0.
|