Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Increased API v2 per page limit to 500 (#11257)

Damian Legawiec3c2a6ad85fc3
diff --git a/api/app/models/spree/api_configuration.rb b/api/app/models/spree/api_configuration.rb
index ddaf6f9cda..1b9b27cfbe 100644
--- a/api/app/models/spree/api_configuration.rb
+++ b/api/app/models/spree/api_configuration.rb
@@ -5,6 +5,6 @@ module Spree
preference :api_v2_collection_cache_ttl, :integer, default: 3600 # 1 hour in seconds
preference :api_v2_collection_cache_namespace, :string, default: 'api_v2_collection_cache'
preference :api_v2_content_type, :string, default: 'application/vnd.api+json'
- preference :api_v2_per_page_limit, :integer, default: 100
+ preference :api_v2_per_page_limit, :integer, default: 500
end
end