Im having a doubt. I have a get request and i have to take a Date in a RESTful api which of this two is the best practice?
taking the date as long in the request parameter
adding a request body and taking it as Date
thanks a lot
Im having a doubt. I have a get request and i have to take a Date in a RESTful api which of this two is the best practice?
taking the date as long in the request parameter
adding a request body and taking it as Date
thanks a lot
Using message body for GET requests is not recommended. You can look at this detailed answer. So using request parameters is more preferable.