Skip to content

Commit

Permalink
fix swagger not rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
waltkb committed Sep 13, 2023
1 parent b6e7d32 commit f063ef2
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 f063ef2

Please sign in to comment.