Skip to content

Commit e5c9448

Browse files
committed
Minor change to Readme.txt
1 parent 9e3baa5 commit e5c9448

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

jax-rs-bean-validation/Readme.txt

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

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>
1719

18-
There was 1 error when validating the request
20+
to the URL http://localhost:8080/jax-rs-bean-validation/v1/coffees
1921

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

0 commit comments

Comments
 (0)