votes

Vote On Paper Repo

Vote on a paper-repository pair.

  • If user hasn't voted: create new vote
  • If user voted same type: remove vote (toggle off)
  • If user voted different type: change vote
post/votes/paper/{paper_id}/repo/{owner}/{repo_name}

Request

  • Base URL: https://api.codeofpaper.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.codeofpaper.com/votes/paper/{paper_id}/repo/{owner}/{repo_name}
  • Auth: HTTP bearer

Path parameters

paper_idstring required
ownerstring required
repo_namestring required

Request body

vote_typestring required

Response

Successful Response

upvotesinteger required
downvotesinteger required
user_votestring nullable required

Changes

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