bianjunhui преди 1 седмица
родител
ревизия
b347a3a0a2

+ 1 - 0
packages/Webkul/BagistoApi/src/Models/AttributeOption.php

@@ -14,6 +14,7 @@ use Symfony\Component\TypeInfo\TypeIdentifier;
 #[ApiResource(
 #[ApiResource(
     shortName: 'AttributeOption',
     shortName: 'AttributeOption',
     description: 'Attribute option resource',
     description: 'Attribute option resource',
+    paginationItemsPerPage: 50,
     operations: [
     operations: [
         new GetCollection(
         new GetCollection(
             uriTemplate: '/attribute_options',
             uriTemplate: '/attribute_options',

+ 1 - 1
packages/Webkul/BagistoApi/src/State/AttributeOptionCollectionProvider.php

@@ -47,7 +47,7 @@ class AttributeOptionCollectionProvider implements ProviderInterface
         $after = $args['after'] ?? null;
         $after = $args['after'] ?? null;
         $before = $args['before'] ?? null;
         $before = $args['before'] ?? null;
 
 
-        $defaultPerPage = 10;
+        $defaultPerPage = 50;
 
 
         // Determine page size
         // Determine page size
         if ($first !== null) {
         if ($first !== null) {