Search code examples
androidjsongoogle-app-enginegoogle-cloud-datastorerestful-architecture

send data through URI datastore


I'm using restful to send my data with HTTP GET POST etc. I want to use the data store on Google App Engine. Can someone explain where is URI located for the data store on Google App Engine so I can send data to it?


Solution

  • Assuming you're developing in Java you should take a look at the most popular library which is Objectify

    Objectify is a Java data access API specifically designed for the Google App Engine datastore. It occupies a "middle ground"; easier to use and more transparent than JDO or JPA, but significantly more convenient than the Low-Level API. Objectify is designed to make novices immediately productive yet also expose the full power of the GAE datastore. Objectify lets you persist, retrieve, delete, and query your own typed objects.

    Sample entity:

    @Entity
    class Car {
        @Id String vin; // Can be Long, long, or String
        String color;
    }
    

    How to create and save entity to datastore:

    ofy().save().entity(new Car("123123", "red")).now();