REST APIeasy-svg-pro/v1/repair/report

easy-svg-pro/v1/repair/report

Returns the last stored scan for broken, rather than dangerous, SVGs in the media library.

REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/repair/repair.php

Internal: not part of the promised public surface. It may change without notice.

Usage

GET /wp-json/easy-svg-pro/v1/repair/report

Example

curl -X GET "https://example.com/wp-json/easy-svg-pro/v1/repair/report" \
	-H "X-WP-Nonce: $NONCE" -b "$COOKIES"

Description

Reads the stored report from the easy_svg_pro_repair_report option and adds a readable message to each finding. An empty object means no scan has run yet. At most 200 attachments with findings are stored.

Permission: manage_options and an active licence with the Repair broken SVGs feature switched on under Icons, Features.

Return value

returnobject

{at, scanned, found, unreadable, next, rows: {attachment_id: [{kind, repairable, detail, message}]}}. kind is no_viewbox, ballast, raster, text or too_large; only the first two are repairable.

Response

{at, scanned, found, unreadable, next, rows: {attachment_id: [{kind, repairable, detail, message}]}}. kind is no_viewbox, ballast, raster, text or too_large; only the first two are repairable.

{
  "at": 1792800000,
  "scanned": 50,
  "found": 1,
  "unreadable": 0,
  "next": 50,
  "rows": {
    "314": [
      {
        "kind": "no_viewbox",
        "repairable": true,
        "detail": "",
        "message": "..."
      }
    ]
  }
}