When, if ever, would be a good time to establish a documented API contract
for the body of GET json payloads?
A change was made recently[1] that broke a script[2] of mine. As a user, it
can be a difficult thing debugging why a script stopped working between
releases. Having a document defining the API json results and its migration
between releases (katello-3.0 to katello-3.1 presumably) would be a helpful
first reference.
Is this something we, developers, can begin to form a process and agreement
around?
[1]
This was part of needed performance improvements.
[2]
To be fair, this is not really a script but hammer-cli-csv is not in
any testing pipeline. It breaks very, very often since it relies on the API
and its json results. I think it is representative of an advanced customer
(ie. $$) script, though.
Probably a pretty big undertaking to test. Maybe record calls to VCR and
then diff? Are there tools to flag differences?
ยทยทยท
On Fri, May 20, 2016 at 4:11 AM, Tom McKay wrote:
When, if ever, would be a good time to establish a documented API contract
for the body of GET json payloads?
A change was made recently[1] that broke a script[2] of mine. As a user,
it can be a difficult thing debugging why a script stopped working between
releases. Having a document defining the API json results and its migration
between releases (katello-3.0 to katello-3.1 presumably) would be a helpful
first reference.
Is this something we, developers, can begin to form a process and
agreement around?