From 434472a3bd9fbfc1c6fa2b019a43535fcb452fe1 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 26 Jan 2023 13:06:53 -0500 Subject: [PATCH] fix: schema changes for f4cf482a874701ce80c0f306c49d8788cec66f87 --- public/openapi/read/admin/dashboard.yaml | 11 +++++++++++ public/openapi/read/admin/dashboard/searches.yaml | 2 +- public/openapi/read/admin/dashboard/topics.yaml | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/public/openapi/read/admin/dashboard.yaml b/public/openapi/read/admin/dashboard.yaml index a281150473..a416d51b56 100644 --- a/public/openapi/read/admin/dashboard.yaml +++ b/public/openapi/read/admin/dashboard.yaml @@ -60,5 +60,16 @@ get: description: An ISO 8601 formatted date string (complementing `timestamp`) showSystemControls: type: boolean + popularSearches: + type: array + items: + type: object + properties: + value: + type: string + description: The search term + score: + type: number + description: How many times it has been queried - $ref: ../../components/schemas/admin/dashboard.yaml#/Stats - $ref: ../../components/schemas/CommonProps.yaml#/CommonProps \ No newline at end of file diff --git a/public/openapi/read/admin/dashboard/searches.yaml b/public/openapi/read/admin/dashboard/searches.yaml index 7097c8bcb8..42d3e1e269 100644 --- a/public/openapi/read/admin/dashboard/searches.yaml +++ b/public/openapi/read/admin/dashboard/searches.yaml @@ -1,7 +1,7 @@ get: tags: - admin - summary: Get detailed user registration analytics + summary: Get detailed search analytics responses: "200": description: A JSON object containing popular searches. diff --git a/public/openapi/read/admin/dashboard/topics.yaml b/public/openapi/read/admin/dashboard/topics.yaml index 2a787893c1..7b3ffab7b7 100644 --- a/public/openapi/read/admin/dashboard/topics.yaml +++ b/public/openapi/read/admin/dashboard/topics.yaml @@ -1,10 +1,10 @@ get: tags: - admin - summary: Get detailed user registration analytics + summary: Get detailed topic creation analytics responses: "200": - description: A JSON object containing more detailed analytics related to user registrations. + description: A JSON object containing more detailed analytics related to topic creations. content: application/json: schema: