1
In ASPNET MVC, we have the following code snippet that sends information through queryString and is received in an endpoint which has a parameter of type Dtorequest and through the attribute [Fromuri] is made the auto-Inding for the properties
[HttpGet]
[Route("search")]
public Task<HttpResponseMessage> Search([FromUri] DTORequest request)
{
var result= _MyService.Search(request);
return base.CreateSimpleResponse(HttpStatusCode.OK, result);
}
There is something equivalent in Java with Spring MVC for the same purpose ?
@GetMapping("search")
public ResponseEntity<?> Search(@FromUri DTORequest request)
{
var result= _MyService.Search(request);
return base.CreateSimpleResponse(HttpStatusCode.OK, result);
}
Top !! thanks @Matthew...worked out brother
– Adelson Silva