Skip to content

Commit

Permalink
Merge pull request #150 from walt-id/fix-unique-metadatas
Browse files Browse the repository at this point in the history
fix swagger not rendering
  • Loading branch information
waltkb authored Sep 13, 2023
2 parents 7ac1320 + f063ef2 commit 0d35684
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/id/walt/nftkit/models/NFTsInfos.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ class NFTsInfos(
val tezosNfts: List<TezosNFTsTzktResult>?= null,
val polkadotEvmNft: List<PolkadotEvmNft>?= null,
val polkadotUniqueNft: List<PolkadotUniqueNft>?= null
) {
}
)
2 changes: 1 addition & 1 deletion src/main/kotlin/id/walt/nftkit/rest/NftController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ object NftController {
}.pathParam<String>("chain") {
it.schema<Chain> { }
}.pathParam<String>("ownerAddress") {
}.json<NFTsInfos>("200") { it.description("NFTs list") }
}.json<String>("200") { it.description("NFTs list: evmNfts: [NftTokenByAlchemy], tezosNfts: [TezosNFTsTzktResult], val polkadotEvmNft: [PolkadotEvmNft], polkadotUniqueNft: [PolkadotUniqueNft]") }

fun updateMetadata(ctx: Context) {
val chain = ctx.pathParam("chain")
Expand Down
3 changes: 0 additions & 3 deletions src/main/kotlin/id/walt/nftkit/rest/NftKitApi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,6 @@ object NftKitApi {
"chain/{chain}/assets/account/{address}/",
documented(AlgorandNftController.fetchAccountAssetsDocs(), AlgorandNftController::fetchAccountAssets)
)



}
}
path("nft/verifier") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ object PolkadotUniqueNftController {
}.pathParam<String>("network") {
it.schema<UniqueNetwork> {}
}.pathParam<String>("account"){
}.json<UniqueNftMetadata>("200"){
it.description("Fetched NFTs")
}.json<String>("200"){
it.description("Fetched NFTs: {fullUrl: String, ipfsCid: String?, attributes: [{name: String, value: JsonElement}, ...]}")
}


Expand All @@ -105,8 +105,8 @@ object PolkadotUniqueNftController {
it.schema<UniqueNetwork> {}
}.pathParam<String>("collectionId"){
}.pathParam<String>("tokenId"){
}.json<UniqueNftMetadata>("200"){
it.description("Fetched NFT metadata")
}.json<String>("200"){
it.description("Fetched NFT metadata: {fullUrl: String, ipfsCid: String?, attributes: [{name: String, value: JsonElement}, ...]}")
}

}

0 comments on commit 0d35684

Please sign in to comment.