-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add parse enum pipe for collection and nft endpoints (#659)
* add parse enum pipe for collection and nft endpoints * revert optionalEnumPipe from getNfts() * remove type filter for :collection/nfts/count and :collection/nfts * add dropdown options into swagger * update status ApiQuery param with enum: TransactionStatus * update sort ApiQuery param with enum: SortNodes * update boolean fields * updated endpoint descriptions Co-authored-by: Traian Anghel <[email protected]>
- Loading branch information
Showing
9 changed files
with
60 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export enum SortNodes { | ||
name = 'name', | ||
version = 'version', | ||
tempRating = 'tempRating', | ||
leaderSuccess = 'leaderSuccess', | ||
leaderFailure = 'leaderFailure', | ||
validatorSuccess = 'validatorSuccess', | ||
validatorFailure = 'validatorFailure', | ||
validatorIgnoredSignatures = 'validatorIgnoredSignatures', | ||
position = 'position', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export enum SortTokens { | ||
accounts = 'accounts', | ||
transactions = 'transactions', | ||
price = 'price', | ||
marketCap = 'marketCap', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export enum TransactionStatus { | ||
success = 'success', | ||
pending = 'pending', | ||
invalid = 'invalid', | ||
fail = 'fail' | ||
} |
Oops, something went wrong.