You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
2.9 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Representation of Webapi module in System Configuration (Magento admin panel).
  5. *
  6. * Copyright © Magento, Inc. All rights reserved.
  7. * See COPYING.txt for license details.
  8. */
  9. -->
  10. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
  11. <system>
  12. <section id="webapi">
  13. <group id="graphql_validation" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  14. <label>GraphQl Input Limits</label>
  15. <field id="input_limit_enabled" translate="label" type="select" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
  16. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  17. <label>Enable Input Limits</label>
  18. <config_path>graphql/validation/input_limit_enabled</config_path>
  19. </field>
  20. <field id="maximum_page_size" translate="label comment" type="text" sortOrder="15" showInDefault="1" showInWebsite="1" showInStore="1">
  21. <label>Maximum Page Size</label>
  22. <comment>Maximum number of items allowed in a paginated search result.</comment>
  23. <config_path>graphql/validation/maximum_page_size</config_path>
  24. <depends>
  25. <field id="input_limit_enabled">1</field>
  26. </depends>
  27. </field>
  28. </group>
  29. <group id="graphql_session" translate="label" type="text" sortOrder="20" showInDefault="0" showInWebsite="0" showInStore="0">
  30. <label>GraphQl Session Management</label>
  31. <field id="disabled" translate="label" type="select" sortOrder="20" showInDefault="0" showInWebsite="0" showInStore="0">
  32. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  33. <label>Disable session</label>
  34. <config_path>graphql/session/disable</config_path>
  35. </field>
  36. </group>
  37. </section>
  38. <section id="web_api">
  39. <group id="graphql" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
  40. <label>GraphQl</label>
  41. <field id="include_dynamic_attributes_as_entity_type_fields" translate="label" type="select" sortOrder="25" showInDefault="1" showInWebsite="1" showInStore="1">
  42. <label>Include dynamic attributes as entity type fields</label>
  43. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  44. <config_path>web_api/graphql/include_dynamic_attributes_as_entity_type_fields</config_path>
  45. </field>
  46. </group>
  47. </section>
  48. </system>
  49. </config>