Get a user's vote on a specific proposal, if they have voted
Parameters
Output
Encoding
application/jsonvote
union
Required
Vote if found, or null
Errors
NotFound
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Get a user's vote on a specific proposal, if they have voted",
"errors": [
{
"name": "NotFound"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"vote": {
"description": "Vote if found, or null",
"refs": [
"#voteView"
],
"type": "union"
}
},
"required": [
"vote"
],
"type": "object"
}
},
"parameters": {
"properties": {
"proposalId": {
"description": "Proposal identifier",
"type": "string"
},
"userDid": {
"description": "User DID",
"format": "did",
"type": "string"
}
},
"required": [
"proposalId",
"userDid"
],
"type": "params"
},
"type": "query"
}