Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get poll by share token through REST-API #3476

Open
1 task done
Bagoult opened this issue May 3, 2024 · 1 comment
Open
1 task done

Get poll by share token through REST-API #3476

Bagoult opened this issue May 3, 2024 · 1 comment
Milestone

Comments

@Bagoult
Copy link
Contributor

Bagoult commented May 3, 2024

⚠️ This issue respects the following points: ⚠️

Describe the goal you'd like to achieve

As a user of the REST-API, I would like to be able to get a poll using only a share token.

Currently, it is only possible to access a poll by PollId when using REST-API. When someone gets a public share, they can use the share/{token} endpoint to get the PollId but this doesn't give them the authorization of accessing the poll.

Describe possible solutions

I see two possible implementations :

  • Automatically mark the user as involved with a poll when they use the share/{token} endpoint so that they can simply GET poll/{pollId} (or create a dedicated endpoint to get involved with a poll using the share token).
  • Create a new endpoint like GET /api/v1.0/poll/{token} which would return a poll.

I would recommend against the second option as it would require more work to create endpoints to let the user access the list of options and to vote to make it entirely functional.

Additional context

No response

@dartcafe
Copy link
Collaborator

dartcafe commented May 6, 2024

Yes. API-Support is still a to do for public access.

@dartcafe dartcafe added this to the backlog milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants