File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,18 @@ cd glassfish4/glassfish/bin
9
9
deploy jax-rs-beanvalidation.war
10
10
./asadmin deploy <folder of sample>target/jax-rs-beanvalidation.war
11
11
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
13
13
<coffee>
14
14
<type>Expresso</type>
15
15
<size>XL</size>
16
16
<name>Mocha1</name>
17
17
<price>3.50</price>
18
18
</coffee>
19
19
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"
21
23
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>
23
26
You will get a validation error incase there is no coffee with the order
You can’t perform that action at this time.
0 commit comments