I'm busy understanding how the WP REST API works in combination with React. Checking the WP REST API documentation confuses me a bit.
Here, for example, it appears that you have to specify the ID of a contribution in the query in order to retrieve the contribution. Can't we use a variable for this? If so, how could this be done? And how can we ensure that we automatically retrieve the comments below for each post?
I mean that gets all the comments:
But I can't combine that with the contributions. How do we relate them to each other?
Would mean that you get the categories of posts with ID = 33, but how can we do this generically? To like
https://example.com/wp-json/wp/v2/posts?categories=$GET_POST_ID or so?