-
Notifications
You must be signed in to change notification settings - Fork 24
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
API ? #40
Comments
Hi! In a way "yes" and in a way "no". "No" in the sense that there is no guarantee that the endpoints and their in- and output formats will remain the very same. "Yes" in the sense that you could fully operate it with curl as of today if you pay attention to what you see in Chromium's/Firefox's network inspector. If you do automated creation, please be responsible with how many polls you create on https://jawanndenn.de/ if you do not use a self-hosted instance somewhere. Midterm, there is a good chance that I'll migrate this project off bottle towards Django. In case you know someone who would like to sponsor that transition, we could discuss adding a DRF REST API layer on top with versioning, as you'd expect from a true API. |
No worries it’s no more than 30 per weeks at the moment. What about retrieving the most popular answer ? |
It would be dead code from the point of view of current code base. I'm afraid that needs to wait until there is a proper API. |
will wait for it then :) |
Since you are now using Django and REST-framework, is it possible to document the API? e.g. for https://github.com/hartwork/jawanndenn/blob/master/jawanndenn/serializers.py |
Also, do you think it makes sense to use REST-framework's class-based views instead of doing everything manually? |
Hi @stefan2904 , while jawanndann started using a DRF serializer internally it does not have any API yet. Can you describe your uses cases of a future API? That would would help making sure we're aiming in the same direction. |
with the API would like to be able to |
we would probably use it for something along the lines of:
in addition, the following is currently not implemented (afaik), but would be nice to have via api, too:
our usecase is a bot that automatically (e.g. regularly) creates the voting, sends the links to users, and after a certain time closes the voting and announces the winner (the defining of a winner might involve a manual step). |
Thanks for your feedback! I'm assuming that by deadline you mean a date that turns the poll read-only when reached.
I'm not sure I understand that one. @ced455 could you elaborate? |
Yes read only :) When the user are in the poll there is field to set a username, I would like to pre fill these so user does not create new username and we are sure we can recognise these. |
Also best case scenario is to get a link per user so they do not edit each other |
I will need to consider which of these wishes fits with jawanndenn's goal of minimalism. |
Make sense ! |
Hello, does this app have an API ?
I would like to be able to create poll automatically and retrieve the link.
Regards
The text was updated successfully, but these errors were encountered: