Skip to content

Commit

Permalink
update: swagger docu
Browse files Browse the repository at this point in the history
  • Loading branch information
siwonpada committed Sep 2, 2024
1 parent 0812fc1 commit 52b404d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/client.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class ClientController {
@ApiUnauthorizedResponse()
@ApiForbiddenResponse()
@ApiInternalServerErrorResponse()
@ApiBasicAuth()
@ApiBasicAuth('client')
@Post('authority')
@UseGuards(ClientGuard)
async addAuthority(
Expand All @@ -101,7 +101,7 @@ export class ClientController {
@ApiUnauthorizedResponse()
@ApiForbiddenResponse()
@ApiInternalServerErrorResponse()
@ApiBasicAuth()
@ApiBasicAuth('client')
@Delete('authority')
@UseGuards(ClientGuard)
async removeAuthority(
Expand Down
6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ async function bootstrap() {
.setTitle('Groups API')
.setDescription('The Groups API')
.setVersion('1.0')
.addBasicAuth(
{
type: 'http',
},
'client',
)
.addOAuth2(
{
type: 'oauth2',
Expand Down

0 comments on commit 52b404d

Please sign in to comment.