-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from Adamant-im/fix/minor-fixes
Fix/minor fixes
- Loading branch information
Showing
92 changed files
with
923 additions
and
100 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
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,7 +1,54 @@ | ||
############################### | ||
######## Path params ########## | ||
############################### | ||
|
||
- name: address | ||
in: path | ||
description: ADAMANT address | ||
required: true | ||
schema: | ||
type: string | ||
example: U839357947177758191 | ||
|
||
############################### | ||
####### Common filters ######## | ||
############################### | ||
|
||
# senderId | ||
- $ref: '../../common/params/filters/senderId/senderId.yaml' | ||
- $ref: '../../common/params/filters/senderId/andSenderId.yaml' | ||
- $ref: '../../common/params/filters/senderId/orSenderId.yaml' | ||
|
||
# recipientId | ||
- $ref: '../../common/params/filters/recipientId/recipientId.yaml' | ||
- $ref: '../../common/params/filters/recipientId/andRecipientId.yaml' | ||
- $ref: '../../common/params/filters/recipientId/orRecipientId.yaml' | ||
|
||
############################### | ||
######## Common params ######## | ||
############################### | ||
|
||
# offset | ||
- $ref: '../../common/params/offset.yaml' | ||
|
||
# orderBy | ||
- $ref: '../../common/params/orderBy.yaml' | ||
|
||
############################### | ||
## Endpoint specific filters ## | ||
############################### | ||
|
||
# userId | ||
- $ref: './params/filters/userId/userId.yaml' | ||
- $ref: './params/filters/userId/andUserId.yaml' | ||
- $ref: './params/filters/userId/orUserId.yaml' | ||
|
||
# withoutDirectTransfers | ||
- $ref: './params/filters/withoutDirectTransfers/withoutDirectTransfers.yaml' | ||
|
||
############################### | ||
### Endpoint specific params ## | ||
############################### | ||
|
||
# limit | ||
- $ref: './params/limit.yaml' |
8 changes: 8 additions & 0 deletions
8
specification/chats/GetChatRooms/params/filters/userId/andUserId.yaml
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,8 @@ | ||
name: and:userId | ||
in: query | ||
description: | | ||
Filter by senderId/recipientId (`and` operator). | ||
The query will look like `tx.senderId = {userId} OR tx.recipientId = {userId}`. | ||
schema: | ||
type: string | ||
required: false |
8 changes: 8 additions & 0 deletions
8
specification/chats/GetChatRooms/params/filters/userId/orUserId.yaml
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,8 @@ | ||
name: or:userId | ||
in: query | ||
description: | | ||
Filter by senderId/recipientId (`or` operator). | ||
The query will look like `tx.senderId = {userId} OR tx.recipientId = {userId}`. | ||
schema: | ||
type: string | ||
required: false |
9 changes: 9 additions & 0 deletions
9
specification/chats/GetChatRooms/params/filters/userId/userId.yaml
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,9 @@ | ||
name: userId | ||
in: query | ||
description: | | ||
Filter by senderId/recipientId. | ||
The query will look like `tx.senderId = {userId} OR tx.recipientId = {userId}`. | ||
schema: | ||
type: string | ||
example: U14236667426471084862 | ||
required: false |
7 changes: 7 additions & 0 deletions
7
...tion/chats/GetChatRooms/params/filters/withoutDirectTransfers/withoutDirectTransfers.yaml
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,7 @@ | ||
name: withoutDirectTransfers | ||
in: query | ||
description: When set to `true`, excludes type `0` transactions (direct token transfers) from results. Default is `false`. | ||
schema: | ||
type: boolean | ||
default: false | ||
required: false |
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,8 @@ | ||
name: limit | ||
in: query | ||
description: Limit number of transactions in the result | ||
schema: | ||
type: integer | ||
example: 10 | ||
default: 25 | ||
required: false |
71 changes: 50 additions & 21 deletions
71
specification/chats/GetChatTransactions/GetChatTransactionsParams.yaml
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,21 +1,50 @@ | ||
- name: address | ||
in: query | ||
description: ADAMANT address | ||
required: true | ||
schema: | ||
type: string | ||
example: U839357947177758191 | ||
- name: orderBy | ||
in: query | ||
description: Order by field | ||
required: false | ||
schema: | ||
type: string | ||
example: timestamp:desc | ||
- name: fromHeight | ||
in: query | ||
description: Filter transactions starting from specified block `height` | ||
required: false | ||
schema: | ||
type: number | ||
example: 6184187 | ||
############################### | ||
####### Common filters ######## | ||
############################### | ||
|
||
# fromHeight | ||
- $ref: '../../common/params/filters/fromHeight/fromHeight.yaml' | ||
- $ref: '../../common/params/filters/fromHeight/andFromHeight.yaml' | ||
- $ref: '../../common/params/filters/fromHeight/orFromHeight.yaml' | ||
|
||
# toHeight | ||
- $ref: '../../common/params/filters/toHeight/toHeight.yaml' | ||
- $ref: '../../common/params/filters/toHeight/andToHeight.yaml' | ||
- $ref: '../../common/params/filters/toHeight/orToHeight.yaml' | ||
|
||
# senderId | ||
- $ref: '../../common/params/filters/senderId/senderId.yaml' | ||
- $ref: '../../common/params/filters/senderId/andSenderId.yaml' | ||
- $ref: '../../common/params/filters/senderId/orSenderId.yaml' | ||
|
||
# recipientId | ||
- $ref: '../../common/params/filters/recipientId/recipientId.yaml' | ||
- $ref: '../../common/params/filters/recipientId/andRecipientId.yaml' | ||
- $ref: '../../common/params/filters/recipientId/orRecipientId.yaml' | ||
|
||
# inId | ||
- $ref: '../../common/params/filters/inId/inId.yaml' | ||
- $ref: '../../common/params/filters/inId/andInId.yaml' | ||
- $ref: '../../common/params/filters/inId/orInId.yaml' | ||
|
||
# type | ||
- $ref: '../../common/params/filters/messageType/type.yaml' | ||
- $ref: '../../common/params/filters/messageType/andType.yaml' | ||
- $ref: '../../common/params/filters/messageType/orType.yaml' | ||
|
||
############################### | ||
######## Common params ######## | ||
############################### | ||
|
||
# offset | ||
- $ref: '../../common/params/offset.yaml' | ||
|
||
# orderBy | ||
- $ref: '../../common/params/orderBy.yaml' | ||
|
||
############################### | ||
### Endpoint specific params ## | ||
############################### | ||
|
||
# limit | ||
- $ref: './params/limit.yaml' |
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,8 @@ | ||
name: limit | ||
in: query | ||
description: Limit number of transactions in the result | ||
schema: | ||
type: integer | ||
example: 10 | ||
default: 100 | ||
required: false |
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 @@ | ||
name: and:blockId | ||
in: query | ||
description: Filter by specific block (`and` condition) | ||
schema: | ||
type: number | ||
required: false |
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,7 @@ | ||
name: blockId | ||
in: query | ||
description: Filter by specific block | ||
schema: | ||
type: number | ||
example: 7917597195203393333 | ||
required: false |
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 @@ | ||
name: or:blockId | ||
in: query | ||
description: Filter by specific block (`or` condition) | ||
schema: | ||
type: number | ||
required: false |
6 changes: 6 additions & 0 deletions
6
specification/common/params/filters/fromHeight/andFromHeight.yaml
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 @@ | ||
name: and:fromHeight | ||
in: query | ||
description: Filter starting from specific height (`and` operator) | ||
schema: | ||
type: integer | ||
required: false |
6 changes: 6 additions & 0 deletions
6
specification/common/params/filters/fromHeight/fromHeight.yaml
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 @@ | ||
name: fromHeight | ||
in: query | ||
description: Filter starting from specific `height` | ||
schema: | ||
type: integer | ||
required: false |
6 changes: 6 additions & 0 deletions
6
specification/common/params/filters/fromHeight/orFromHeight.yaml
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 @@ | ||
name: or:fromHeight | ||
in: query | ||
description: Filter starting from specific height (`or` operator) | ||
schema: | ||
type: integer | ||
required: false |
7 changes: 7 additions & 0 deletions
7
specification/common/params/filters/fromTimestamp/andFromTimestamp.yaml
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,7 @@ | ||
name: and:fromTimestamp | ||
in: query | ||
description: Filter by timestamp (`and` operator) | ||
schema: | ||
type: number | ||
example: 37059538 | ||
required: false |
7 changes: 7 additions & 0 deletions
7
specification/common/params/filters/fromTimestamp/fromTimestamp.yaml
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,7 @@ | ||
name: fromTimestamp | ||
in: query | ||
description: Filter by timestamp | ||
schema: | ||
type: number | ||
example: 37059538 | ||
required: false |
7 changes: 7 additions & 0 deletions
7
specification/common/params/filters/fromTimestamp/orFromTimestamp.yaml
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,7 @@ | ||
name: or:fromTimestamp | ||
in: query | ||
description: Filter by timestamp (`or` operator) | ||
schema: | ||
type: number | ||
example: 37059538 | ||
required: false |
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 @@ | ||
name: and:inId | ||
in: query | ||
description: Filter by recipientId/senderId `("recipientId" = ${inId} OR "senderId" = ${inId})` with `and` operator | ||
schema: | ||
type: string | ||
required: false |
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,7 @@ | ||
name: inId | ||
in: query | ||
description: Filter by recipientId/senderId `("recipientId" = ${inId} OR "senderId" = ${inId})` | ||
schema: | ||
type: string | ||
example: U14236667426471084862 | ||
required: false |
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 @@ | ||
name: or:inId | ||
in: query | ||
description: Filter by recipientId/senderId `("recipientId" = ${inId} OR "senderId" = ${inId})` with `or` operator | ||
schema: | ||
type: string | ||
required: false |
7 changes: 7 additions & 0 deletions
7
specification/common/params/filters/maxAmount/andMaxAmount.yaml
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,7 @@ | ||
name: and:maxAmount | ||
in: query | ||
description: | | ||
Filter results with `amount` not more than specified Integer value of 1/10^8 tokens (1 ADM = 100000000). | ||
schema: | ||
type: integer | ||
required: false |
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,8 @@ | ||
name: maxAmount | ||
in: query | ||
description: | | ||
Filter results with `amount` not more than specified Integer value of 1/10^8 tokens (1 ADM = 100000000). | ||
schema: | ||
type: integer | ||
example: 50000000 | ||
required: false |
7 changes: 7 additions & 0 deletions
7
specification/common/params/filters/maxAmount/orMaxAmount.yaml
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,7 @@ | ||
name: or:maxAmount | ||
in: query | ||
description: | | ||
Filter results with `amount` not more than specified Integer value of 1/10^8 tokens (1 ADM = 100000000). | ||
schema: | ||
type: integer | ||
required: false |
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 @@ | ||
name: and:maxFee | ||
in: query | ||
description: Filter by `fee` (`and` operator) | ||
schema: | ||
type: integer | ||
required: false |
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,7 @@ | ||
name: maxFee | ||
in: query | ||
description: Filter by `fee` | ||
schema: | ||
type: integer | ||
example: 100000 | ||
required: false |
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 @@ | ||
name: or:maxFee | ||
in: query | ||
description: Filter by `fee` (`or` operator) | ||
schema: | ||
type: integer | ||
required: false |
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,8 @@ | ||
name: and:type | ||
in: query | ||
description: | | ||
Get messages of specified type. See [Message Types](https://github.com/Adamant-im/adamant/wiki/Message-Types). | ||
If `type` is not set, all types of transactions will be returned. | ||
schema: | ||
type: integer | ||
required: false |
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,8 @@ | ||
name: or:type | ||
in: query | ||
description: | | ||
Get messages of specified type. See [Message Types](https://github.com/Adamant-im/adamant/wiki/Message-Types). | ||
If `type` is not set, all types of transactions will be returned. | ||
schema: | ||
type: integer | ||
required: false |
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,9 @@ | ||
name: type | ||
in: query | ||
description: | | ||
Get messages of specified type. See [Message Types](https://github.com/Adamant-im/adamant/wiki/Message-Types). | ||
If `type` is not set, all types of transactions will be returned. | ||
schema: | ||
type: integer | ||
example: 2 | ||
required: false |
Oops, something went wrong.