Comments (14)
I will need to consider which of these wishes fits with jawanndenn's goal of minimalism.
from jawanndenn.
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.
from jawanndenn.
No worries itβs no more than 30 per weeks at the moment.
What about retrieving the most popular answer ?
Anyway if I choose this solution I will host it myself :)
from jawanndenn.
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.
from jawanndenn.
will wait for it then :)
from jawanndenn.
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
from jawanndenn.
Also, do you think it makes sense to use REST-framework's class-based views instead of doing everything manually?
from jawanndenn.
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.
from jawanndenn.
with the API would like to be able to
-create a poll (no sh*t Sherlock)
Set a maximum amount of Answer
Set a deadline date
Set User (no need for authentication, i just need the name pre filled )
from jawanndenn.
we would probably use it for something along the lines of:
- create a poll
- query current votes
in addition, the following is currently not implemented (afaik), but would be nice to have via api, too:
- set a deadline
- be able to close the voting / set a winner (this requires some form of authentication)
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).
from jawanndenn.
Thanks for your feedback!
I'm assuming that by deadline you mean a date that turns the poll read-only when reached.
Set User (no need for authentication, i just need the name pre filled )
I'm not sure I understand that one. @ced455 could you elaborate?
from jawanndenn.
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.
from jawanndenn.
Also best case scenario is to get a link per user so they do not edit each other
from jawanndenn.
I will need to consider which of these wishes fits with jawanndenn's goal of minimalism.
Make sense !
from jawanndenn.
Related Issues (20)
- Add ternary choice "maybe/dunno" HOT 4
- Feature: Allow removing existing votes HOT 6
- Docker image issue HOT 2
- Footer blocks access to voting controls (with many votes) HOT 2
- docker-compose installation results in 'ImportError: No module named main' HOT 3
- Domain Subfolder HOT 7
- Migrate from bottle to Django HOT 1
- [docker] Make Dockerfile and docker-compose.yml run containers as unproviliged user HOT 1
- Scroll? HOT 3
- Error 500 when pasting JSON with single surrogate characters
- Enable "matchmaking" capabilities. HOT 1
- Footer should include a possibility to insert an impressum HOT 1
- missing rapid-json dependency for pip HOT 3
- "docker-compose up --build" fails with docker-compose 2.x.x (but not 1.x.x) HOT 2
- Where can ALLOWED_HOSTS be changed for testing? HOT 2
- Detailed Installation Instructions HOT 4
- Feature Request: Using images + text as voting options. HOT 1
- Integration with existing Django Sites HOT 6
- handling timezones HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jawanndenn.