It didn't serve any docs(gives 404) but it worked for a trivial query I
modeled after the test case you pointed to. Thanks!

On Mon, Nov 27, 2017 at 12:04 PM, Bill Farner <wfar...@apache.org> wrote:

> It is true that thrift is the only supported API.  You are welcome to try
> /apibeta, just be aware that issues you encounter may not be fixed.  That
> said, it has been in place for ~3 years and would probably not be removed
> unless it impedes other work, or a superior replacement is introduced.
>
> On Mon, Nov 27, 2017 at 11:39 AM, Mohit Jaggi <mohit.ja...@uber.com>
> wrote:
>
>> I see. There is no JSON interface then, clients have to use thrift?
>>
>> On Mon, Nov 27, 2017 at 10:50 AM, Bill Farner <wfar...@apache.org> 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 <
>>> renanidelva...@gmail.com> 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 <mohit.ja...@uber.com>
>>>> 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.
>>>>>
>>>>
>>>>
>>>
>>
>

Reply via email to