title: Wordpress API REST format JSON, GET Featured Image with 1 call
body: <p>I´m doing a APP in Android using the API REST to get data from my wordpress page. I want to see the image, the title and the description of the post in my app.</p>
  
  <p>Wordpress return the media with this format:</p>
  
  <pre><code>"author": 5,
  "featured_media": 1836,
  "comment_status": "open",
  "ping_status": "open",
  "sticky": false,
  "format": "standard",
  "meta":
  </code></pre>
  
  <p>The GET service only give me the media id and I want the source url. I have to call to "PAGEURL/wp-json/wp/v2/media/IDMEDIA" to get the source url. This is too inefficient and too low. How could I get the source url with 1 call to GET service? I try to edit the plugin but it isn´t work.</p>
  
  <p>This is the function to get the data from Wordpress</p>
  
  <pre><code>public class FeedTask extends AsyncTask&lt;String, Void, ArrayList&lt;JSONArray&gt;&gt;{
  
      private OnFeedListener listener;
  
      public FeedTask(OnFeedListener listener){
          this.listener=listener;
      }
  
      @Override
      protected ArrayList&lt;JSONArray&gt; doInBackground(String... params) {
          ArrayList&lt;JSONArray&gt; arrays=new ArrayList&lt;&gt;();
          String url=params[0];
          OkHttpClient client=new OkHttpClient();
          Request.Builder builder=new Request.Builder();
          Request request=builder.url(url).build();
          try {
              Response response=client.newCall(request).execute();
              String json=response.body().string();
             try{
                 JSONArray array= new JSONArray(json);
                 //Array de Imágenes
                 JSONArray arrayImages=new JSONArray();
                 for(int i=0; i&lt;array.length(); i++) {
                     String urlImage=("http://PAGEURL/wp-json/wp/v2/media/")+array.optJSONObject(i).optString("featured_media");
                     request=builder.url(urlImage).build();
                     response=client.newCall(request).execute();
                     json=response.body().string();
                     arrayImages.put(new JSONObject(json));
                 }
                 arrays.add(array);
                 arrays.add(arrayImages);
                 return arrays;
              } catch (JSONException e) {
                  e.printStackTrace();
              }
          } catch (IOException e) {
              e.printStackTrace();
          }
          return null;
      }
  
      @Override
      protected void onPostExecute(ArrayList&lt;JSONArray&gt; array) {
          super.onPostExecute(array);
          if(array==null){
              return;
          }
          if(listener!=null){
              listener.onFeed(array);
          }
      }
  }
  </code></pre>