-
Notifications
You must be signed in to change notification settings - Fork 13
Paths
Alanna Scott edited this page Nov 28, 2018
·
3 revisions
Each page (or most of them, anyway) should support access as html, html fragment, JSON, XML, or CSV. All text in each page template must be localized values.
NOTE: Depending on the current state of refactoring, not all of these may be implemented yet.
-
?query=[search terms]for full text search -
?page=[pageno]for pagination of search results -
?display=[list | grid]layout of search results -
?type=[all | cases | methods | tools | organizations | resources | news | users]filter, only returns selected type -
returns=[null | map]return search results for display or for map -
returns=[json | csv | xml | html | htmlfrag]to get back different formats from the API
-
/Homepage and search results.
Static pages include about, teaching, experiments, research, legal, and possibly admin.
/[page]/[page]/edit/[page]/localize/[page]/edit-localize
Articles are all the database thing types: cases, methods, teaching tools, users, organizations, news, etc.
-
/[thingtype]/[id]View article -
/[thingtype]/[id]/editEdit article -
/[thingtype]/[id]/localize?[from=en;]to=esLocalize article -
/[thingtype]/localize?[from=en;]to=esLocalize edit template -
/profileredirects to/users/[id]for the current user's id if they are logged in
-
/casesdeprecated search filter, replace with/?type=cases -
/methodsdeprecated search filter, replace with?type=methods -
/organizationsdeprecated search filter, replace with `?type=organizations'