Allow clients to determine the difference between create or update on PUT

PUT allows an object to be created (http 201).  This allows REST code to
indicate an object has been created and clients to react to it.

Plan on using this for some oauth / user level interactions in the future.
We're not doing that today - we should, but it's a larger change and may potentially affect naive clients what expect 200 on success.  We should do that as part of v1beta3.


> On Oct 28, 2014, at 2:12 AM, Daniel Smith <notifications@github.com> wrote:
> 
> In pkg/client/request_test.go:
> 
> > @@ -184,6 +185,9 @@ func TestDoRequestNewWayFile(t *testing.T) {
> >  	} else if !reflect.DeepEqual(obj, expectedObj) {
> >  		t.Errorf("Expected: %#v, got %#v", expectedObj, obj)
> >  	}
> > +	if wasCreated {
> > +		t.Errorf("expected object was not created")
> Confusing-- shouldn't this be true for POSTs?
> 
> —
> Reply to this email directly or view it on GitHub.