@HandstandSam
#DCNYC17
Programmatic Stubbing via REST API
curl --verbose \
-X POST \
--data '{
"request": {
"method": "GET",
"urlPath": "/hello"
},
"response": {
"status": 200,
"body": "Hello world!",
"headers": {
"Content-Type": "text/plain"
}
}
}' \
'http://localhost:8080/__admin/mappings'