pierresaid / SOEN487-ResoluteLeopards

Micro-services Application in VueJs and Flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[post_api] Vote route

pierresaid opened this issue · comments

route

[POST] /vote

Create or Modify the vote for a post

body

[
    {
        "post_id": "1",
        "value": -1 || 0 || 1,
    }
]

header

[
    {
        "Authorization": "the_access_token"
    }
]

This change is functional on master. You will need to suply user_id in the body as I don't yet have the user_token.