Skip to content

Post voting

Hvostov Maksim edited this page Sep 22, 2019 · 3 revisions

Request

POST https://m.habr.com/kek/v1/articles/468383/votes/up?
POST https://m.habr.com/kek/v1/articles/468323/votes/down?

Headers

  • csrf-token - token gets by another way.

Possible result

{ 
   "data":{ 
      "score":14
   },
   "success":true
}
{ 
   "data":{ 
      "code":"400",
      "message":"Повторное голосование запрещено",
      "data":null
   },
   "success":false
}
Clone this wiki locally