Skip to content

Commit

Permalink
added doc for api GET /app/{appId}
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwas1 committed Jan 15, 2023
1 parent bd6959b commit d2456d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app-auth/controllers/app-auth/app-auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ export class AppAuthController {
}

@Get(':appId')
@ApiResponse({
description: 'Fetch App by Id',
type: AppSchema
})
@ApiBadRequestResponse({
description: "Application not found"
})
getAppById(@Param('appId') appId: string): IApp {
const app = this.appAuthService.getAppById(appId);
if(app) return app;
Expand Down

0 comments on commit d2456d8

Please sign in to comment.