Test Plan » History » Version 2
« Previous -
Version 2/3
(diff) -
Next » -
Current version
Luke Murphey, 07/06/2017 06:05 PM
Test Plan¶
- Input accepts JSON data
- curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST http://localhost/data
- Input doesn't error on bad data
- curl -d '{"key1' -H "Content-Type: application/json" -X POST http://localhost/data
- Input handles plain text:
- curl -d 'Plan text' -H "Content-Type: text/plain" -X POST http://localhost/data
- Input accepts hierarchical data and flattens it
- curl -d '{"key1": {"keyA":"A"}, "key2":["value2", "value3"]}' -H "Content-Type: application/json" -X POST http://localhost/data