Skip to content

Commit 489b27a

Browse files
committed
Added curl command to Readme.txt
1 parent 227c2a1 commit 489b27a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

jax-rs-bean-validation/Readme.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ cd glassfish4/glassfish/bin
99
deploy jax-rs-beanvalidation.war
1010
./asadmin deploy <folder of sample>target/jax-rs-beanvalidation.war
1111

12-
You can try by using Advanced REST client or PostMan and sending data in the POST method
12+
You can try by using Advanced REST client or PostMan and sending data in the POST method
1313
<coffee>
1414
<type>Expresso</type>
1515
<size>XL</size>
1616
<name>Mocha1</name>
1717
<price>3.50</price>
1818
</coffee>
1919

20-
to the URL http://localhost:8080/jax-rs-bean-validation/v1/coffees
20+
Using curl to the URL http://localhost:8080/jax-rs-bean-validation/v1/coffees
21+
curl -X POST -d @test.xml http://localhost:8080/jax-rs-bean-validation/v1/coffees
22+
--header "Content-Type:application/xml"
2123

22-
or send a GET request to http://localhost:8080/jax-rs-bean-validation/v1/coffees/<order>
24+
25+
Send a GET request to http://localhost:8080/jax-rs-bean-validation/v1/coffees/<order>
2326
You will get a validation error incase there is no coffee with the order

0 commit comments

Comments
 (0)