Labs/Bespin/ServerAPI: Difference between revisions

m
Line 30: Line 30:
* DELETE /file/at/[path] to delete a file. file must not be open by anyone.  
* DELETE /file/at/[path] to delete a file. file must not be open by anyone.  
* POST /file/close/[path] to mark the file closed. The server will discard your edit history.  
* POST /file/close/[path] to mark the file closed. The server will discard your edit history.  
* GET /file/listopen/ to list open files for the current user. a JSON dictionary of <tt>{ project: { filename: mode } }</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>


== Projects ==
== Projects ==
canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,093

edits