Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Community - Fix Reputation API Definitions #417

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions _data/apidefinitions/reputation_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
for account reputations (the latter if [`hivemind`]({{ '/tutorials-recipes/using-hivemind' | relative_url }}) is fronting `follow_api`)
methods:
- api_method: reputation_api.get_account_reputations
since: The Mysterious Future
purpose: |
Returns the reputation of accounts. Parameters: `accounts:string array`; `limit:int`
Returns the reputation of accounts. Parameters: `account_lower_bound:string`; `limit:int`

* `limit` is up to 1000.

| `account` (string) | `limit` (int) | |
| `account_lower_bound` (string) | `limit` (int) | |
|--------------------|-|
| `"steemit"` | 10 | Queries the reputation for account named "steemit". |
| `"steemit"` | 1 | Queries for accounts that start with "steemit", only one result. |
| `"a"` | 10 | Queries for accounts that start with "a", up to 10 results. |

See [#1425](https://github.com/steemit/steem/issues/1425)
parameter_json: '{"account_lower_bound":"","limit":1000}'
Expand All @@ -25,7 +25,7 @@
"reputation": 0
}
curl_examples:
- '{"jsonrpc":"2.0", "method":"reputation_api.get_account_reputations", "params": {"account_lower_bound": "steem"}, "id":1}'
- '{"jsonrpc":"2.0", "method":"reputation_api.get_account_reputations", "params": {"account_lower_bound": "steemit", "limit": 1}, "id":1}'
mainnet:
working: false
detail: "Not yet enabled."
working: true
detail: ""