[katello-devel] Api v2 merged to master

Tomas Strachota tstrachota at redhat.com
Thu May 2 09:57:03 UTC 2013


On 05/01/2013 01:01 PM, Tom McKay wrote:
>
>
> ----- Original Message -----
>> From: "Tomas Strachota" <tstrachota at redhat.com>
>> To: katello-devel at redhat.com
>> Sent: Tuesday, April 30, 2013 3:27:42 PM
>> Subject: [katello-devel] Api v2 merged to master
>>
>> Hi all,
>>
>> api v2 has been merged to master with all its cleanups and standardization.
>> V1 still remains default so ideally this merge does not affect current
>> functionality at all.
>>
>> I'll make a demo about the changes at the end of the week.
>>
>> Regards
>> Tomas
>>
>
> When working on the API, should I be double-editing into both v1 and v2? Which will the python and CLI go against?
>

CLI still runs against v1. I think the best approach is to create v1 
controllers in line with the rules set in v2. Then v2 controller can be 
only inherited class + rabl templates (Eg. as in [1]). Not much extra work.

T.

[1] 
https://github.com/Katello/katello/blob/master/app/controllers/api/v2/environments_controller.rb




More information about the katello-devel mailing list