spree_api 3.7.13 → 4.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree_api might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/app/controllers/spree/api/base_controller.rb +3 -3
- data/app/controllers/spree/api/v1/addresses_controller.rb +2 -2
- data/app/controllers/spree/api/v1/countries_controller.rb +2 -2
- data/app/controllers/spree/api/v1/credit_cards_controller.rb +2 -2
- data/app/controllers/spree/api/v1/images_controller.rb +3 -3
- data/app/controllers/spree/api/v1/inventory_units_controller.rb +2 -2
- data/app/controllers/spree/api/v1/option_types_controller.rb +4 -4
- data/app/controllers/spree/api/v1/option_values_controller.rb +3 -3
- data/app/controllers/spree/api/v1/payments_controller.rb +2 -2
- data/app/controllers/spree/api/v1/product_properties_controller.rb +4 -4
- data/app/controllers/spree/api/v1/properties_controller.rb +4 -4
- data/app/controllers/spree/api/v1/return_authorizations_controller.rb +4 -4
- data/app/controllers/spree/api/v1/shipments_controller.rb +3 -3
- data/app/controllers/spree/api/v1/states_controller.rb +3 -3
- data/app/controllers/spree/api/v1/stock_items_controller.rb +2 -2
- data/app/controllers/spree/api/v1/stock_locations_controller.rb +5 -4
- data/app/controllers/spree/api/v1/stock_movements_controller.rb +3 -3
- data/app/controllers/spree/api/v1/stores_controller.rb +4 -4
- data/app/controllers/spree/api/v1/taxonomies_controller.rb +3 -3
- data/app/controllers/spree/api/v1/taxons_controller.rb +5 -5
- data/app/controllers/spree/api/v1/users_controller.rb +3 -3
- data/app/controllers/spree/api/v1/variants_controller.rb +3 -3
- data/app/controllers/spree/api/v1/zones_controller.rb +3 -3
- data/app/controllers/spree/api/v2/base_controller.rb +1 -6
- data/app/controllers/spree/api/v2/storefront/account/credit_cards_controller.rb +1 -1
- data/app/controllers/spree/api/v2/storefront/countries_controller.rb +2 -1
- data/app/controllers/spree/api/v2/storefront/order_status_controller.rb +0 -6
- data/app/controllers/spree/api/v2/storefront/products_controller.rb +1 -1
- data/app/controllers/spree/api/v2/storefront/taxons_controller.rb +1 -1
- data/app/views/spree/api/errors/{gateway_error.v1.rabl → gateway_error.rabl} +0 -0
- data/app/views/spree/api/errors/{invalid_api_key.v1.rabl → invalid_api_key.rabl} +0 -0
- data/app/views/spree/api/errors/{invalid_resource.v1.rabl → invalid_resource.rabl} +0 -0
- data/app/views/spree/api/errors/{must_specify_api_key.v1.rabl → must_specify_api_key.rabl} +0 -0
- data/app/views/spree/api/errors/{not_found.v1.rabl → not_found.rabl} +0 -0
- data/app/views/spree/api/errors/{unauthorized.v1.rabl → unauthorized.rabl} +0 -0
- data/app/views/spree/api/v1/addresses/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/adjustments/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/countries/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/countries/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/credit_cards/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/credit_cards/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/customer_returns/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/images/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/images/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/images/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/line_items/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/line_items/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/option_types/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/option_types/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/option_types/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/option_values/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/option_values/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/option_values/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{address.v1.rabl → address.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{canceled.v1.rabl → canceled.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{cart.v1.rabl → cart.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{complete.v1.rabl → complete.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{could_not_apply_coupon.v1.rabl → could_not_apply_coupon.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{could_not_transition.v1.rabl → could_not_transition.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{insufficient_quantity.v1.rabl → insufficient_quantity.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{invalid_shipping_method.v1.rabl → invalid_shipping_method.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{mine.v1.rabl → mine.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{order.v1.rabl → order.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{payment.v1.rabl → payment.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/payments/{credit_over_limit.v1.rabl → credit_over_limit.rabl} +0 -0
- data/app/views/spree/api/v1/payments/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/payments/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/payments/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/payments/{update_forbidden.v1.rabl → update_forbidden.rabl} +0 -0
- data/app/views/spree/api/v1/product_properties/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/product_properties/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/product_properties/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/products/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/products/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/products/{product.v1.rabl → product.rabl} +0 -0
- data/app/views/spree/api/v1/products/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/promotions/{handler.v1.rabl → handler.rabl} +0 -0
- data/app/views/spree/api/v1/promotions/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/properties/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/properties/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/properties/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/reimbursements/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/return_authorizations/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/return_authorizations/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/return_authorizations/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/shared/{stock_location_required.v1.rabl → stock_location_required.rabl} +0 -0
- data/app/views/spree/api/v1/shipments/{big.v1.rabl → big.rabl} +0 -0
- data/app/views/spree/api/v1/shipments/{cannot_ready_shipment.v1.rabl → cannot_ready_shipment.rabl} +0 -0
- data/app/views/spree/api/v1/shipments/{mine.v1.rabl → mine.rabl} +0 -0
- data/app/views/spree/api/v1/shipments/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/shipments/{small.v1.rabl → small.rabl} +0 -0
- data/app/views/spree/api/v1/shipping_rates/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/states/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/states/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/stock_items/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/stock_items/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/stock_locations/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/stock_locations/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/stock_movements/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/stock_movements/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/stores/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/stores/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/tags/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/taxonomies/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/taxonomies/{nested.v1.rabl → nested.rabl} +0 -0
- data/app/views/spree/api/v1/taxonomies/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/taxonomies/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/taxons/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/taxons/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/taxons/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/taxons/{taxons.v1.rabl → taxons.rabl} +0 -0
- data/app/views/spree/api/v1/users/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/users/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/users/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/variants/{big.v1.rabl → big.rabl} +0 -0
- data/app/views/spree/api/v1/variants/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/variants/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/variants/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/variants/{small.v1.rabl → small.rabl} +0 -0
- data/app/views/spree/api/v1/zones/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/zones/{show.v1.rabl → show.rabl} +0 -0
- data/config/initializers/doorkeeper.rb +12 -0
- data/config/initializers/rabl_rails6_fix.rb +16 -0
- data/config/routes.rb +0 -2
- data/docs/v2/storefront/index.yaml +36 -31
- data/lib/spree/api/engine.rb +0 -19
- data/lib/spree/api/testing_support/v2/base.rb +1 -1
- data/lib/spree_api.rb +0 -1
- data/spree_api.gemspec +2 -3
- metadata +108 -126
- data/app/controllers/spree/api/v1/tags_controller.rb +0 -28
- data/app/models/doorkeeper/access_grant_decorator.rb +0 -3
- data/app/models/doorkeeper/access_token_decorator.rb +0 -3
- data/app/models/doorkeeper/application_decorator.rb +0 -3
- data/config/initializers/metal_load_paths.rb +0 -1
@@ -1,28 +0,0 @@
|
|
1
|
-
module Spree
|
2
|
-
module Api
|
3
|
-
module V1
|
4
|
-
class TagsController < Spree::Api::BaseController
|
5
|
-
def index
|
6
|
-
@tags =
|
7
|
-
if params[:ids]
|
8
|
-
Tag.where(id: params[:ids].split(',').flatten)
|
9
|
-
else
|
10
|
-
Tag.ransack(params[:q]).result
|
11
|
-
end
|
12
|
-
|
13
|
-
@tags = @tags.page(params[:page]).per(params[:per_page])
|
14
|
-
|
15
|
-
expires_in 15.minutes, public: true
|
16
|
-
headers['Surrogate-Control'] = "max-age=#{15.minutes}"
|
17
|
-
respond_with(@tags)
|
18
|
-
end
|
19
|
-
|
20
|
-
private
|
21
|
-
|
22
|
-
def tags_params
|
23
|
-
params.require(:tag).permit(permitted_tags_attributes)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
Spree::Api::BaseController.append_view_path(ApplicationController.view_paths)
|