I implemented a simple rest GET service and I want to modify the ulr for that Service.
The url now is: http://localhost:8011/types/id?date=2019-07-30T11:35:42
And I want to add a filter and to add in the date some brackets [ ],
like this: http://localhost:8011/types/id?filter[ date ]=2019-07-30T11:35:42
Here is my Get service, in the values i have the "types/id" but I don't know how to add filter and brackets for the requested params.
@RequestMapping(value = "types/id", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public ResponseEntity<?> getTicketids( @RequestParam(required = false) String date)
{
...
}
I would appreciate any suggestion on what I could change or what I should read.