diff options
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 |