2017 © Pedro Peláez
 

magento2-module m2-flatcategories-module

A flat category rest endpoint for magento2 to work round the stupidity that is the default tree interface.

image

thousandmonkeys/m2-flatcategories-module

A flat category rest endpoint for magento2 to work round the stupidity that is the default tree interface.

  • Sunday, April 8, 2018
  • by lingwooc
  • Repository
  • 2 Watchers
  • 2 Stars
  • 71 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 97 % Grown

The README.md

flatCategory-magento2

A flat category rest endpoint for magento2 to work round the stupidity that is the default tree interface. This just gives a list of all categories with searchCriteria supported to make caching and lookups easy, instead of hard and annoying., (*1)

Installation

  • composer require thousandmonkeys/m2-flatcategories-module
  • php bin/magento deploy:mode:set developer
  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile
  • php bin/magento deploy:mode:set production
  • php bin/magento maintenance:disable

Usage

GET rest/V1/flatCategories?searchCriteria Response:, (*2)

{
  "items": [
    {
      "id": 0,
      "parent_id": 0,
      "name": "string",
      "is_active": true,
      "position": 0,
      "level": 0,
      "children": "string",
      "created_at": "string",
      "updated_at": "string",
      "path": "string",
      "available_sort_by": [
        "string"
      ],
      "include_in_menu": true,
      "extension_attributes": {},
      "custom_attributes": [
        {
          "attribute_code": "string",
          "value": "string"
        }
      ]
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "condition_type": "string"
          }
        ]
      }
    ],
    "sort_orders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "page_size": 0,
    "current_page": 0
  },
  "total_count": 0
}

The Versions

08/04 2018

v1.0.1

1.0.1.0

A flat category rest endpoint for magento2 to work round the stupidity that is the default tree interface.

  Sources   Download

OSL-3.0 AFL-3.0

04/04 2018

dev-master

9999999-dev

A flat category rest endpoint for magento2 to work round the stupidity that is the default tree interface.

  Sources   Download

OSL-3.0 AFL-3.0