summaryrefslogtreecommitdiff
path: root/test.http
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-01-23 09:33:26 -0800
committerBen Sima <ben@bsima.me>2018-01-23 09:33:26 -0800
commit0061b00e7f1f8cf614f96b8f8bf19700697fa4b9 (patch)
tree76588bb7af0d86c55b536d1e92372518a75c07bb /test.http
parent21c38acfb388f9141bada4b0e32d07dc580a344f (diff)
Index data and implement query functions
Everything is working now, just a bit slow/buggy i think
Diffstat (limited to 'test.http')
-rw-r--r--test.http19
1 files changed, 14 insertions, 5 deletions
diff --git a/test.http b/test.http
index 5425f9a..47ed098 100644
--- a/test.http
+++ b/test.http
@@ -12,16 +12,12 @@ User-Agent: Emacs
Content-Type: application/x-www-form-urlencoded
#
-# should return {results: [{ “name”: “Bob Barker”, “number”: “+15556789090”, “context”: “personal”}]}
-GET :host/query?number=%2B15556789090
-:headers
-
# should return all entries
GET :host/query
:headers
-# should return 200
+# store jenny's number
POST :host/number
:headers
{
@@ -29,3 +25,16 @@ POST :host/number
"number": "8675309",
"context": "Number on the wall"
}
+
+# store Bob's number
+POST :host/number
+:headers
+{ "name": "Bob Barker", "number": "+1555678909", "context": "personal"}
+
+# get jenny's number
+GET :host/query?number=8675309
+:headers
+
+# get bob's
+GET :host/query?number=%2B15556789090
+:headers