[katello-devel] Foreman api work

Tomas Strachota tstrachota at redhat.com
Mon Jun 25 08:06:13 UTC 2012


On 06/21/2012 04:22 PM, Bryan Kearney wrote:
> On 06/21/2012 08:58 AM, Tomas Strachota wrote:
>> Just an announcement for the team:
>>
>> Martin and me have started to work on splitting the Foreman's
>> controllers to ui and api part.
>> If anyone is interested, we share the code here:
>>
>> https://github.com/mbacovsky/foreman/tree/api
>>
> So, will the pattern be to remote the json code from the regular
> controllers?
>
> -- bk
>

Yes, it will be generated using rabl [1] templates. It gives us easier 
control over what is printed to the output. No need to change to_json 
methods everywhere when you decide to modify structure of the output.

1) https://github.com/nesquena/rabl

T.




More information about the katello-devel mailing list