title: GAE Endpoint, Objectify and Android - Where are my data being saved?
body: <p>I'm developing an app on Android, and I'm trying to save some data on the Google Cloud Datastore. I've implemented a Google App Engine Endpoint and set up Objectify on it, then I've deployed to the App Engine.</p>
  
  <p>Finally I've made up some AsyncTask in my android project to communicate with the API.</p>
  
  <p>The communication works, and no error message are displayed in my log, but when I do (in the App Engine Endpoint)</p>
  
  <pre><code>Car car = new Car("black","1200","2016");
  ofy().save().entity(car).now();
  </code></pre>
  
  <p>it is executed correctly but then I go to my Datastore console,and it doesn't have any entity in it.</p>
  
  <p>Same, if I do </p>
  
  <pre><code>List&lt;Car&gt; cars = ofy().load().type(Car.class).list();
  </code></pre>
  
  <p>I always get a null result.</p>
  
  <p><strong>So where are my data saved?</strong> </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Previously I have wrote the Objectify code in my Endpoint Api class (<code>MyEndpoint.java</code>) , now I'm trying to just rely on Android Endpoint Auto-generation, so I've created a new model (<code>@Entity</code>) and used "<em>Generate Cloud Endpoint from java class</em>" built in Android Studio, so now I have a new <code>CarEndpoint</code>. It contains <code>insert</code> and <code>list</code> api methods (and more). </p>
  
  <p>So from the app code, in the AsyncTask, I'm doing the following:</p>
  
  <pre><code>    Car car = new Car();
      car.setYear("2016");
      car.setCC("1200");
      car.setColor("black");
      try {
          carApi.insert(car).execute();
      } catch (IOException e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>It gets executed and no error are thrown. This is the log:</p>
  
  <pre><code> I/System.out: open:https://app-backend.appspot.com/_ah/api/carApi/v1/car
   I/System.out: [CDS]rx timeout:1
   I/System.out: [CDS]rx timeout:1
   I/System.out: [CDS]rx timeout:20000
   I/System.out: [CDS]rx timeout:20000
   I/System.out: [CDS]rx timeout:20000
   I/System.out: [CDS]rx timeout:20000
   I/System.out: [OkHttp] sendRequest&lt;&lt;
  </code></pre>
  
  <p>But again, in my Datastore console, no new objects are being created.</p>
  
  <p><strong>So again, where are my object being saved?</strong></p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>I've still not found where the data are saved, but after my update, I can now retrieve data using the <code>list</code> API method (autogenerated).</p>
  
  <p>To have a easy way to use your API method from a backend, you can use the <strong>APIs Explorer</strong> . You can access it using a browser at the address </p>
  
  <pre><code>https://app-backend.appspot.com/
  </code></pre>
  
  <p>and click on the top menu on the "GC Endpoint API Explorer" menu item.</p>
  
  <p>It seems like the data are stored internally at the API. Can I see them with the Google Datastore Console?</p>