Skip to content

Commit

Permalink
feat: Feat/oob credential issuance verification (#435)
Browse files Browse the repository at this point in the history
* feat:Create out-of-band credential offer

Signed-off-by: ankita_patidar <[email protected]>

* fix: removed static statusCodes

Signed-off-by: ankita_patidar <[email protected]>

* revert statusCode udpate in ecosystem

Signed-off-by: ankita_patidar <[email protected]>

---------

Signed-off-by: ankita_patidar <[email protected]>
  • Loading branch information
ankita-p17 authored and KulkarniShashank committed Sep 11, 2024
1 parent 4d450af commit 5964ac7
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions apps/api-gateway/src/ecosystem/ecosystem.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Response> {
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' })
Expand Down

0 comments on commit 5964ac7

Please sign in to comment.