Added child_enpoints_model example.

As per https://github.com/GoogleCloudPlatform/endpoints-proto-datastore/issues/110#issuecomment-60832527 I have added the example for simple parent child relationship.
RE: Also, you should point out that id is not in the default schema for
MyModel
Not sure I understand.

On Tue Oct 28 2014 at 6:47:34 PM Danny Hermes <notifications@github.com>
wrote:

> In examples/child_endpoints_model/main.py:
>
> > +  # This method is not defined in any of the previous examples; it allows a
> > +  # parent entity to be inserted so that it can be used as an ancestor. Since
> > +  # the ProtoRPC message schema for MyParent is a single field "name", this will
> > +  # be all that is contained in the request and the response.
> > +  @MyParent.method(path='myparent', http_method='POST',
> > +                   name='myparent.insert')
> > +  def MyParentInsert(self, my_parent):
> > +    # Though we don't actively change the model passed in, the value of updated
> > +    # is set to the current time.
> > +    my_parent.put()
> > +    return my_parent
> > +
> > +  # Since we require MyModel instances also have a MyParent ancestor, we include
> > +  # "parent" in the request path by setting path='mymodel/{parent}'.
> > +  # Unlike in keys_with_ancestors/main.py, we want NDS to generate id
> > +  # and so we do not include it in request body.
>
> What is NDS?
>
> Also, you should point out that id is not in the default schema for
> MyModel. The phrase "we do not include it in request body" is a bit
> unclear.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/endpoints-proto-datastore/pull/112/files#r19516213>
> .
>