diff --git a/src/main/kotlin/id/walt/nftkit/rest/NftController.kt b/src/main/kotlin/id/walt/nftkit/rest/NftController.kt index dca0a0e8..b9014693 100644 --- a/src/main/kotlin/id/walt/nftkit/rest/NftController.kt +++ b/src/main/kotlin/id/walt/nftkit/rest/NftController.kt @@ -61,6 +61,7 @@ data class ApproveRequest( object NftController { val TAG1 ="EVM based Blockchain" val TAG2 ="General" + val TAG3 ="ShimmerEVM" fun deploy(ctx: Context) { val deployReq = ctx.bodyAsClass(DeployRequest::class.java) val chain = ctx.pathParam("chain") @@ -465,4 +466,16 @@ object NftController { }.json("200") { } + fun getShimmerNFTinstances(ctx: Context) { + val contractAddress = ctx.pathParam("contractAddress") + val result= NftService.getShimmerNFTinstances(contractAddress) + ctx.json(result) + } + + fun getShimmerNFTinstancesDocs() = document().operation { + it.summary("Get Shimmer NFT instances") + .operationId("Get Shimmer NFT instances").addTagsItem(TAG3) + }.pathParam("contractAddress") { + }.json>("200") { } + }