pip install -r requirements.txt
python3 main.py
Endpoint: /
Method: GET
Description: Renders the documentation page.
Endpoint: /members/<space>
Method: GET
Description: Fetches unique voters for a given space. Optionally fetches on-chain members and delegates if onchain
parameter is provided.
-
space
(path parameter):- Type:
string
- Description: The space ID from which to fetch the unique voters.
- Type:
-
offchain_cursor
(query parameter, optional):- Type:
integer
- Description: Cursor for paginating off-chain votes.
- Type:
-
onchain_cursor
(query parameter, optional):- Type:
integer
- Description: Cursor for paginating on-chain members and delegates.
- Type:
-
onchain
(query parameter, optional):- Type:
string
- Description: The slug of the on-chain organization to fetch members and delegates from.
- Type:
-
refresh
(query parameter, optional):- Type:
boolean
- Description: If set to
true
, forces a refresh of the cached data.
- Type:
-
200 OK
- Content-Type:
application/json
- Description: Returns the list of unique voters, and optionally on-chain members and delegates, with pagination cursors.
{ "Members": { "@context": "http://daostar.org/schemas", "type": "DAO", "name": "Example DAO", "members": { "offchain": { "members": [ {"id": "0x123...", "type": "EthereumAddress"}, {"id": "0x456...", "type": "EthereumAddress"} ], "offchain_cursor_str": 123456789 }, "onchain": { "members": [ {"id": "0xabc...", "role": "member", "type": "EthereumAddress"}, {"id": "0xdef...", "role": "delegate", "type": "EthereumAddress"} ], "onchain_cursor_str": 987654321 } } } }
- Content-Type: