notes
This commit is contained in:
parent
695306a242
commit
87cf00673c
45
api notes
Normal file
45
api notes
Normal file
@ -0,0 +1,45 @@
|
||||
/random/:id ?
|
||||
- id specified for random is currently undefined, but will be used to get a random from a list id/name
|
||||
|
||||
/list/:page
|
||||
- id specified for list is currently undefined, but will be used to get via list ids/names
|
||||
|
||||
---- new stuff to do with multiple lists:
|
||||
|
||||
lists {
|
||||
id: serial
|
||||
user_id: user this belongs to!
|
||||
parent_id: another list, optional
|
||||
name: when generated, make a slug, if slug is not unique, append a number and try again (incrementing number until a new unique slug is found)
|
||||
slug: based on name, uniqueness required (enforced behind the scenes by name, unless explicitly given (in which case, must meet constraints and not exist already))
|
||||
timestamp
|
||||
}
|
||||
|
||||
tasks -> {
|
||||
list_id: optional foreign key
|
||||
parent_id: optional foreign key (to a task!)
|
||||
}
|
||||
|
||||
|
||||
/new -> option to add list_id or parent_id or parent_content or list_name
|
||||
/edit -> option to add / remove same things
|
||||
/list -> option to only select from same things
|
||||
- deprecate /list and use /get for its options!
|
||||
/random -> option to only select from same things
|
||||
/get -> option to get from list / parent via id/content/name
|
||||
|
||||
/list/new/:name -> create a list
|
||||
/list/get/:nameORslugORid -> get a list
|
||||
/list/do/:nameORslugORid -> mark everything on a list done (alternately, lists themselves can have seperate done values!!)
|
||||
/list/undo/:nameORslugORid ->
|
||||
/list/edit/:nameORslugORid ->
|
||||
/list/delete/:nameORslugORid -> all tasks are deleted or are removed from list to either its parent, or no list (depending on options sent)
|
||||
|
||||
/list/parent -> get parent list
|
||||
/list/children -> get children lists
|
||||
|
||||
/parent -> get parent task
|
||||
/children -> get children tasks
|
||||
|
||||
|
||||
/list(/:id_or_slug)(/:page) --- ?
|
Loading…
Reference in New Issue
Block a user