Re: Updated TO API guidelines

2018-04-12 Thread Jeremy Mitchell
t; > >> >> > While we're on the subject, what does everyone think if we took > this > >> one > >> >> > step further and made routes handle a request payload with one or > more > >> >> > items. For example: > >> >>

Re: Updated TO API guidelines

2018-04-09 Thread Rawlin Peters
os to create >> >> > PUT /foos <-- takes in an array of foos to update >> >> > DELETE /foos <-- takes in an array of foos to delete >> >> > >> >> > in this scenario, query params only pertain to the GET. The POST, PUT >> and >> >> > DELETE rely on the contents of the request json... >> >> > >> >> > Jeremy >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > On Wed, Apr 4, 2018 at 1:55 PM, Robert Butts < >> robert.o.bu...@gmail.com> >> >> > wrote: >> >> > >> >> >> That document doesn't mention versions, 1.2 vs 1.3 vs 2.0. >> >> >> >> >> >> Just to clarify, changing to query parameters breaks compatibility >> with >> >> 1.2 >> >> >> and older, so new APIs in that format have to be a new major version, >> >> i.e. >> >> >> 2.0, per Semantic Versioning, right? >> >> >> >> >> >> On Tue, Apr 3, 2018 at 3:26 PM, Jeremy Mitchell < >> mitchell...@apache.org >> >> > >> >> >> wrote: >> >> >> >> >> >>> FYI - I've updated the TO API guidelines to reflect our desire to >> move >> >> >> away >> >> >>> from route/path params and embrace query params in the Golang API. >> >> >>> >> >> >>> https://cwiki.apache.org/confluence/display/TC/API+Guidelines >> >> >>> >> >> >>> Jeremy >> >> >>> >> >> >> >> >> >> >> >>

Re: Updated TO API guidelines

2018-04-09 Thread Dave Neuman
an array of foos to create > > >> > PUT /foos <-- takes in an array of foos to update > > >> > DELETE /foos <-- takes in an array of foos to delete > > >> > > > >> > in this scenario, query params only pertain to the GET. The POST, > PUT > > and > > >> > DELETE rely on the contents of the request json... > > >> > > > >> > Jeremy > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > On Wed, Apr 4, 2018 at 1:55 PM, Robert Butts < > > robert.o.bu...@gmail.com> > > >> > wrote: > > >> > > > >> >> That document doesn't mention versions, 1.2 vs 1.3 vs 2.0. > > >> >> > > >> >> Just to clarify, changing to query parameters breaks compatibility > > with > > >> 1.2 > > >> >> and older, so new APIs in that format have to be a new major > version, > > >> i.e. > > >> >> 2.0, per Semantic Versioning, right? > > >> >> > > >> >> On Tue, Apr 3, 2018 at 3:26 PM, Jeremy Mitchell < > > mitchell...@apache.org > > >> > > > >> >> wrote: > > >> >> > > >> >>> FYI - I've updated the TO API guidelines to reflect our desire to > > move > > >> >> away > > >> >>> from route/path params and embrace query params in the Golang API. > > >> >>> > > >> >>> https://cwiki.apache.org/confluence/display/TC/API+Guidelines > > >> >>> > > >> >>> Jeremy > > >> >>> > > >> >> > > >> > > >> > > >

Re: Updated TO API guidelines

2018-04-06 Thread Rawlin Peters
gt; > >> > in this scenario, query params only pertain to the GET. The POST, PUT and >> > DELETE rely on the contents of the request json... >> > >> > Jeremy >> > >> > >> > >> > >> > >> > >> > &g

Re: Updated TO API guidelines

2018-04-05 Thread Dewayne Richardson
gt; > > > > > > > > > > On Wed, Apr 4, 2018 at 1:55 PM, Robert Butts <robert.o.bu...@gmail.com> > > wrote: > > > >> That document doesn't mention versions, 1.2 vs 1.3 vs 2.0. > >> > >> Just to clarify, changing to query parameters

Re: Updated TO API guidelines

2018-04-05 Thread Robert Butts
<-- takes in an array of foos to delete > > > > > > in this scenario, query params only pertain to the GET. The POST, PUT > and > > > DELETE rely on the contents of the request json... > > > > > > Jeremy > > > > > > > > > > &

Re: Updated TO API guidelines

2018-04-05 Thread Jeremy Mitchell
he request json... > > > > Jeremy > > > > > > > > > > > > > > > > > > > > > > > > On Wed, Apr 4, 2018 at 1:55 PM, Robert Butts <robert.o.bu...@gmail.com> > > wrote: > > > >> That docum

Re: Updated TO API guidelines

2018-04-04 Thread John Rushford
ent doesn't mention versions, 1.2 vs 1.3 vs 2.0. >> >> Just to clarify, changing to query parameters breaks compatibility with 1.2 >> and older, so new APIs in that format have to be a new major version, i.e. >> 2.0, per Semantic Versioning, right? >> >> On Tue,

Re: Updated TO API guidelines

2018-04-04 Thread Robert Butts
akes in an array of foos to update >> > DELETE /foos <-- takes in an array of foos to delete >> > >> > in this scenario, query params only pertain to the GET. The POST, >> PUT and >> > DELETE rely on the contents of the request json.

Re: Updated TO API guidelines

2018-04-04 Thread Robert Butts
> > wrote: > > > > > That document doesn't mention versions, 1.2 vs 1.3 vs 2.0. > > > > > > Just to clarify, changing to query parameters breaks compatibility > with > > 1.2 > > > and older, so new APIs in that format have to be a new major > version, > > i.e. > > > 2.0, per Semantic Versioning, right? > > > > > > On Tue, Apr 3, 2018 at 3:26 PM, Jeremy Mitchell < > mitchell...@apache.org> > > > wrote: > > > > > > > FYI - I've updated the TO API guidelines to reflect our desire > to move > > > away > > > > from route/path params and embrace query params in the Golang > API. > > > > > > > > https://cwiki.apache.org/confluence/display/TC/API+Guidelines > > > > > > > > Jeremy > > > > > > > > > > > >

Re: Updated TO API guidelines

2018-04-04 Thread Robert Butts
rmat have to be a new major version, > i.e. > > 2.0, per Semantic Versioning, right? > > > > On Tue, Apr 3, 2018 at 3:26 PM, Jeremy Mitchell <mitchell...@apache.org> > > wrote: > > > > > FYI - I've updated the TO API guidelines to reflect our desire to move > > away > > > from route/path params and embrace query params in the Golang API. > > > > > > https://cwiki.apache.org/confluence/display/TC/API+Guidelines > > > > > > Jeremy > > > > > >

Re: Updated TO API guidelines

2018-04-04 Thread Jeremy Mitchell
query parameters breaks compatibility with 1.2 > and older, so new APIs in that format have to be a new major version, i.e. > 2.0, per Semantic Versioning, right? > > On Tue, Apr 3, 2018 at 3:26 PM, Jeremy Mitchell <mitchell...@apache.org> > wrote: > > > FYI - I've updat

Re: Updated TO API guidelines

2018-04-04 Thread Robert Butts
<mitchell...@apache.org> wrote: > FYI - I've updated the TO API guidelines to reflect our desire to move away > from route/path params and embrace query params in the Golang API. > > https://cwiki.apache.org/confluence/display/TC/API+Guidelines > > Jeremy >

Updated TO API guidelines

2018-04-03 Thread Jeremy Mitchell
FYI - I've updated the TO API guidelines to reflect our desire to move away from route/path params and embrace query params in the Golang API. https://cwiki.apache.org/confluence/display/TC/API+Guidelines Jeremy