Get vote status for current user and submission
GET/vote/:submissionId
Get vote status for current user and submission
Request
Path Parameters
submissionId submissionIdrequired
The ID of the submission to get the vote status for
Responses
- 200
- 404
- default
Successful response
- application/json
- Schema
- Example (from schema)
Schema
submissionId string
userId string
value number
{
"submissionId": "string",
"userId": "string",
"value": 0
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...