I'm designing a restful API. In this API it's possible to POST, DELETE and GET cases using the API. If there is a case that you find particularly important its possible to put a "vote" on it so that a case becomes more prioritized.
However I am wondering what type of method this should be?
Which one should it be:
GET /cases/{case_id}/vote
POST /cases/{case_id}/vote
PUT /cases/{case_id}/vote
Calling the vote method will only increase the number of votes by 1. I'm currently leaning towards PUT myself seeing as how it's an update of an existing number (although POST could also be used for this) but I am wondering what the convention is.