[GET] /query
Name | Type | Optional | Description |
---|---|---|---|
page | integer | y | Page number. Starts from 0. |
page_size | integer | y | Page size. Default to 20. |
text | string | y | Text filter. Full text search on title, description, etc. |
type | string | y | Query type. Currently supports "all", "share", "account", "group". |
category | string | y | Category filter. |
data
is an array containing groups,
content, accounts
or a mixture of all types.
$ curl -x https://rigel-a.primas.network/v3/content -d '{"type":"article","content":"...","signature":"..."}'
{"result_code":0,"data":{"dna":"", ...}}
[GET] /query/content
Name | Type | Optional | Description |
---|---|---|---|
url | string | y | Url encoded url. |
hash | string | y | Lowercase hex string of the Keccak256 hash of the raw content. |
data
is an array of content.
$ curl -x https://rigel-a.primas.network/v3/content -d '{"type":"article","content":"...","signature":"..."}'
{"result_code":0,"data":{"dna":"", ...}}
[GET] /query/reproductions
Name | Type | Optional | Description |
---|---|---|---|
page | integer | y | Page number. Starts from 0. |
page_size | integer | y | Page size. Default to 20. |
url | string | n | Url encoded url. |
data
is an array of reproductions:
$ curl -x https://rigel-a.primas.network/v3/content -d '{"type":"article","content":"...","signature":"..."}'
{"result_code":0,"data":{"dna":"", ...}}