1

I want to pass a float parameter to an api using GET.

The URL should look like /api/controller/action/1.25

But I get an error because of the dot.

The API end point is in PHP and I call the URL from ReactJS.

Apart from replacing . with another character on both ends or using POST, is there any recommended solution to achieve that using GET?

Thanks, Harris

Eristikos
  • 485
  • 4
  • 9
  • 24

0 Answers0