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

Taskhall interface #13

Open
Shaofanl opened this issue Aug 14, 2015 · 2 comments
Open

Taskhall interface #13

Shaofanl opened this issue Aug 14, 2015 · 2 comments

Comments

@Shaofanl
Copy link
Contributor

  • Run python manager.py testinit
  • Access http://localhost:5000/taskhall/list to get the list of tasks. Here is some parameters:
    • page: The page number, starting from 1. Default is 1.
    • keyword: One of 'time', 'vote', or 'view'. Default is 'time'
    • per_page: Tasks per page. Default is 2 (FLASKY_TASKS_PER_PAGE in config.py)

For example:

  • http://localhost:5000/taskhall/list?page=2 will get the 2nd page sorted by time(descent) and 2 tasks per page.
  • http://localhost:5000/taskhall/list?page=1&keyword='vote'&per_page=100 will get the first page sorted by vote(descent) and 100 tasks per page.
@leasunhy
Copy link
Contributor

leasunhy commented Sep 7, 2015

The interface for Taskhall index works well, thanks! 😆
As for the page displaying details of a Task, I'm considering using Jinja templating rather than frontend VueJS templating. Maybe a json interface for commenting will help improve the UX, but let's consider adding it after the 1.0 version 😓

@leasunhy
Copy link
Contributor

leasunhy commented Sep 9, 2015

New interfaces needed...

  1. Create a task. Use HTTP form. Use WTForms, maybe?
  2. Searching tasks. Use json or URL parameters to exchange data. Maybe integrated in /taskhall/list because there are so many similarities. If using json, example request will look like:
{
    "keyword" : "GFP",
    "order"   : "vote",
    "perpage" : 15,
}

Thanks! 🙏

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

2 participants