diff --git a/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap b/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap index 4df4c5ccad..2c5c5bfc64 100644 --- a/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap +++ b/shared/helpers/openapi/__snapshots__/generateOpenapi.test.ts.snap @@ -6536,301 +6536,6 @@ Limite : 20 appel(s) / 1 seconde(s) ], }, }, - "/traininglinks": { - "post": { - "description": "Limite : 3 appel(s) / 1 seconde(s) -", - "requestBody": { - "content": { - "application/json": { - "schema": { - "items": { - "additionalProperties": false, - "properties": { - "cfd": { - "type": [ - "string", - "null", - ], - }, - "cle_ministere_educatif": { - "type": [ - "string", - "null", - ], - }, - "code_insee": { - "type": [ - "string", - "null", - ], - }, - "code_postal": { - "type": [ - "string", - "null", - ], - }, - "id": { - "type": "string", - }, - "mef": { - "type": [ - "string", - "null", - ], - }, - "rncp": { - "type": [ - "string", - "null", - ], - }, - "uai_formateur": { - "type": [ - "string", - "null", - ], - }, - "uai_formateur_responsable": { - "type": [ - "string", - "null", - ], - }, - "uai_lieu_formation": { - "type": [ - "string", - "null", - ], - }, - }, - "required": [ - "id", - ], - "type": "object", - }, - "maxItems": 100, - "type": "array", - }, - }, - }, - "required": true, - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "items": { - "additionalProperties": false, - "properties": { - "id": { - "type": "string", - }, - "lien_lba": { - "type": "string", - }, - "lien_prdv": { - "type": "string", - }, - }, - "required": [ - "id", - "lien_prdv", - "lien_lba", - ], - "type": "object", - }, - "type": "array", - }, - }, - }, - "description": "", - }, - }, - "security": [], - }, - }, - "/unsubscribe": { - "post": { - "description": "Limite : 1 appel(s) / 5 seconde(s) -", - "requestBody": { - "content": { - "application/json": { - "schema": { - "additionalProperties": false, - "properties": { - "email": { - "format": "email", - "type": "string", - }, - "reason": { - "type": "string", - }, - "sirets": { - "items": { - "description": "Le numéro de SIRET de l'établissement", - "example": "78424186100011", - "pattern": "^[0-9]{14}$", - "type": "string", - }, - "type": [ - "array", - "null", - ], - }, - }, - "required": [ - "email", - "reason", - ], - "type": "object", - }, - }, - }, - "required": true, - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "additionalProperties": false, - "properties": { - "companies": { - "items": { - "additionalProperties": false, - "properties": { - "address": { - "type": "string", - }, - "enseigne": { - "type": "string", - }, - "siret": { - "description": "Le numéro de SIRET de l'établissement", - "example": "78424186100011", - "pattern": "^[0-9]{14}$", - "type": "string", - }, - }, - "required": [ - "enseigne", - "siret", - "address", - ], - "type": "object", - }, - "type": [ - "array", - "null", - ], - }, - "result": { - "enum": [ - "OK", - "NON_RECONNU", - "ETABLISSEMENTS_MULTIPLES", - ], - "type": "string", - }, - }, - "required": [ - "result", - ], - "type": "object", - }, - }, - }, - "description": "", - }, - }, - "security": [], - }, - }, - "/updateLBB/updateContactInfo": { - "get": { - "description": "Limite : 1 appel(s) / 20 seconde(s) -", - "parameters": [ - { - "in": "query", - "name": "secret", - "required": true, - "schema": { - "type": "string", - }, - }, - { - "description": "Le numéro de SIRET de l'établissement", - "in": "query", - "name": "siret", - "required": true, - "schema": { - "description": "Le numéro de SIRET de l'établissement", - "example": "78424186100011", - "pattern": "^[0-9]{14}$", - "type": "string", - }, - }, - { - "in": "query", - "name": "email", - "required": false, - "schema": { - "anyOf": [ - { - "format": "email", - "type": "string", - }, - { - "enum": [ - "", - ], - "type": "string", - }, - ], - }, - }, - { - "in": "query", - "name": "phone", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string", - }, - { - "enum": [ - "", - ], - "type": "string", - }, - ], - }, - }, - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "enum": [ - "OK", - ], - "type": "string", - }, - }, - }, - "description": "", - }, - }, - "security": [], - }, - }, "/v1/application": { "post": { "description": "Envoi d'un email de candidature à une offre postée sur La bonne alternance recruteur ou une candidature spontanée à une entreprise identifiée par La bonne alternance. @@ -9991,34 +9696,6 @@ Limite : 20 appel(s) / 1 seconde(s) ], }, }, - "/version": { - "get": { - "description": "Limite : 3 appel(s) / 1 seconde(s) -", - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "additionalProperties": false, - "properties": { - "version": { - "type": "string", - }, - }, - "required": [ - "version", - ], - "type": "object", - }, - }, - }, - "description": "", - }, - }, - "security": [], - }, - }, }, "servers": [ { diff --git a/shared/routes/core.routes.ts b/shared/routes/core.routes.ts index f44704838e..2ef7a81809 100644 --- a/shared/routes/core.routes.ts +++ b/shared/routes/core.routes.ts @@ -1,5 +1,4 @@ import { z } from "../helpers/zodWithOpenApi" -import { rateLimitDescription } from "../utils/rateLimitDescription" import { IRoutesDef, ZResError } from "./common.routes" @@ -45,9 +44,6 @@ export const zCoreRoutes = { .strict(), }, securityScheme: null, - openapi: { - description: `${rateLimitDescription({ max: 3, timeWindow: "1s" })}`, - }, }, }, } as const satisfies IRoutesDef diff --git a/shared/routes/trainingLinks.routes.ts b/shared/routes/trainingLinks.routes.ts index 5d7b62f8fd..8324667b6e 100644 --- a/shared/routes/trainingLinks.routes.ts +++ b/shared/routes/trainingLinks.routes.ts @@ -1,5 +1,4 @@ import { z } from "../helpers/zodWithOpenApi" -import { rateLimitDescription } from "../utils/rateLimitDescription" import { IRoutesDef } from "./common.routes" @@ -44,9 +43,6 @@ export const zTrainingLinksRoutes = { ), }, securityScheme: null, - openapi: { - description: `${rateLimitDescription({ max: 3, timeWindow: "1s" })}`, - }, }, }, } as const satisfies IRoutesDef diff --git a/shared/routes/unsubscribe.routes.ts b/shared/routes/unsubscribe.routes.ts index a732a55fa1..8a6b95198c 100644 --- a/shared/routes/unsubscribe.routes.ts +++ b/shared/routes/unsubscribe.routes.ts @@ -1,5 +1,4 @@ import { ZUnsubscribeQueryParams, ZUnsubscribeQueryResponse } from "../models/unsubscribeLbaCompany.model" -import { rateLimitDescription } from "../utils/rateLimitDescription" import { IRoutesDef } from "./common.routes" @@ -13,9 +12,6 @@ export const zUnsubscribeRoute = { "200": ZUnsubscribeQueryResponse, }, securityScheme: null, - openapi: { - description: `${rateLimitDescription({ max: 1, timeWindow: "5s" })}`, - }, }, }, } as const satisfies IRoutesDef diff --git a/shared/routes/updateLbaCompany.routes.ts b/shared/routes/updateLbaCompany.routes.ts index ed4b3be3c4..68a85663ea 100644 --- a/shared/routes/updateLbaCompany.routes.ts +++ b/shared/routes/updateLbaCompany.routes.ts @@ -1,6 +1,5 @@ import { extensions } from "../helpers/zodHelpers/zodPrimitives" import { z } from "../helpers/zodWithOpenApi" -import { rateLimitDescription } from "../utils/rateLimitDescription" import { IRoutesDef } from "./common.routes" @@ -21,9 +20,6 @@ export const zUpdateLbaCompanyRoutes = { "200": z.literal("OK"), }, securityScheme: null, - openapi: { - description: `${rateLimitDescription({ max: 1, timeWindow: "20s" })}`, - }, }, }, } as const satisfies IRoutesDef