Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(infra): document the 400 that PUT /api/infra/config returns
Yudhi Armyndharisc4d9b9699482
diff --git a/src/modules/infra/infra-config.controller.ts b/src/modules/infra/infra-config.controller.tsindex e93bbd3f7..79db3734f 100644--- a/src/modules/infra/infra-config.controller.ts+++ b/src/modules/infra/infra-config.controller.ts@@ -191,9 +191,15 @@ export class InfraConfigController {@ApiOperation({ summary: 'Save infrastructure configuration to .env file' })@ApiResponse({status: 200,- description: 'Save outcome. A failed write also answers 200 with `saved: false` — read the flag, not the status.',+ description: 'Save outcome. A failed disk write answers 200 with `saved: false`, so read the flag, not the status.',type: InfraConfigSaveResponseDto,})+ @ApiResponse({+ status: 400,+ description:+ 'Rejected before anything was written: an invalid or unknown field, an unknown engine type, a value with a ' ++ 'line break or one that cannot be stored, or a configuration that would not boot in production.',+ })@ApiBody({ description: 'Configuration to save', type: SaveConfigDto })saveConfig(@Body() config: SaveConfigDto): { message: string; saved: boolean; envPath: string; profiles: string[] } {try {