From 1963857037e276f8009132ccd7d5cd40affe6ded Mon Sep 17 00:00:00 2001 From: Jim Blake Date: Wed, 17 Jun 2015 17:32:55 -0400 Subject: [PATCH] Update README.md --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index b88fcde..0c8e65f 100644 --- a/README.md +++ b/README.md @@ -80,3 +80,29 @@ vivosnap re-compare [differences_directory] [expected_changes_file] [new_differe ``` Re-compare just the differences between two snapshots, presumably with a different list of expected changes. The original snapshot directories must still exist, because the differences directory will reference them. + +## Data structure details + +### Session list +Here is a silly pseudo-syntax. URLs are all relative to the VIVO home page. +``` +line ⇔ session +session ⇔ [login ==> ] request [ ==> request ]* +login ⇔ LOGIN email pass +request ⇔ url [method | header | parameter]* +method ⇔ GET | POST +header ⇔ key(value) +parameter ⇔ key=value +value ⇔ must be in single quotes if contains space +``` + +#### Examples +* A simple URL + + display/cwid-cim9006 +* A POST request with parameters + + admin/developerAjax POST Accept(text/plain) query='this and that' +* A simple request from a logged in user + + LOGIN tadmin@mydomain.edu Password ==> display/cwid-cim9006