Difference between revisions of "Some sess doc stuff"
Line 11: | Line 11: | ||
*Store | *Store | ||
sessdocput ''id''[/''rev''] < ''entity'' ::=''httprc'' | sessdocput ''id''[/''rev''] < ''entity'' ::=''httprc'' (* headers required: Content-type, Content-title, potentially From: (if From not specified, ~/.sessdoc[AUTHOR] or $USER is used)) | ||
sessdocput ''id''[/''rev''] --type=''content-type'' --title=''content-title'' [--author=''author''] < ''body'' ::=''httprc'' | sessdocput ''id''[/''rev''] --type=''content-type'' --title=''content-title'' [--author=''author''] < ''body'' ::=''httprc'' | ||
sessdocbranch ''id''[/''rev''] ''new-id'' < ''head'' ::=''httprc'' | sessdocbranch ''id''[/''rev''] ''new-id'' < ''head'' ::=''httprc'' (* headers required: Content-title, potentially From: (if From not specified, ~/.sessdoc[AUTHOR] or $USER is used)) | ||
sessdocbranch ''id''[/''rev''] ''new-id'' --title=''content-title'' [--author=''author''] ::=''httprc'' | sessdocbranch ''id''[/''rev''] ''new-id'' --title=''content-title'' [--author=''author''] ::=''httprc'' |
Revision as of 15:30, 5 November 2009
For all of these, the search order for the database URL is: ~/.sessdoc[REPO] etc-root/etc/sessdoc.conf http://www.sessrumnir.net/doc
- Load
sessdocget id[/rev] > entity ::=httprc
sessdocget id[/rev] --nohead > body ::=httprc
sessdochead id[/rev] > head ::=httprc
- Store
sessdocput id[/rev] < entity ::=httprc (* headers required: Content-type, Content-title, potentially From: (if From not specified, ~/.sessdoc[AUTHOR] or $USER is used))
sessdocput id[/rev] --type=content-type --title=content-title [--author=author] < body ::=httprc
sessdocbranch id[/rev] new-id < head ::=httprc (* headers required: Content-title, potentially From: (if From not specified, ~/.sessdoc[AUTHOR] or $USER is used))
sessdocbranch id[/rev] new-id --title=content-title [--author=author] ::=httprc