From bb3da758704da2f5d505dc83e9316d9b7228a4c7 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Thu, 12 Sep 2024 17:26:56 -0700 Subject: [PATCH] Minor text updates --- backend/src/lib/api-docs/constants.ts | 2 +- backend/src/server/routes/v1/certificate-authority-router.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.ts index d68380f61..5ed7ed8f2 100644 --- a/backend/src/lib/api-docs/constants.ts +++ b/backend/src/lib/api-docs/constants.ts @@ -1084,7 +1084,7 @@ export const CERTIFICATE_AUTHORITIES = { serialNumber: "The serial number of the CA certificate" }, GET_CERT_BY_ID: { - caId: "The ID of the CA to get the certificate from", + caId: "The ID of the CA to get the CA certificate from", caCertId: "The ID of the CA certificate to get" }, GET_CA_CERTS: { diff --git a/backend/src/server/routes/v1/certificate-authority-router.ts b/backend/src/server/routes/v1/certificate-authority-router.ts index c52fa8d06..3abd048a8 100644 --- a/backend/src/server/routes/v1/certificate-authority-router.ts +++ b/backend/src/server/routes/v1/certificate-authority-router.ts @@ -149,7 +149,7 @@ export const registerCaRouter = async (server: FastifyZodProvider) => { rateLimit: readLimit }, schema: { - description: "Public endpoint for fetching DER-encoded Certificate of CA", + description: "Get DER-encoded certificate of CA", params: z.object({ caId: z.string().trim().describe(CERTIFICATE_AUTHORITIES.GET_CERT_BY_ID.caId), caCertId: z.string().trim().describe(CERTIFICATE_AUTHORITIES.GET_CERT_BY_ID.caCertId)