[katello-devel] Async Jobs as resources
Dmitri Dolguikh
dmitri at redhat.com
Fri Jul 15 20:41:23 UTC 2011
We now have a few calls that are executed asynchronously and return 202
status with TaskStatus object, instead of the actual entity. Some
examples are:
POST /api/repositories/:id/sync
POST /api/providers/:id/sync
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?
-d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/katello-devel/attachments/20110715/ebf838d2/attachment.htm>
More information about the katello-devel
mailing list