[katello-devel] Async Jobs as resources

Bryan Kearney bkearney at redhat.com
Mon Jul 18 11:34:14 UTC 2011


On 07/18/2011 04:11 AM, Lukas Zapletal wrote:
> On 07/15/2011 10:41 PM, Dmitri Dolguikh wrote:
>>
>> I think we should acknowledge the fact that async tasks are a resource
>> on their own, and give them a dedicated url, something like:
>>
>> POST /tasks/sync/provider/:id
>> POST /tasks/sync/repository/:id
>>
>> to initiate a sync process.
>>
>> To get the status:
>>
>> GET /tasks/:id
>>
>> or perhaps we should be more specific:
>>
>> GET /tasks/sync/:id
>>
>> What do you think?
>
> Couldn't a task be generic resource (e.g. with path /tasks) with the
> data specifying the task resource you are working with? Something like:
>
> {
> :task => "repository",
> :data => { ... }
> }
>
> A generic interface.
>
I would see supporting both. If you only do he generic you will end up 
wanting to search it.

-- bk




More information about the katello-devel mailing list