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

Voting endpoints should be more REST-like #5

Open
velovix opened this issue Jul 12, 2018 · 0 comments
Open

Voting endpoints should be more REST-like #5

velovix opened this issue Jul 12, 2018 · 0 comments

Comments

@velovix
Copy link
Member

velovix commented Jul 12, 2018

Right now there are three main voting endpoints:

Vote to accept: /bhap/{id}/vote-accept
Vote to reject: /bhap/{id}/vote-reject
Delete a vote: /bhap/{id}/delete-vote

Gross. What was I thinking? Instead there should be one endpoint. Accepts and rejects should send POSTs and have their accept/reject value in the body. A DELETE request will delete the vote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant