File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,15 @@ 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
- To run go to browser and type
13
- http://localhost:8080/jax-rs-bean-validation/TestServlet
14
-
15
- You will see
16
- "Here is the status of the response 500
12
+ You can try by using Advanced REST client or PostMan and sending data in the POST method
13
+ <coffee>
14
+ <type>Expresso</type>
15
+ <size>XL</size>
16
+ <name>Mocha1</name>
17
+ <price>3.50</price>
18
+ </coffee>
17
19
18
- There was 1 error when validating the request
20
+ to the URL http://localhost:8080/jax-rs-bean-validation/v1/coffees
19
21
20
- The following validation error was thrown: Book does not exist for the isbn requested"
22
+ or send a GET request to http://localhost:8080/jax-rs-bean-validation/v1/coffees/<order>
23
+ 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