-
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.
feat: implement the metadata query (#682)
- Loading branch information
Showing
24 changed files
with
762 additions
and
236 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
post: | ||
operationId: PostDecentralizedMetadata | ||
summary: Batch Get Activities By Metadata | ||
description: Retrieve a batch of activities associated with multiple specified metadata in the decentralized system. You can use various query parameters to filter and paginate the results, including limits on the number of activities and actions, timestamps, success status, direction, and more. | ||
tags: | ||
- Decentralized | ||
security: | ||
- bearerAuth: [ ] | ||
requestBody: | ||
$ref: "../../requestBody/BatchGetDecentralizedMetadataActivities.yaml" | ||
responses: | ||
'200': | ||
$ref: "../../responses/DecentralizedActivitiesResponse.yaml" | ||
'400': | ||
$ref: "../../responses/BadRequest.yaml" | ||
'500': | ||
$ref: "../../responses/InternalError.yaml" |
50 changes: 50 additions & 0 deletions
50
docs/requestBody/BatchGetDecentralizedMetadataActivities.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,50 @@ | ||
description: Request body for batch retrieving activities for specified metadata, network and tag and type is required | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
accounts: | ||
type: array | ||
items: | ||
$ref: "../schemas/DecentralizedAccount.yaml" | ||
x-go-type-skip-optional-pointer: true | ||
limit: | ||
$ref: "../schemas/Limit.yaml" | ||
action_limit: | ||
$ref: "../schemas/ActionLimit.yaml" | ||
cursor: | ||
$ref: "../schemas/Cursor.yaml" | ||
since_timestamp: | ||
$ref: "../schemas/Timestamp.yaml" | ||
until_timestamp: | ||
$ref: "../schemas/Timestamp.yaml" | ||
success: | ||
$ref: "../schemas/Success.yaml" | ||
network: | ||
type: object | ||
allOf: | ||
- $ref: "../schemas/ProtocolNetwork.yaml" | ||
x-oapi-codegen-extra-tags: | ||
validate: "required" | ||
tag: | ||
type: object | ||
allOf: | ||
- $ref: "../schemas/ProtocolTag.yaml" | ||
x-oapi-codegen-extra-tags: | ||
validate: "required" | ||
type: | ||
type: string | ||
allOf: | ||
- $ref: "../schemas/ProtocolType.yaml" | ||
x-oapi-codegen-extra-tags: | ||
validate: "required" | ||
platform: | ||
$ref: "../schemas/DecentralizedPlatform.yaml" | ||
metadata: | ||
type: object | ||
allOf: | ||
- $ref: "../schemas/ProtocolMetadata.yaml" | ||
x-oapi-codegen-extra-tags: | ||
validate: "required" |
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,3 +1,4 @@ | ||
allOf: | ||
- $ref: "https://raw.githubusercontent.com/RSS3-Network/Protocol-Go/refs/heads/main/openapi/enum/Network.yaml" | ||
# - x-go-type: string | ||
# - x-go-type: string | ||
x-go-type-skip-optional-pointer: true |
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,2 +1,3 @@ | ||
allOf: | ||
- $ref: "https://raw.githubusercontent.com/RSS3-Network/Protocol-Go/refs/heads/main/openapi/enum/Tag.yaml" | ||
- $ref: "https://raw.githubusercontent.com/RSS3-Network/Protocol-Go/refs/heads/main/openapi/enum/Tag.yaml" | ||
x-go-type-skip-optional-pointer: true |
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,6 +1,6 @@ | ||
allOf: | ||
- $ref: "https://raw.githubusercontent.com/RSS3-Network/Protocol-Go/refs/heads/main/openapi/Type.yaml" | ||
- x-go-type: schema.Type | ||
x-go-type-skip-optional-pointer: true | ||
x-go-type-import: | ||
path: github.com/rss3-network/protocol-go/schema | ||
x-go-type-skip-optional-pointer: true |
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
Oops, something went wrong.