I am coding a REST API with php. I want the URI to be .../product/{id} but to get returned a specific "product". -I need to type in ..../product/read_one.php?product_id=7 - read_one is the php file
-I type the URIs in Postman.
How can I change it to .../product/7?
I am confused whether I can even use an .httaccess file or if I have to change up/create a new php file. I haven't found any tips on the internet either.