REST API URL parameters not working with apache server

You’re using the wrong endpoint. Look at the documentation. id is not one of the parameters for the posts endpoint.

The correct way to retrieve a post with the ID of 1 is:

/wp-json/wp/v2/posts/1

tech