README 810 B

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