Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-4527

Implement API endpoint for Blocks Usage

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • 2.12
    • 4
    • Blocks (all)
    • Sprint #114

      On the old blocks plugin we had a custom API endpoint for checking Blocks Usage. This is used by an external sevice to generate a report.

      That's the code from the old plugin:
      https://github.com/greenpeace/planet4-plugin-blocks/blob/develop/planet4-blocks.php#L137-L291

      Here is how it looks (see at the bottom for p4 blocks)
      https://www.greenpeace.org/korea/wp-json/plugin_blocks/v1/plugin_blocks_report/

      Tasks

      • Re-implement the same kind of API endpoint on the gutenberg-blocks api

            sdeshmuk Sagar Deshmukh
            nroussos Nikos Roussos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: