summaryrefslogtreecommitdiff
path: root/truly.co/test.http
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-02-23 15:46:48 -0800
committerBen Sima <ben@bsima.me>2018-02-23 15:46:48 -0800
commit965f84249fe1e9dc72f8b38c21ab6a4f3c08f494 (patch)
tree1c4026e62a1ba528257752315f25129cb971f8a1 /truly.co/test.http
parent60e62ee05f75d0b76a4d5668b3b21b9f33fd4cf9 (diff)
Re-organize
Diffstat (limited to 'truly.co/test.http')
-rw-r--r--truly.co/test.http38
1 files changed, 38 insertions, 0 deletions
diff --git a/truly.co/test.http b/truly.co/test.http
new file mode 100644
index 0000000..e61e3db
--- /dev/null
+++ b/truly.co/test.http
@@ -0,0 +1,38 @@
+# -*- restclient -*-
+#
+# see https://github.com/pashky/restclient.el
+
+:host := "http://127.0.0.1:3000"
+:headers = <<
+Accept: application/json
+User-Agent: Emacs
+#
+
+# Initialize the database with exmaple data
+POST :host/bootstrap
+:headers
+
+# should return 20 entries
+GET :host/query
+:headers
+
+# get the total number of records
+GET :host/count
+:headers
+
+# store jenny's number
+POST :host/number
+:headers
+{
+ "name": "Jenny",
+ "number": "8675309",
+ "context": "Number on the wall"
+}
+
+# get jenny's number
+GET :host/query?number=8675309
+:headers
+
+# get Nowlin Saul's zendesk number
+GET :host/query?number=%2B13058224036
+:headers