Dear All,
1. I am using dropwizard version 0.6.2 , while applying @valid in my rest
request it is not returning error response in json format instead it is
returning error in html format though I have mentioned as below. I am
wondering because when request process successfully it returns the success
response in json format correctly.
@Post
@Path("/mypath")
@Consume(MediaType.APPLICATION_JSON)
@Produce(MediaType.APPLICATION_JSON
public Response createMsg(@Valid RestRequest request){ ......}
2. Is there any way where I get all the bad request errors on missing
required fields in one go and it displays all the validation messages for
respective fields one by one in new lines in response?
Best Regards,
Ram Shukla
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dropwizard-user/d9e528d7-7464-40fe-a6ea-d2d8155682b9o%40googlegroups.com.