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 'Plain 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