canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,093
edits
No edit summary |
(→Files) |
||
Line 32: | Line 32: | ||
* GET /file/listopen/ to list open files for the current user. a JSON dictionary of <tt>{ project: { name: filename, mode: r|rw } }</tt> will be returned. For example, if subdir1/subdir2/test.py is open read/write, openfiles will return <tt>{ "subdir1": { name: "somedir2/test.py", mode: "rw" } }</tt> | * GET /file/listopen/ to list open files for the current user. a JSON dictionary of <tt>{ project: { name: filename, mode: r|rw } }</tt> will be returned. For example, if subdir1/subdir2/test.py is open read/write, openfiles will return <tt>{ "subdir1": { name: "somedir2/test.py", mode: "rw" } }</tt> | ||
* GET /preview/at/[path] to retrieve file contents for previewing. The raw file is served up with an appropriate content type, so the browser should be able to view it. Relative links will also work. | * GET /preview/at/[path] to retrieve file contents for previewing. The raw file is served up with an appropriate content type, so the browser should be able to view it. Relative links will also work. | ||
* GET /file/search/[project]?q=[search] runs a search on the filenames in the project. Returns a JSON list of filenames, already sorted in a useful order. | |||
== Projects == | == Projects == |