diff options
author | Ben Sima <ben@bsima.me> | 2018-01-23 09:33:26 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-01-23 09:33:26 -0800 |
commit | 0061b00e7f1f8cf614f96b8f8bf19700697fa4b9 (patch) | |
tree | 76588bb7af0d86c55b536d1e92372518a75c07bb /test.http | |
parent | 21c38acfb388f9141bada4b0e32d07dc580a344f (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.http | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -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 |