From d38001f719a3c115ff9f56a78dc9e3e44625cd3e Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 29 Jun 2022 12:11:06 +0200 Subject: [PATCH] Fix: update openapi snapshot --- .../__snapshots__/openapi.e2e.test.ts.snap | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap b/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap index bcae1c0c4e..2d4108dc9a 100644 --- a/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap +++ b/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap @@ -822,6 +822,9 @@ Object { "toggleName": Object { "type": "string", }, + "version": Object { + "type": "number", + }, }, "required": Array [ "toggleName", @@ -2961,7 +2964,20 @@ Object { }, "/api/admin/events": Object { "get": Object { + "description": "Returns **the last 100** from the Unleash instance when called without a query parameter. When called with a \`project\` parameter, returns **all events** for the specified project. + +If the provided project does not exist, the list of events will be empty.", "operationId": "getEvents", + "parameters": Array [ + Object { + "description": "The name of the project whose events you want to retrieve", + "in": "query", + "name": "project", + "schema": Object { + "type": "string", + }, + }, + ], "responses": Object { "200": Object { "content": Object { @@ -2973,19 +2989,24 @@ Object { }, "description": "eventsSchema", }, + "401": Object { + "description": "Authorization information is missing or invalid. Provide a valid API token as the \`authorization\` header, e.g. \`authorization:*.*.my-admin-token\`.", + }, }, + "summary": "Get the most recent events from the Unleash instance or all events related to a project.", "tags": Array [ "admin", ], }, }, - "/api/admin/events/{name}": Object { + "/api/admin/events/{featureName}": Object { "get": Object { + "description": "Returns all events related to the specified feature toggle. If the feature toggle does not exist, the list of events will be empty.", "operationId": "getEventsForToggle", "parameters": Array [ Object { "in": "path", - "name": "name", + "name": "featureName", "required": true, "schema": Object { "type": "string", @@ -3003,7 +3024,11 @@ Object { }, "description": "featureEventsSchema", }, + "401": Object { + "description": "Authorization information is missing or invalid. Provide a valid API token as the \`authorization\` header, e.g. \`authorization:*.*.my-admin-token\`.", + }, }, + "summary": "Get all events related to a specific feature toggle.", "tags": Array [ "admin", ],