-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswagger-spec.json
1 lines (1 loc) · 49.6 KB
/
swagger-spec.json
1
{"openapi":"3.0.0","paths":{"/admin/empty-collection":{"post":{"operationId":"AdminController_EmptyCollection","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyCollection"}}}},"responses":{"201":{"description":""}},"tags":["admin"]}},"/admin/update-nft":{"post":{"operationId":"AdminController_UpdateNft","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNft"}}}},"responses":{"201":{"description":""}},"tags":["admin"]}},"/admin/delete-key":{"post":{"operationId":"AdminController_DeleteKey","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteKeyBody"}}}},"responses":{"201":{"description":""}},"tags":["admin"]}},"/admin/delete-cron":{"post":{"operationId":"AdminController_deleteCron","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCronBody"}}}},"responses":{"201":{"description":""}},"tags":["admin"]}},"/subscription/create-api-key":{"post":{"operationId":"SubscriptionController_subscribeToPremium","summary":"This Route will create a Api key","parameters":[{"name":"SECRET","required":true,"in":"header","description":"Secret of the Enterprise for creating an API key","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"responses":{"201":{"description":""}},"tags":["API Key Management"]}},"/subscription/increse-limit":{"post":{"operationId":"SubscriptionController_increseLimit","summary":"Increse Limit","parameters":[{"name":"SECRET","required":true,"in":"header","description":"Secret of the Enterprise for creating an API key","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserBody"}}}},"responses":{"201":{"description":""}},"tags":["API Key Management"]}},"/subscription/send-api-key":{"post":{"operationId":"SubscriptionController_sendApiKey","parameters":[{"name":"SECRET","required":true,"in":"header","description":"Secret of the Enterprise for creating an API key","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendAPiKey"}}}},"responses":{"201":{"description":""}},"tags":["API Key Management"]}},"/users/isuser_registered/{wallet_address}":{"get":{"operationId":"UsersController_isUserRegistered","summary":"Check is User exist","parameters":[{"name":"wallet_address","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Users"]}},"/users/create-user":{"post":{"operationId":"UsersController_create","summary":"This Api will create a User","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserDto"}}}},"responses":{"201":{"description":""}},"tags":["Users"]}},"/users/handle-favourite":{"post":{"operationId":"UsersController_addFavourite","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserFavouriteDto"}}}},"responses":{"201":{"description":""}},"tags":["Users"]}},"/users/is_user_favourite":{"post":{"operationId":"UsersController_isUserFavourite","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsUserFavourite"}}}},"responses":{"201":{"description":""}},"tags":["Users"]}},"/users/favourites/{favourite_kind}/{wallet_address}/{nftType}":{"get":{"operationId":"UsersController_getUserFavourites","parameters":[{"name":"favourite_kind","required":true,"in":"path","schema":{"default":"COLLECTIONS","enum":["COLLECTIONS","NFTS"],"type":"string"}},{"name":"wallet_address","required":true,"in":"path","schema":{"type":"string"}},{"name":"nftType","required":true,"in":"path","schema":{"default":"NA","enum":["NGM721","NGM1155","NA"],"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Users"]}},"/users":{"get":{"operationId":"UsersController_findAll","parameters":[],"responses":{"200":{"description":""}},"tags":["Users"]}},"/users/get-user/{wallet_address}":{"get":{"operationId":"UsersController_findOne","summary":"Get registered user details","parameters":[{"name":"wallet_address","required":true,"in":"path","example":"0x2A8b77DF421106C8fCdBE08697c949D519f4c05a","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Users"]}},"/users/update-user":{"patch":{"operationId":"UsersController_updateUser","summary":"This Api will updates username","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUser"}}}},"responses":{"200":{"description":""}},"tags":["Users"]}},"/users/{id}":{"delete":{"operationId":"UsersController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Users"]}},"/users/uploadFile":{"post":{"operationId":"UsersController_uploadFile","summary":"This Api will upload your profile pic or banner gets you URI of that Profile pic or banner","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"wallet_address":{"type":"string"},"type":{"type":"string"}}}}}},"responses":{"201":{"description":""}},"tags":["Users"]}},"/users/get-user-notification/{wallet_address}/{page_number}/{items_per_page}":{"get":{"operationId":"UsersController_getUserNotification","parameters":[{"name":"wallet_address","required":true,"in":"path","schema":{"type":"string"}},{"name":"page_number","required":true,"in":"path","schema":{"type":"number"}},{"name":"items_per_page","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Users"]}},"/users/test-fix":{"post":{"operationId":"UsersController_testFix","parameters":[],"responses":{"201":{"description":""}},"tags":["Users"]}},"/nft/get-all-nfts/{page_number}/{items_per_page}/{sort_by}/{listed_in}":{"get":{"operationId":"NftController721_getAllNfts","summary":"Get all the Assets","parameters":[{"name":"page_number","required":true,"in":"path","schema":{"default":1,"type":"number"}},{"name":"items_per_page","required":true,"in":"path","schema":{"default":10,"type":"number"}},{"name":"sort_by","required":true,"in":"path","schema":{"default":"NA","enum":["NA","NEWTOOLD","OLDTONEW","ATOZ","ZTOA"],"type":"string"}},{"name":"listed_in","required":true,"in":"path","schema":{"default":"NA","enum":["NA","AUCTION","SALE"],"type":"string"}}],"responses":{"200":{"description":"Successfully Fetched All the Nfts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAllNfts"}}}},"500":{"description":"Something Went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-721-APIs"]}},"/nft/collections-owned/{owner_address}/{page_number}/{items_per_page}":{"get":{"operationId":"NftController721_getCollectionsOwned","summary":"Get User Collections","parameters":[{"name":"owner_address","required":true,"in":"path","schema":{"default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72","type":"string"}},{"name":"page_number","required":true,"in":"path","schema":{"minimum":1,"default":1,"type":"number"}},{"name":"items_per_page","required":true,"in":"path","schema":{"default":5,"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAllNfts"}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-721-APIs"]}},"/nft/get-user-nft-cntr/{user_address}/{contract_address}":{"get":{"operationId":"NftController721_getUserNftsByCollection","summary":"Get User Assets by Collection","parameters":[{"name":"contract_address","required":true,"in":"path","description":"contract address of the Collection","schema":{"default":"0x8f27D09be98d2583E0322C25C8F2149E4AA2635C","type":"string"}},{"name":"user_address","required":true,"in":"path","description":"wallet address of the user","schema":{"default":"0x952450E079AFBb4f75b1F0Ed94120e6573623bC1","type":"string"}}],"responses":{"200":{"description":""}},"tags":["ERC-721-APIs"]}},"/nft/get-nft/{contract_address}/{token_id}":{"get":{"operationId":"NftController721_getNft","summary":"Get Asset details","parameters":[{"name":"contract_address","required":true,"in":"path","schema":{"default":"0xc5195CDa9ED7dC18AFA7b69Da90Bbaf427C1ca3F","type":"string"}},{"name":"token_id","required":true,"in":"path","schema":{"default":1,"type":"number"}}],"responses":{"201":{"description":"Successfully Fetched the details of the Asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSingleNft"}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-721-APIs"]}},"/nft/get-user-nfts/{token_owner}/{page_number}/{items_per_page}":{"get":{"operationId":"NftController721_getUserNfts","summary":"Get Assets by Owner Address","parameters":[{"name":"token_owner","required":true,"in":"path","schema":{"default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72","type":"string"}},{"name":"page_number","required":true,"in":"path","schema":{"minimum":1,"default":1,"type":"number"}},{"name":"items_per_page","required":true,"in":"path","schema":{"minimum":1,"default":5,"type":"number"}}],"responses":{"201":{"description":"Successfully Fetched the Assets that are Owned by User","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GetSingleNft"}}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-721-APIs"]}},"/nft/get-collections/{page_number}/{items_per_page}/{sort_by}/{chain}/{type}":{"get":{"operationId":"NftController721_getCollections","summary":"Get All Collections","parameters":[{"name":"page_number","required":true,"in":"path","schema":{"default":1,"type":"number"}},{"name":"items_per_page","required":true,"in":"path","schema":{"default":12,"type":"number"}},{"name":"sort_by","required":true,"in":"path","schema":{"default":"NA","enum":["NA","NEWTOOLD","OLDTONEW","ATOZ","ZTOA"],"type":"string"}},{"name":"chain","required":true,"in":"path","schema":{"default":"NA","enum":["NA","ETHEREUM","POLYGON","FILECOIN","MUMBAI","GOERLI","HYPERSPACE"],"type":"string"}},{"name":"type","required":true,"in":"path","schema":{"default":"NA","enum":["NA","ERC721","ERC1155"],"type":"string"}}],"responses":{"201":{"description":"Successfully Fetched the Collections","content":{"application/json":{"schema":{"$ref":"#/components/schemas/collection"}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-721-APIs"]}},"/nft/get-nfts-listed/{listed_in}":{"get":{"operationId":"NftController721_getNftsListed","summary":"Get Listed Assets","parameters":[{"name":"listed_in","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"Successfully Fetched the Assets that are Listed","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GetSingleNft"}}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-721-APIs"]}},"/nft/get-popular-nfts/{state}":{"get":{"operationId":"NftController721_getPopularNFTs","summary":"Get Home Assets","parameters":[{"name":"state","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"Successfully Fetched the Assets for home","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GetSingleNft"}}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-721-APIs"]}},"/nft/get-nfts-721-collection":{"post":{"operationId":"NftController721_getNftsListedCollection","summary":"Get Assets that are Listed in Specific Collection","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetListedCollections"}}}},"responses":{"201":{"description":"Successfully Fetched the Assets that are Listed in Collection","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GetSingleNft"}}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-721-APIs"]}},"/nft/collection/{contract_address}":{"get":{"operationId":"NftController721_GetCollectionsByContractAddress","summary":"Get Assets by Collection","parameters":[{"name":"contract_address","required":true,"in":"path","description":"Address of the Collection","schema":{"default":"0xE0B8BF7DB5Cd76033f036658De37a06D6C014D9C","type":"string"}}],"responses":{"201":{"description":"Successfully Fetched the Collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCollectionResponse"}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-721-APIs"]}},"/nft/get-owner/{contract_address}/{token_id}":{"get":{"operationId":"NftController721_getOwner","summary":"Get Owner of the Nft from BlockChain","parameters":[{"name":"contract_address","required":true,"in":"path","schema":{"default":"0x8f27D09be98d2583E0322C25C8F2149E4AA2635C","type":"string"}},{"name":"token_id","required":true,"in":"path","schema":{"default":28,"type":"number"}}],"responses":{"201":{"description":"Successfully Fetched the Owner from the Block Chain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOwnerResponse"}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-721-APIs"]}},"/nft/uploadFile":{"post":{"operationId":"NftMintController_uploadFile","summary":"Upload asset and gets you URI of that asset","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"Successfully Get the <b>URI</b> of your Asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadAsset"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadAssetError"}}}},"500":{"description":"Something went wrong in out server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadAssetError"}}}}},"tags":["Mint"]}},"/nft/g2w3-1155/get-tokens/{token_owner}/{contract_address}/{token_id}":{"get":{"operationId":"NftController1155_getTokensUsrHold","summary":"Gets Number of Tokens does Owner hold","parameters":[{"name":"token_owner","required":true,"in":"path","schema":{"default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72","type":"string"}},{"name":"contract_address","required":true,"in":"path","schema":{"default":"0x68e24E30348cACcB8dF3d62Fa2891B4864ff0879","type":"string"}},{"name":"token_id","required":true,"in":"path","schema":{"default":0,"type":"number"}}],"responses":{"201":{"description":"Successfully Get Number of Tokens does the Owner Hold","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTokensUserHoldResponse"}}}},"500":{"description":"Something went wrong in Server","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-1155-APIs"]}},"/nft/get-nfts-1155-collection":{"post":{"operationId":"NftController1155_getNfts1155Collection","summary":"Get Assets by collection","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetListedCollections"}}}},"responses":{"201":{"description":"Successfully Get the Assets By Collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/get1155AssetsByCollectionResponse"}}}},"500":{"description":"Something went wrong in Server","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-1155-APIs"]}},"/nft/get-type-of-nft/{contract_address}":{"get":{"operationId":"NftController1155_getNftType","summary":"Get the type of Collection","parameters":[{"name":"contract_address","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["ERC-1155-APIs"]}},"/nft/get-balance-of-token/{contract_address}/{token_id}/{owner_address}":{"get":{"operationId":"NftController1155_getBalanceOf1155Token","summary":"Fetch Balance of Tokens from Block Chain","parameters":[{"name":"contract_address","required":true,"in":"path","schema":{"default":"0x68e24E30348cACcB8dF3d62Fa2891B4864ff0879","type":"string"}},{"name":"token_id","required":true,"in":"path","schema":{"default":0,"type":"number"}},{"name":"owner_address","required":true,"in":"path","schema":{"default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72","type":"string"}}],"responses":{"201":{"description":"Successfully Get the Number of Tokens does Owner Hold from Block Chain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUserHoldTokensResponse"}}}},"500":{"description":"Something went wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-1155-APIs"]}},"/nft/get-1155-nft/{contract_address}/{token_id}":{"get":{"operationId":"NftController1155_g2Web3_1155","summary":"Get the 1155 token details along with its stakeHolders","parameters":[{"name":"contract_address","required":true,"in":"path","schema":{"default":"0x68e24E30348cACcB8dF3d62Fa2891B4864ff0879","type":"string"}},{"name":"token_id","required":true,"in":"path","schema":{"default":0,"type":"number"}}],"responses":{"201":{"description":"Successfully Get the Token Details and its Status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSingle1155Nft"}}}},"500":{"description":"Something went wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-1155-APIs"]}},"/nft/g2w3-1155/{owner_address}/{page_number}/{items_per_page}":{"get":{"operationId":"NftController1155_g2Web3User1155","summary":"Get 1155 Assets Owned by User","parameters":[{"name":"owner_address","required":true,"in":"path","schema":{"default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72","type":"string"}},{"name":"page_number","required":true,"in":"path","schema":{"minimum":1,"default":1,"type":"number"}},{"name":"items_per_page","required":true,"in":"path","schema":{"default":5,"type":"number"}}],"responses":{"201":{"description":"Successfully Get the Token Details and its Status","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GetUserOwned1155Assets"}}}}},"500":{"description":"Something went wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["ERC-1155-APIs"]}},"/nft/get-user-1155-assets-by-collection/{owner_address}/{contract_address}":{"get":{"operationId":"NftController1155_getUser1155AssetsByCollection","parameters":[{"name":"owner_address","required":true,"in":"path","schema":{"default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72","type":"string"}},{"name":"contract_address","required":true,"in":"path","schema":{"default":"0xC5dc32D501dc8743E7375FA17B12B34E4C0994de","type":"string"}}],"responses":{"200":{"description":""}},"tags":["ERC-1155-APIs"]}},"/nft/get-1155-unique/{contract_address}":{"get":{"operationId":"NftController1155_get1155uniqueByCollections","parameters":[{"name":"contract_address","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["ERC-1155-APIs"]}},"/nft/mint-nft":{"post":{"operationId":"NftMintController_mintNft","summary":"Mint G2W3 721 Asset","parameters":[{"name":"X-API-HEADER","in":"header","description":"API key needed for mint","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MintToken"}}}},"responses":{"201":{"description":"Successfully Minted the Asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSingleNft"}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["Mint"]}},"/nft/mint-1155":{"post":{"operationId":"NftMintController_mint1155Nft","summary":"Mint 1155 Tokens","parameters":[{"name":"X-API-HEADER","in":"header","description":"API key needed for mint","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/G2Web3_1155"}}}},"responses":{"201":{"description":"Successfully Minted the Asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get1155NewlyMintedResponse"}}}},"500":{"description":"Something went wrong in Server","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["Mint"]}},"/activity/get-user-activity/{wallet_address}/{page_number}/{items_per_page}":{"get":{"operationId":"ActivityController_getActivity","summary":"This API will gives you Users Activity","parameters":[{"name":"wallet_address","required":true,"in":"path","example":"0x2A8b77DF421106C8fCdBE08697c949D519f4c05a","schema":{"type":"string"}},{"name":"page_number","required":true,"in":"path","example":2,"schema":{"type":"number"}},{"name":"items_per_page","required":true,"in":"path","example":5,"schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Activity"]}},"/activity/get-item-activity/{contract_address}/{token_id}/{page_number}/{items_per_page}":{"get":{"operationId":"ActivityController_getItemActivity","summary":"This API will gives you Activity of Particular Item","parameters":[{"name":"contract_address","required":true,"in":"path","example":"0xc5195CDa9ED7dC18AFA7b69Da90Bbaf427C1ca3F","schema":{"type":"string"}},{"name":"token_id","required":true,"in":"path","example":1,"schema":{"type":"number"}},{"name":"page_number","required":true,"in":"path","example":5,"schema":{"type":"number"}},{"name":"items_per_page","required":true,"in":"path","example":5,"schema":{"type":"number"}}],"responses":{"200":{"description":""}},"tags":["Activity"]}},"/nft-marketplace/create-nft-auction":{"post":{"operationId":"NftMarketplaceController_createAuction","summary":"Creates an Auction for a NFT","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAuctionBody"}}}},"responses":{"201":{"description":"Successfully created Auction"},"400":{"description":"Something went wrong"}},"tags":["MarketPlace"]}},"/nft-marketplace/cancel-auction":{"post":{"operationId":"NftMarketplaceController_cancelAuction","summary":"Cancel the Auction","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelAuctionBody"}}}},"responses":{"201":{"description":"Successfully Cancelled the Auction"},"400":{"description":"Something went Wrong"}},"tags":["MarketPlace"]}},"/nft-marketplace/get-auction/{contract_address}/{token_id}/{end_date}":{"get":{"operationId":"NftMarketplaceController_getAuction","summary":"Fetch Auction Info","parameters":[{"name":"contract_address","required":true,"in":"path","schema":{"type":"string"}},{"name":"token_id","required":true,"in":"path","schema":{"type":"number"}},{"name":"end_date","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["MarketPlace"]}},"/nft-marketplace/place-nft-bid":{"post":{"operationId":"NftMarketplaceController_createBid","summary":"Place Bid","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBidBody"}}}},"responses":{"201":{"description":"Bid Placed Successfully"},"400":{"description":"Something went wrong"}},"tags":["MarketPlace"]}},"/nft-marketplace/cancel-bid":{"post":{"operationId":"NftMarketplaceController_cancelBid","summary":"Cancel Bid","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBidBody"}}}},"responses":{"201":{"description":"The bid has been cancelled"},"400":{"description":"Something went wrong"}},"tags":["MarketPlace"]}},"/nft-marketplace/accept-bid":{"post":{"operationId":"NftMarketplaceController_acceptBid","summary":"Accept Bid","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Acceptbid"}}}},"responses":{"201":{"description":"This Bid is acccepted"},"400":{"description":"Something went wrong"}},"tags":["MarketPlace"]}},"/nft-marketplace/create-sale":{"post":{"operationId":"NftMarketplaceController_createSale","summary":"Create Sale","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSaleBody"}}}},"responses":{"201":{"description":""}},"tags":["MarketPlace"]}},"/nft-marketplace/cancel-sale":{"post":{"operationId":"NftMarketplaceController_cancelSale","summary":"Cancel Sale","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelSaleBody"}}}},"responses":{"201":{"description":""}},"tags":["MarketPlace"]}},"/nft-marketplace/make-offer-to-nft":{"post":{"operationId":"NftMarketplaceController_makeOffer","summary":"Make Offer","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakeOfferBody"}}}},"responses":{"201":{"description":""}},"tags":["MarketPlace"]}},"/nft-marketplace/cancel-offer":{"post":{"operationId":"NftMarketplaceController_cancelOffer","summary":"Cancel Offer","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelOffer"}}}},"responses":{"201":{"description":""}},"tags":["MarketPlace"]}},"/nft-marketplace/accept-offer":{"post":{"operationId":"NftMarketplaceController_acceptOffer","summary":"Accept Offer","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptOfferBody"}}}},"responses":{"201":{"description":""}},"tags":["MarketPlace"]}},"/nft-marketplace/create-sale-1155":{"post":{"operationId":"NftMarketplace1155Controller_createSale1155","summary":"Create Sale","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/G2W3_1155Sale"}}}},"responses":{"201":{"description":"Create Sale 1155"},"400":{"description":"Something went wrong"}},"tags":["MarketPlace 1155"]}},"/nft-marketplace/cancel-sale-1155":{"post":{"operationId":"NftMarketplace1155Controller_cancelSale1155","summary":"Cancel Sale","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/G2W3_1155CancelSale"}}}},"responses":{"201":{"description":"Cancel Sale 1155"},"400":{"description":"Something went wrong"}},"tags":["MarketPlace 1155"]}},"/nft-marketplace/make-offer-1155":{"post":{"operationId":"NftMarketplace1155Controller_makeOffer1155","summary":"Make Offer ","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/G2W3_1155Offer"}}}},"responses":{"201":{"description":"Make offer 1155"},"400":{"description":"Something went wrong"}},"tags":["MarketPlace 1155"]}},"/nft-marketplace/accept-offer-1155":{"post":{"operationId":"NftMarketplace1155Controller_acceptOffer1155","summary":"Accept Offer ","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/G2W3_1155AcceptOffer"}}}},"responses":{"201":{"description":"Accept offer 1155"},"400":{"description":"Something went wrong"}},"tags":["MarketPlace 1155"]}},"/nft-marketplace/cancel-offer-1155":{"post":{"operationId":"NftMarketplace1155Controller_cancelOffer1155","summary":"Cancel Offer ","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/G2W3_1155CancelOffer"}}}},"responses":{"201":{"description":"Cancel offer 1155"},"400":{"description":"Something went wrong"}},"tags":["MarketPlace 1155"]}},"/nft-marketplace/get-all-offer-1155":{"post":{"operationId":"NftMarketplace1155Controller_getAllOffer1155","summary":"Get All Offer ","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/G2W3_1155AllOffers"}}}},"responses":{"201":{"description":"Get All offer 1155"},"400":{"description":"Something went wrong"}},"tags":["MarketPlace 1155"]}},"/deployment/deploy-contract":{"post":{"operationId":"DeploymentController_deployContract","summary":"Deploy a collection","parameters":[{"name":"X-API-HEADER","in":"header","description":"API Key is needed to deploy the collection","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDeploymentDto"}}}},"responses":{"201":{"description":"Successfully Created the Collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/collection"}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["Deployment"]}},"/deployment/contract-Details/{cntraddr}":{"get":{"operationId":"DeploymentController_getContractdetails","summary":"Fetch the Details of the Collection","parameters":[{"name":"cntraddr","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"Successfully Fetched the Collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/collection"}}}},"500":{"description":"Something went Wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorHandlerType"}}}}},"tags":["Deployment"]}},"/textile/link":{"get":{"operationId":"TextileController_getBucketLink","summary":"This api is a demonstration for storing files in a json format while keeping the base link same","parameters":[],"responses":{"201":{"description":"Successfully Fetched Textile"},"400":{"description":"there is no textile assocaited with given Id"}},"tags":["Textile"]}},"/metadata/{contract_address}/{token_id}":{"get":{"operationId":"MetadataController_getMetadata","summary":"Fetch the Metadata of the Token","parameters":[{"name":"contract_address","required":true,"in":"path","schema":{"type":"string"}},{"name":"token_id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"201":{"description":"Successfully Fetched Metadata"},"400":{"description":"there is no nft assocaited with given Id"}},"tags":["Metadata"]}},"/metadata/scriptfix":{"get":{"operationId":"MetadataController_scriptFix","parameters":[],"responses":{"200":{"description":""}},"tags":["Metadata"]}},"/payment/validate-transaction":{"post":{"operationId":"PaymentController_validateTransaction","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateTransaction"}}}},"responses":{"201":{"description":""}},"tags":["Payment"]}}},"info":{"title":"GamesToWeb3","description":"This is Api Demonstraion for <strong>GamesToWeb3</strong> , an Nft <em>Marketplace</em> \n<article>\nWhat is a marketplace in NFT?\nNon-Fungible Token or NFT marketplace is a marketplace that functions as a public Blockchain platform. However, this platform is gaining traction and driving developers and businesses to construct a marketplace, despite being in its nascent stage.\n</article>\n<h4>We support Multi chain Environment </h4>\n<p>In Production</p>\n<ul>\n<li>Ethereum</li>\n<li>Polygon</li>\n</ul>\n<p>In Development</p>\n<ul>\n<li>Goeril</li>\n<li>Mumbai</li>\n</ul>","version":"1.0","contact":{"name":"CustomerCare","url":"www.gamestoweb3.com","email":"[email protected]"}},"tags":[],"servers":[{"url":"http://localhost:8080","description":"localhost"},{"url":"https://www.testnets-api.gamestoweb3.com","description":"Development"},{"url":"https://www.api.gamestoweb3.com","description":"Production"}],"components":{"schemas":{"EmptyCollection":{"type":"object","properties":{"collection_name":{"type":"string"}},"required":["collection_name"]},"UpdateNft":{"type":"object","properties":{"id":{"type":"string"},"json":{"type":"object"}},"required":["id","json"]},"DeleteKeyBody":{"type":"object","properties":{"key":{"type":"string"},"id":{"type":"string"}},"required":["key","id"]},"DeleteCronBody":{"type":"object","properties":{"cron_job_id":{"type":"string"}},"required":["cron_job_id"]},"User":{"type":"object","properties":{"wallet_address":{"type":"string"},"email":{"type":"string"}},"required":["wallet_address","email"]},"Limit":{"type":"object","properties":{"collections_limit":{"type":"number"},"asset_limit":{"type":"number"}},"required":["collections_limit","asset_limit"]},"UserBody":{"type":"object","properties":{"wallet_address":{"type":"string"},"email":{"type":"string"},"increse_limit":{"default":{"collections_limit":1,"asset_limit":10},"allOf":[{"$ref":"#/components/schemas/Limit"}]}},"required":["wallet_address","email","increse_limit"]},"SendAPiKey":{"type":"object","properties":{"wallet_address":{"type":"string"},"email":{"type":"string"}},"required":["wallet_address","email"]},"CreateUserDto":{"type":"object","properties":{"username":{"type":"string"},"email":{"type":"string"},"wallet_address":{"type":"string"}},"required":["username","email","wallet_address"]},"UserFavouriteDto":{"type":"object","properties":{"contract_address":{"type":"string"},"token_id":{"type":"number"},"nft_type":{"type":"string","enum":["NGM721","NGM1155"]},"favourite_kind":{"type":"string","enum":["COLLECTIONS","NFTS"],"default":"COLLECTIONS"},"wallet_address":{"type":"string"},"action":{"type":"string","enum":["ADD","REMOVE"],"default":"ADD"}},"required":["contract_address","favourite_kind","wallet_address","action"]},"IsUserFavourite":{"type":"object","properties":{"contract_address":{"type":"string"},"token_id":{"type":"number"},"nft_type":{"type":"string","enum":["NGM721","NGM1155"]},"favourite_kind":{"type":"string","enum":["COLLECTIONS","NFTS"],"default":"COLLECTIONS"},"wallet_address":{"type":"string"}},"required":["contract_address","favourite_kind","wallet_address"]},"UpdateUser":{"type":"object","properties":{"wallet_address":{"type":"string"},"username":{"type":"string"}},"required":["wallet_address","username"]},"Attributes":{"type":"object","properties":{"name":{"type":"string","default":"score"},"value":{"type":"string","default":"200"}},"required":["name","value"]},"MetaData":{"type":"object","properties":{"name":{"type":"string"},"image":{"type":"string"},"description":{"type":"string"},"external_uri":{"type":"string","default":""},"attributes":{"$ref":"#/components/schemas/Attributes"}},"required":["name","image","description","external_uri","attributes"]},"GetSingleNft":{"type":"object","properties":{"contract_address":{"type":"string","default":"0x8f27D09be98d2583E0322C25C8F2149E4AA2635C"},"contract_type":{"type":"string","default":"NGMTINY721"},"token_id":{"type":"number","default":31},"chain":{"$ref":"#/components/schemas/chainType"},"price":{"type":"string","default":"2"},"meta_data_url":{"type":"string","default":"https://ngm-api-tpnng.ondigitalocean.app/metadata/0x8f27D09be98d2583E0322C25C8F2149E4AA2635C/31"},"is_in_auction":{"type":"boolean","default":false},"is_in_sale":{"type":"boolean","default":false},"token_owner":{"type":"string","default":"0x000000000000000000000000000000000000dEaD"},"meta_data":{"$ref":"#/components/schemas/MetaData"},"createdAt":{"type":"string","default":"2023-05-03T12:52:30.737Z"},"updatedAt":{"type":"string","default":"2023-05-03T12:52:30.737Z"}},"required":["contract_address","contract_type","token_id","chain","price","meta_data_url","is_in_auction","is_in_sale","token_owner","meta_data","createdAt","updatedAt"]},"GetAllNfts":{"type":"object","properties":{"totalpages":{"type":"number"},"currentPage":{"type":"number"},"nfts":{"$ref":"#/components/schemas/GetSingleNft"}},"required":["totalpages","currentPage","nfts"]},"Error":{"type":"object","properties":{}},"ErrorHandlerType":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"$ref":"#/components/schemas/Error"}},"required":["success","message","error"]},"chainType":{"type":"object","properties":{"id":{"type":"number","default":8001},"name":{"type":"string","default":"Mumbai"}},"required":["id","name"]},"collection":{"type":"object","properties":{}},"GetListedCollections":{"type":"object","properties":{"address":{"type":"string","default":"0x8f27D09be98d2583E0322C25C8F2149E4AA2635C"},"address_type":{"type":"string","enum":["USER","COLLECTION"],"default":"COLLECTION"},"listed_in":{"type":"string","enum":["NA","AUCTION","SALE"],"default":"NA"},"page_number":{"type":"number","default":1},"items_per_page":{"type":"number","default":10},"sort_by":{"type":"string","enum":["NA","NEWTOOLD","OLDTONEW","ATOZ","ZTOA"],"default":"NA"},"search":{"type":"string","default":"NA"}},"required":["address","address_type","listed_in","page_number","items_per_page","sort_by","search"]},"GetCollectionResponse":{"type":"object","properties":{"collection":{"$ref":"#/components/schemas/collection"},"total_volume":{"type":"number","default":122.3},"floor_price":{"type":"number","default":1},"best_offer":{"type":"number","default":2},"owners":{"type":"number","default":4},"nfts":{"$ref":"#/components/schemas/GetSingleNft"}},"required":["collection","total_volume","floor_price","best_offer","owners","nfts"]},"GetOwnerResponse":{"type":"object","properties":{"contract_address":{"type":"string","default":"0x8f27D09be98d2583E0322C25C8F2149E4AA2635C"},"token_id":{"type":"number","default":31},"token_owner":{"type":"string","default":"0x000000000000000000000000000000000000dEaD"}},"required":["contract_address","token_id","token_owner"]},"UploadAsset":{"type":"object","properties":{"uri":{"type":"string"}},"required":["uri"]},"UploadAssetError":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"$ref":"#/components/schemas/Error"}},"required":["success","message","error"]},"GetTokensUserHoldResponse":{"type":"object","properties":{"contract_address":{"type":"string"},"token_id":{"type":"number"},"token_owner":{"type":"string"},"number_of_tokens":{"type":"number"}},"required":["contract_address","token_id","token_owner","number_of_tokens"]},"get1155AssetsByCollectionResponse":{"type":"object","properties":{"unique_owners":{"type":"number"},"get_nfts":{"type":"array","items":{"type":"string"}}},"required":["unique_owners","get_nfts"]},"GetUserHoldTokensResponse":{"type":"object","properties":{"contract_address":{"type":"string"},"token_id":{"type":"number"},"owner_address":{"type":"string"},"balance":{"type":"number"}},"required":["contract_address","token_id","owner_address","balance"]},"metadata":{"type":"object","properties":{"name":{"type":"string"},"image":{"type":"string"},"description":{"type":"string"},"external_uri":{"type":"string"},"attributes":{"type":"array","items":{"type":"string"}}},"required":["name","image","description","external_uri","attributes"]},"get1155Asset":{"type":"object","properties":{"contract_address":{"type":"string"},"contract_type":{"type":"string"},"chain":{"$ref":"#/components/schemas/chainType"},"token_id":{"type":"number"},"number_of_tokens":{"type":"number"},"listed_tokens":{"type":"number"},"price":{"type":"number"},"meta_data_url":{"type":"string"},"is_in_auction":{"type":"boolean"},"is_in_sale":{"type":"boolean"},"meta_data":{"$ref":"#/components/schemas/metadata"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["contract_address","contract_type","chain","token_id","number_of_tokens","listed_tokens","price","meta_data_url","is_in_auction","is_in_sale","meta_data","createdAt","updatedAt"]},"GetSingle1155Nft":{"type":"object","properties":{"contract_details":{"$ref":"#/components/schemas/collection"},"nft":{"$ref":"#/components/schemas/get1155Asset"},"owners":{"type":"array","items":{"type":"string"}},"offers":{"type":"array","items":{"type":"string"}},"sales":{"type":"array","items":{"type":"string"}}},"required":["contract_details","nft","owners","offers","sales"]},"GetUserOwned1155Assets":{"type":"object","properties":{"contract_address":{"type":"string"},"token_id":{"type":"number"},"chain":{"$ref":"#/components/schemas/chainType"},"token_owner":{"type":"string"},"number_of_tokens":{"type":"number"},"updatedAt":{"format":"date-time","type":"string"},"meta_data":{"$ref":"#/components/schemas/metadata"}},"required":["contract_address","token_id","chain","token_owner","number_of_tokens","updatedAt","meta_data"]},"MintToken":{"type":"object","properties":{"wallet_address":{"type":"string","default":"Api Holder Address"},"contract_address":{"type":"string","description":"Contract Address of the deployed contract (Battle Field)","default":"0x2F9792620f776d5f5231F5f24b5194Ad36967B8a"},"token_owner":{"type":"string","description":"Token Owner of the NFT","default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72"},"image_uri":{"type":"string","description":"URI of the uploaded image (hint: use /nft/uplo adFile to upload the image and files to IPFS)","default":"https://nftstorage.link/ipfs/bafybeifx4wknz4psj3nwn6pn7w3tf67srw3ohlbi6iexts6fzbyciebbki/pascal-brandle-rGFQ1_MVkjU-unsplash.jpg"},"name":{"type":"string","description":"Name of the NFT","default":"my first nft"},"description":{"type":"string","description":"Description of the NFT","default":"This is my newly minted NFT"},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/Attributes"}},"external_uri":{"type":"string","description":"External url for the NFT (optional) for game developers to add extra details or info, else just pass \"\" empty string","example":"https://google.com"}},"required":["wallet_address","contract_address","token_owner","image_uri","name","description","attributes","external_uri"]},"G2Web3_1155":{"type":"object","properties":{"wallet_address":{"type":"string","default":"Api Holder Address"},"token_owner":{"type":"string","default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72"},"contract_address":{"type":"string"},"token_id":{"type":"number","default":0},"number_of_tokens":{"type":"number","default":10},"name":{"type":"string"},"image_uri":{"type":"string"},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/Attributes"}},"description":{"type":"string","default":"Deep Under the Blue Sea There lives a Ocean Gaint"},"external_uri":{"type":"string","default":"www.google.com"}},"required":["wallet_address","token_owner","contract_address","token_id","number_of_tokens","name","image_uri","attributes","description","external_uri"]},"Get1155AssetOwner":{"type":"object","properties":{"contract_address":{"type":"string"},"token_id":{"type":"number"},"chain":{"$ref":"#/components/schemas/chainType"},"token_owner":{"type":"string"},"number_of_tokens":{"type":"number"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["contract_address","token_id","chain","token_owner","number_of_tokens","createdAt","updatedAt"]},"Get1155NewlyMintedResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/get1155Asset"},"user_1155":{"$ref":"#/components/schemas/Get1155AssetOwner"}},"required":["data","user_1155"]},"CreateAuctionBody":{"type":"object","properties":{"token_owner":{"type":"string","example":"0x2A8b77DF421106C8fCdBE08697c949D519f4c05a"},"contract_address":{"type":"string","example":"0xE0B8BF7DB5Cd76033f036658De37a06D6C014D9C"},"token_id":{"type":"number","example":"3"},"start_date":{"type":"string","example":"2022-11-01T16:25:00"},"end_date":{"type":"string","example":"2022-11-01T17:25:00"},"min_price":{"type":"number","example":20},"sign":{"type":"string"}},"required":["token_owner","contract_address","token_id","start_date","end_date","min_price","sign"]},"CancelAuctionBody":{"type":"object","properties":{"contract_address":{"type":"string","example":"0x2A8b77DF421106C8fCdBE08697c949D519f4c05a"},"token_id":{"type":"number","example":"3"},"sign":{"type":"string"}},"required":["contract_address","token_id","sign"]},"CreateBidBody":{"type":"object","properties":{"bidder_address":{"type":"string"},"contract_address":{"type":"string"},"token_id":{"type":"number"},"bid_amount":{"type":"number"},"sign":{"type":"string"}},"required":["bidder_address","contract_address","token_id","bid_amount","sign"]},"CancelBidBody":{"type":"object","properties":{"bidder_address":{"type":"string"},"token_id":{"type":"number"},"contract_address":{"type":"string"},"sign":{"type":"string"}},"required":["bidder_address","token_id","contract_address","sign"]},"Acceptbid":{"type":"object","properties":{"auction_id":{"type":"string"},"sign":{"type":"string"}},"required":["auction_id","sign"]},"CreateSaleBody":{"type":"object","properties":{"token_owner":{"type":"string"},"contract_address":{"type":"string"},"token_id":{"type":"number"},"price":{"type":"string"},"start_date":{"format":"date-time","type":"string"},"end_date":{"type":"string"},"sign":{"type":"string"}},"required":["token_owner","contract_address","token_id","price","start_date","end_date","sign"]},"CancelSaleBody":{"type":"object","properties":{"contract_address":{"type":"string"},"token_id":{"type":"number"},"sign":{"type":"string"}},"required":["contract_address","token_id","sign"]},"MakeOfferBody":{"type":"object","properties":{"contract_address":{"type":"string"},"token_id":{"type":"number"},"offer_price":{"type":"string"},"offer_person_address":{"type":"string"},"sign":{"type":"string"}},"required":["contract_address","token_id","offer_price","offer_person_address","sign"]},"CancelOffer":{"type":"object","properties":{"contract_address":{"type":"string"},"token_id":{"type":"number"},"offer_person_address":{"type":"string"},"caller":{"type":"string"},"sign":{"type":"string"}},"required":["contract_address","token_id","offer_person_address","caller","sign"]},"AcceptOfferBody":{"type":"object","properties":{"contract_address":{"type":"string"},"token_id":{"type":"number"},"offer_person_address":{"type":"string"},"token_owner":{"type":"string"},"sign":{"type":"string"}},"required":["contract_address","token_id","offer_person_address","token_owner","sign"]},"G2W3_1155Sale":{"type":"object","properties":{"token_owner":{"type":"string","default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72"},"contract_address":{"type":"string","default":"0x68e24E30348cACcB8dF3d62Fa2891B4864ff0879"},"token_id":{"type":"number"},"number_of_tokens":{"type":"number"},"start_date":{"format":"date-time","type":"string"},"end_date":{"format":"date-time","type":"string"},"per_unit_price":{"type":"number"},"sign":{"type":"string"}},"required":["token_owner","contract_address","token_id","number_of_tokens","start_date","end_date","per_unit_price","sign"]},"G2W3_1155CancelSale":{"type":"object","properties":{"token_owner":{"type":"string","default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72"},"contract_address":{"type":"string","default":"0x68e24E30348cACcB8dF3d62Fa2891B4864ff0879"},"token_id":{"type":"number"},"sign":{"type":"string"}},"required":["token_owner","contract_address","token_id","sign"]},"G2W3_1155Offer":{"type":"object","properties":{"offer_person_address":{"type":"string","default":"0x81CcBB87535864eD9F511f5196fc22deEd77a272"},"contract_address":{"type":"string","default":"0x68e24E30348cACcB8dF3d62Fa2891B4864ff0879"},"token_id":{"type":"number"},"number_of_tokens":{"type":"number"},"per_unit_price":{"type":"number"},"sign":{"type":"string"}},"required":["offer_person_address","contract_address","token_id","number_of_tokens","per_unit_price","sign"]},"G2W3_1155AcceptOffer":{"type":"object","properties":{"offer_person_address":{"type":"string","default":"0x81CcBB87535864eD9F511f5196fc22deEd77a272"},"token_owner":{"type":"string"},"contract_address":{"type":"string","default":"0x68e24E30348cACcB8dF3d62Fa2891B4864ff0879"},"token_id":{"type":"number"},"number_of_tokens":{"type":"number"},"sign":{"type":"string"}},"required":["offer_person_address","token_owner","contract_address","token_id","number_of_tokens","sign"]},"G2W3_1155CancelOffer":{"type":"object","properties":{"offer_person_address":{"type":"string","default":"0x81CcBB87535864eD9F511f5196fc22deEd77a272"},"contract_address":{"type":"string","default":"0x68e24E30348cACcB8dF3d62Fa2891B4864ff0879"},"token_id":{"type":"number"},"sign":{"type":"string"}},"required":["offer_person_address","contract_address","token_id","sign"]},"G2W3_1155AllOffers":{"type":"object","properties":{"contract_address":{"type":"string","default":"0x68e24E30348cACcB8dF3d62Fa2891B4864ff0879"},"token_id":{"type":"number"}},"required":["contract_address","token_id"]},"CreateDeploymentDto":{"type":"object","properties":{"symbol":{"type":"string","default":"NGM-Nft"},"owner_address":{"type":"string","description":"Owner of the contract","default":"0xa8E7CCE298F1C2e52DE6920840d80C28Fc787F72"},"roles":{"type":"string","description":"Role of the player","enum":["ADMIN","PLAYER"]},"collection_name":{"type":"string","default":"Avengers"},"chain":{"type":"string","enum":["ETHEREUM","POLYGON","MUMBAI","GOERLI","FILECOIN","HYPERSPACE"],"default":"FILECOIN"},"type":{"type":"string","description":"Type of contract you want to deploy.We provide 3 options ","enum":["NGM721PSI","NGMTINY721","NGM1155"],"default":"NGM721PSI"},"imageuri":{"type":"string","description":"Image of the contract for front-end"},"description":{"type":"string"}},"required":["symbol","owner_address","roles","collection_name","chain","type","imageuri","description"]},"ValidateTransaction":{"type":"object","properties":{"chain":{"type":"string"},"transaction_hash":{"type":"string"}},"required":["chain","transaction_hash"]}}}}