Closed elena-shostak closed 6 days ago
Added space content summary GET API endpoint which returns summary of the different saved objects that exist within each space.
GET
Request GET kbn:/internal/spaces/a-space/content_summary Response
GET kbn:/internal/spaces/a-space/content_summary
{ "summary": [ { "count": 1, "type": "config", "displayName": "Config" }, { "count": 2, "type": "dashboard", "displayName": "Dashboard", "icon": "dashboardApp" }, { "count": 4, "type": "index-pattern", "displayName": "data view", "icon": "indexPatternApp" }, { "count": 2, "type": "tag", "displayName": "Tag", "icon": "tag" } ], "total": 9 }
Request GET kbn:/internal/spaces/not-a-space/content_summary Response
GET kbn:/internal/spaces/not-a-space/content_summary
{ "statusCode": 404, "error": "Not Found", "message": "Not Found" }
Fixes: https://github.com/elastic/kibana/issues/182406
/ci
Pinging @elastic/kibana-security (Team:Security)
✅ unchanged
To update your PR or re-run it, just comment with: @elasticmachine merge upstream
@elasticmachine merge upstream
Summary
Added space content summary
GET
API endpoint which returns summary of the different saved objects that exist within each space.Request
GET kbn:/internal/spaces/a-space/content_summary
ResponseRequest
GET kbn:/internal/spaces/not-a-space/content_summary
ResponseChecklist
For maintainers
Fixes: https://github.com/elastic/kibana/issues/182406