courselab / pollex

Open Source Online Poll Application
GNU General Public License v3.0
1 stars 9 forks source link

Create get poll route #29

Closed ET33 closed 4 years ago

ET33 commented 4 years ago

We need a /polls/:poll_id route that will respond data from the poll specified by poll_id.

It's expected to receive a GET request along with the user token (in the request header) and respond the poll data.

GET - /polls/:poll_id
Request:
    header: {
        "token": string
    }

Response:
    {
        "poll_id": int,
        "name": string,
        ...
    }