0

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?

  1. taking the date as long in the request parameter

  2. adding a request body and taking it as Date

thanks a lot

jolly
  • 46
  • 5

1 Answers1

0

Using message body for GET requests is not recommended. You can look at this detailed answer. So using request parameters is more preferable.