浏览代码

Adding readme with minimal details about bash version

Joe Ceresini 7 年之前
父节点
当前提交
6d618239be
共有 1 个文件被更改,包括 23 次插入0 次删除
  1. 23 0
      README

+ 23 - 0
README

@@ -0,0 +1,23 @@
+Some tests building a simple API that determines whether an input string contains every lower-case character in the latin alphabet
+
+# Bash version
+
+Sample output
+
+'''
+# Sample string with all alphabet characters
+[jceresini@slartibartfast ~]$ curl -X POST -d 'The quick brown fox jumps over the lazy dog' http://test.ceresini.com/contains_all_chars.sh
+
+{"error": null, "result": true}
+
+# Sample string that doesn't contain all alphabet characters
+[jceresini@slartibartfast ~]$ curl -X POST -d 'This string does not contain many letters of the alphabet' http://test.ceresini.com/contains_all_chars.sh
+
+{"error": null, "result": false}
+
+# Hitting API endpoint with GET method
+[jceresini@slartibartfast ~]$ curl http://test.ceresini.com/contains_all_chars.sh
+
+{"error": "Invalid http method", "result": null}
+'''
+