summaryrefslogtreecommitdiff
path: root/test.http
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-01-22 22:09:31 -0800
committerBen Sima <ben@bsima.me>2018-01-22 22:09:31 -0800
commit273a70e84ba78e1638027be806e06e233d44e0c1 (patch)
tree6768b6eb334451466417a18a83bb3de952a43319 /test.http
Init basic functionality
Diffstat (limited to 'test.http')
-rw-r--r--test.http26
1 files changed, 26 insertions, 0 deletions
diff --git a/test.http b/test.http
new file mode 100644
index 0000000..5827247
--- /dev/null
+++ b/test.http
@@ -0,0 +1,26 @@
+# -*- restclient -*-
+#
+# see https://github.com/pashky/restclient.el
+
+:host := "http://127.0.0.1:3000"
+:headers = <<
+Accept: application/json
+User-Agent: Emacs
+#
+
+:form = <<
+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 200
+POST :host/number
+:headers
+{
+ "name": "Jenny",
+ "number": "8675309",
+ "context": "Number on the wall"
+}