From 0061b00e7f1f8cf614f96b8f8bf19700697fa4b9 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 23 Jan 2018 09:33:26 -0800 Subject: Index data and implement query functions Everything is working now, just a bit slow/buggy i think --- test.http | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'test.http') 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 -- cgit v1.2.3