diff --git a/api/public/swagger.yaml b/api/public/swagger.yaml index 7b2c7ce..6c049cd 100644 --- a/api/public/swagger.yaml +++ b/api/public/swagger.yaml @@ -690,7 +690,7 @@ paths: examples: 'Example 1': value: {clientId: someFormattedClientID1234, clientSecret: someRandomCryptoString, accessTokenExpiryDays: 1, refreshTokenExpiryDays: 30} - summary: 'Create client with the following attributes: ClientId, ClientSecret, accessTokenExpires (optional) . Admin only task.' + summary: "Admin only task. Create client with the following attributes:\nClientId,\nClientSecret,\naccessTokenExpiryDays (optional),\nrefreshTokenExpiryDays (optional)" tags: - Client security: diff --git a/api/src/controllers/client.ts b/api/src/controllers/client.ts index 1f15dfa..f4e7122 100644 --- a/api/src/controllers/client.ts +++ b/api/src/controllers/client.ts @@ -7,7 +7,11 @@ import Client, { ClientPayload } from '../model/Client' @Tags('Client') export class ClientController { /** - * @summary Create client with the following attributes: ClientId, ClientSecret, accessTokenExpires (optional) . Admin only task. + * @summary Admin only task. Create client with the following attributes: + * ClientId, + * ClientSecret, + * accessTokenExpiryDays (optional), + * refreshTokenExpiryDays (optional) * */ @Example({