[katello-devel] changeset API breakage
Tomas Strachota
tstrachota at redhat.com
Tue Dec 6 17:49:13 UTC 2011
On 12/06/2011 04:43 PM, Jeff Weiss wrote:
> My automation uses API to create changesets and promote them- which
> suddenly broke after Tomas's merge
>
> http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/katello-unit/2063/changes
>
> The error I get now is:
>
> Started PUT "/katello//api/changesets/1" for 10.16.120.31 at Tue Dec 06
> 09:00:41 -0500 2011
> Processing by ErrorsController#routing as JSON
> Parameters: {"a"=>"api/changesets/1", "patch"=>{"+repos"=>nil,
> "+errata"=>nil, "+templates"=>nil, "+packages"=>nil,
> "+products"=>["templateProduct-1323180038641",
> "templateProduct-1323180038642", "templateProduct-1323180038643"]}}
> Completed 404 Not Found in 2ms
>
> Is this a bug or did the API change?
>
> Jeff
>
It's API change. Sorry for not announcing earlier!
The api has been changed to use more RESTy way of updating content.
Similar to templates, there's new changesets_content controller. I added
new routes to this brief API guide [1]. I'll try to put more complete
documentation somewhere as this list of routes does not say much without
browsing the controller code.
Tomas
[1] https://fedorahosted.org/katello/wiki/APIGuide
More information about the katello-devel
mailing list