From 9676b51f01a43a2798513bce4fbefac96775e582 Mon Sep 17 00:00:00 2001 From: marcos-silva-rodrigues Date: Thu, 10 Apr 2025 11:27:07 -0300 Subject: [PATCH] FIX: comment host metadata --- docsfera.json | 86 +++++++++++++++++++++++++++++ src/modules/auth/auth.controller.ts | 3 +- 2 files changed, 88 insertions(+), 1 deletion(-) diff --git a/docsfera.json b/docsfera.json index cbd0471..a39fbf8 100644 --- a/docsfera.json +++ b/docsfera.json @@ -20,6 +20,14 @@ ], "type": "string" } + }, + { + "name": "host", + "required": true, + "in": "header", + "schema": { + "type": "string" + } } ], "requestBody": { @@ -64,6 +72,14 @@ ], "type": "string" } + }, + { + "name": "host", + "required": true, + "in": "header", + "schema": { + "type": "string" + } } ], "requestBody": { @@ -5715,6 +5731,62 @@ "Health" ] } + }, + "/network-policy": { + "post": { + "operationId": "NetworkPolicyController_applyNetworkPolicies", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NetworkPoliciesDTO" + } + } + } + }, + "responses": { + "200": { + "description": "" + } + }, + "security": [ + { + "access-token": [] + }, + { + "access-token": [] + } + ] + }, + "delete": { + "operationId": "NetworkPolicyController_removeNetworkPolicies", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NetworkPoliciesDTO" + } + } + } + }, + "responses": { + "200": { + "description": "" + } + }, + "security": [ + { + "access-token": [] + }, + { + "access-token": [] + } + ] + } } }, "info": { @@ -8566,6 +8638,20 @@ "required": [ "theme" ] + }, + "NetworkPoliciesDTO": { + "type": "object", + "properties": { + "policies": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "policies" + ] } } } diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index 0fdba0d..bd4b618 100644 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -91,7 +91,8 @@ export class AuthController { @Headers('host') host: string ): Promise { this.logger.info('/auth - SignIn'); - const metadata = PackTheMetadata({ language, host }); + this.logger.info('host: ' + host); + const metadata = PackTheMetadata({ language }); return this.authClient.signIn({ username, password, totp }, metadata); }