From 733c2c3b4be768eb323ea8069d8c016803858503 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 30 Sep 2024 13:59:13 +0000 Subject: [PATCH] update api/manager.yaml --- api/manager.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/api/manager.yaml b/api/manager.yaml index 2dcee0f..66fced4 100644 --- a/api/manager.yaml +++ b/api/manager.yaml @@ -46,6 +46,8 @@ tags: name: Google Search Console Searches - description: Access Google Search Console data name: Google Search Console +- description: Account Statistics + name: Account Stats - description: "Import Analytics data to the KG using different sources, e.g. Google\ \ Search Console." name: Analytics Imports @@ -338,6 +340,25 @@ paths: summary: Update tags: - Plugin Diagnostics + /accounts/me/stats: + get: + description: "Get the Account statistics, such the number of products, product\ + \ groups and urls in the KG." + operationId: getMyStats + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccountStats' + description: Found + "401": + description: Authentication Failure + security: + - ApiKey: [] + summary: Get my Account statistics + tags: + - Account Stats /accounts/{id}: get: description: Get the account @@ -1686,6 +1707,26 @@ components: - datasetUri - networks - subscriptionId + AccountStats: + type: object + description: The Account statistics + properties: + entities_with_url: + type: integer + format: int64 + description: The number of entities with URL. + product_groups: + type: integer + format: int64 + description: The number of product groups in the KG. + products: + type: integer + format: int64 + description: The number of products in the KG. + required: + - entities_with_url + - product_groups + - products AccountSubscription: type: object properties: