title: WP REST API How to upload featured image?
body: <p>I'm using the WP REST API plugin V2 (<a href="http://wp-api.org/" rel="noreferrer">http://wp-api.org/</a>).</p>
  
  <p>Can the API upload a featured image and generate the related meta data?</p>
  
  <p>I know I can upload an image attachment (POST /wp-json/wp/v2/media) and then update the related article (PUT /wp-json/wp/v2/posts/ID) and make its "featured_image" key point to the attachment id.</p>
  
  <p>But is this the right way to do this?</p>
  
  <p>Is it possible to generate different (resized) versions of the featured image after upload, or does this require a custom endpoint?  </p>