Difference between revisions of "Some sess doc stuff"

From Fernseher
Jump to navigationJump to search
Line 1: Line 1:
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
*Load


sessdocget ''id''[/''rev''] > ''entity'' ""=''httprc''
sessdocget ''id''[/''rev''] > ''entity'' ::=''httprc''


sessdocget ''id''[/''rev''] --nohead > ''body'' ::=''httprc''
sessdocget ''id''[/''rev''] --nohead > ''body'' ::=''httprc''


sessdochead ''id''[/''rev''] < ''head'' ::=''httprc''
sessdochead ''id''[/''rev''] > ''head'' ::=''httprc''


*Store (author, if not specified, will be ~/.sessdoc[AUTHOR], or userid on localhost)
*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'' [--author=''author''] ::=''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''

Revision as of 15:29, 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