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
value number
userId string
submissionId string
{
"value": 0,
"userId": "string",
"submissionId": "string"
}
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...