Skip to content

Commit

Permalink
nft instances controller
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBatata committed Oct 19, 2023
1 parent feffccf commit 3162c70
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/kotlin/id/walt/nftkit/rest/NftController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -465,4 +466,16 @@ object NftController {
}.json<String>("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<String>("contractAddress") {
}.json<List<shimmerNFT>>("200") { }

}

0 comments on commit 3162c70

Please sign in to comment.