webapi.txt: document POST /uri?t=mkdir

This commit is contained in:
Brian Warner 2008-02-07 20:10:28 -07:00
parent 3bd79917b2
commit 7dcb4ee62b
1 changed files with 29 additions and 6 deletions

View File

@ -208,6 +208,29 @@ g. creating a new directory
drive, but you can use section 1.h. to attach it, or the convenience method
in section 2.XXX.
POST http://localhost:8123/uri?t=mkdir
in: (nothing)
out: directory write cap
Just like the equivalent PUT form, but this can be called from an HTML
form.
POST http://localhost:8123/uri?t=mkdir&redirect_to_result=true
in: (nothing)
out: redirects to the /uri/$NEWDIRURI page
This also creates an unlinked directory, but instead of returning the URI
as a string, this form will return an HTTP Redirect that takes you to the
new directory's HTML page, just as if you had directed your browser to
/uri/$NEWDIRURI . If you bookmark this page, you'll be able to get back to
the directory again in the future.
This method is the recommended way to create a new root directory. There
is a "Create Directory" button on the Welcome page to invoke this action.
h. attaching a file or directory as the child of an extant directory
PUT $URL?t=uri