title: WP Rest API: return posts created by user
body: <p>I'm creating a web app that uses the Wordpress REST API. The CMS has several custom post type. The frontend itself is made in React. In the frontend, users are able to authenticate themselves.</p>
  <p>Within the web app, users are able to create a post. By default, I only want the rest api to return posts made by the authenticated user, but right now the api returns all the posts.</p>
  <p>How can I make sure the rest api only returns the posts made by the authenticated user?</p>