[katello-devel] Async Jobs as resources
Lukas Zapletal
lzap at redhat.com
Mon Jul 18 08:11:03 UTC 2011
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.
--
Later,
Lukas Zapletal | E32E400A
RHN Satellite Engineering
Red Hat Czech s.r.o. Brno
More information about the katello-devel
mailing list