Here is the command to test the REST from curl
curl -i -H "Content-Type: application/json" -X POST -d '{"firstName": "Harish"} ' http://ussumsdsoaapp04:7001/hellorest/
If you need to pass the request payload from a file then use @filenamme
curl -i -H "Content-Type: application/json" -X POST -d @hello.json http://ussumsdsoaapp04:7001/hellorest/
Content of hello.json
{"firstName": "Harish"}
No comments:
Post a Comment