WordPress REST Api get posts by ID

Hi I’m building up a WordPress rest API’s custom endpoint on my project. I’m using the following code to get the single response from the website.

I’m not getting the post with the posts/ in my response. Kindly advise what I’m doing wrong here?

Here’s my response:

The id of response->ID should be same as posts/. It’s not.