Joe Ceresini 6deaa35aab Adding python version, super basic flask app, only functions as echo server at this point | 7 years ago | |
---|---|---|
python | 7 years ago | |
README.md | 7 years ago | |
contains_all_chars.sh | 7 years ago |
Some tests building a simple API that determines whether an input string contains every lower-case character in the latin alphabet
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}