Class: Spree::Api::V3::Admin::MarketsController
- Inherits:
-
ResourceController
- Object
- ActionController::API
- BaseController
- ResourceController
- Spree::Api::V3::Admin::MarketsController
- Defined in:
- app/controllers/spree/api/v3/admin/markets_controller.rb
Overview
Admin Markets surface. Markets are store-scoped (store_id column +
acts_as_list scope: :store_id), so the base ResourceController's
scope chain narrows appropriately when we restrict to
current_store.markets.
country_isos and supported_locales are accepted as arrays on the
wire and translated by model setters (Spree::Market#country_isos=,
#supported_locales=).
Constant Summary
Constants inherited from BaseController
BaseController::RATE_LIMIT_RESPONSE
Constants included from Idempotent
Idempotent::IDEMPOTENCY_HEADER, Idempotent::IDEMPOTENCY_TTL, Idempotent::MAX_KEY_LENGTH, Idempotent::MUTATING_METHODS
Constants included from ErrorHandler
Constants included from JwtAuthentication
JwtAuthentication::JWT_AUDIENCE_ADMIN, JwtAuthentication::JWT_AUDIENCE_STORE, JwtAuthentication::JWT_ISSUER, JwtAuthentication::USER_TYPE_ADMIN, JwtAuthentication::USER_TYPE_CUSTOMER
Method Summary
Methods inherited from ResourceController
#create, #destroy, #index, #show, #update
Methods included from Spree::Api::V3::ApiKeyAuthentication
#authenticate_api_key!, #authenticate_secret_key!