I see. There is no JSON interface then, clients have to use thrift? On Mon, Nov 27, 2017 at 10:50 AM, Bill Farner <[email protected]> wrote:
> I suspect you are looking at /apibeta, which serves a javadoc-style doc > from a GET request. There is no support for this interface, however, and > it is subject to removal in the future. That being said, you can see an > example of querying by task status in this test case > <https://github.com/apache/aurora/blob/0f3dc939e2af1fb5751109e0ff7b6a0f7df70ac0/src/test/java/org/apache/aurora/scheduler/http/api/ApiBetaTest.java#L153-L163> > . > > On Mon, Nov 27, 2017 at 10:31 AM, Renan DelValle <[email protected] > > wrote: > >> Hi Mohit, >> >> I think it would be useful if you could include a link to the >> documentation on the UI you're talking about. Looking at the source code, >> the UI uses Thrift via javascript to query the scheduler for the info it >> needs for each page. As far as I know, there is no way to query the >> scheduler for task status without using Thrift at this moment. >> >> -Renan >> >> On Sun, Nov 26, 2017 at 2:19 PM, Mohit Jaggi <[email protected]> >> wrote: >> >>> Hi, >>> I am looking for some examples of HTTP API calls to the scheduler using >>> JSON (not Thrift). I would like to use that to query tasks with a given >>> status etc. I can see some documentation on the scheduler UI but it is not >>> clear without examples how to use the API using JSON. >>> >>> Mohit. >>> >> >> >
