From 5964ac707e8a2b74aa52be66f71936476cac299d Mon Sep 17 00:00:00 2001 From: Ankita Patidar <35130088+ankita-p17@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:40:30 +0530 Subject: [PATCH] feat: Feat/oob credential issuance verification (#435) * feat:Create out-of-band credential offer Signed-off-by: ankita_patidar * fix: removed static statusCodes Signed-off-by: ankita_patidar * revert statusCode udpate in ecosystem Signed-off-by: ankita_patidar --------- Signed-off-by: ankita_patidar --- .../src/ecosystem/ecosystem.controller.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/apps/api-gateway/src/ecosystem/ecosystem.controller.ts b/apps/api-gateway/src/ecosystem/ecosystem.controller.ts index e85730f9e..400d0e732 100644 --- a/apps/api-gateway/src/ecosystem/ecosystem.controller.ts +++ b/apps/api-gateway/src/ecosystem/ecosystem.controller.ts @@ -321,23 +321,6 @@ export class EcosystemController { return res.status(201).json(finalResponse); } - @Post('/:ecosystemId/:orgId/transaction/schema') - @ApiOperation({ summary: 'Request new schema', description: 'Request new schema' }) - @ApiResponse({ status: 201, description: 'Success', type: ApiResponseDto }) - @UseGuards(AuthGuard('jwt'), EcosystemRolesGuard, OrgRolesGuard) - @ApiBearerAuth() - @EcosystemsRoles(EcosystemRoles.ECOSYSTEM_MEMBER) - @Roles(OrgRoles.OWNER, OrgRoles.ADMIN, OrgRoles.ISSUER) - async requestSchemaTransaction(@Body() requestSchemaPayload: RequestSchemaDto, @Param('orgId') orgId: string, @Param('ecosystemId') ecosystemId: string, @Res() res: Response, @User() user: user): Promise { - requestSchemaPayload.userId = user.id; - await this.ecosystemService.schemaEndorsementRequest(requestSchemaPayload, orgId, ecosystemId); - const finalResponse: IResponseType = { - statusCode: HttpStatus.CREATED, - message: ResponseMessages.ecosystem.success.schemaRequest - }; - return res.status(HttpStatus.CREATED).json(finalResponse); - } - @Post('/:ecosystemId/:orgId/transaction/cred-def') @ApiOperation({ summary: 'Request new credential-definition', description: 'Request new credential-definition' })