Hi Milen,
First, you don't need the WP Rest API plugin anymore. The Rest API was merged into WordPress core, so you can just use REST API directly.
Second, I see you're using WP_Query
to get posts, which is not the way REST API works. Please follow the documentation on using it.