Modified committees endpoint address in open api documentation
Added plans endpoint to open api documentation
@@ -2134,7 +2134,7 @@ paths:
id:
type: string
description: the node public id
- /api/v0/committees:
+ /api/v0/votes/active/committees:
get:
description: Get committee members ID
operationId: committees
@@ -2158,3 +2158,47 @@ paths:
example:
- f5285eeead8b5885a1420800de14b0d1960db1a990a6c2f7b517125bedc000db
- 7ef044ba437057d6d944ace679b7f811335639a689064cd969dffc8b55a7cc19
+ /api/v0/votes/active/plans:
+ get:
+ description: Get active vote plans
+ operationId: vote_plans
+ tags:
+ - vote
+ responses:
+ '200':
+ description: Success
+ content:
+ application/json:
+ schema:
+ type: array
+ description: Vote plans data
+ uniqueItems: true
+ items:
+ description: Vote plan
+ type: object
+ properties:
+ vote_start:
+ type: object
+ description: Vote start BlockDate
+ vote_end:
+ type: object
+ description: Vote end BlockDate
+ committee_end:
+ type: object
+ description: Committee end BlockDate
+ proposals:
+ type: array
+ description: Active proposals
+ items:
+ type: object
+ description: Proposal
+ properties:
+ external_id:
+ type: string
+ description: Hash of external id
+ options:
+ type: object
+ properties:
+ max_value:
+ type: int
+ description: Maximum number of options
\ No newline at end of file
