POSTS

(vote)

app/controllers/api/posts_controller.ts - vote

post/api/posts/{postId}/vote

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Path parameters

postIdstring required
Example:string

Post to vote

Request body

optionIdstring

Example request

{
  "optionId": "Lorem Ipsum"
}

Response

Returns 200 (OK) as application/json

idnumber
titlestring
descriptionstring
totalnumber
createdAtstring
answernumber nullable
isLikedboolean nullable

Changes

No recorded changes to this operation across all 1 revision of this API.