Hi Giulio,

You can find more details on the JSON format here:
https://github.com/apache/mesos/blob/master/include/mesos/v1/scheduler/scheduler.proto#L221

i.e., the JSON accepted by the /scheduler endpoint is equivalent to
the protobuf message format described in that file.

Neil


On Mon, Jul 4, 2016 at 2:30 PM, Giulio Eulisse <[email protected]> wrote:
> Dear Jay,
>
> thank you for your reply.
>
> Yes, I am aware of those pages and that's what I used so far. As I said,
> they are actually quite clear and allowed me to get a simple "reject all
> offers" framework up and running in one evening.
>
> However, if you look at the scheduler-http-api page, you will see that the
> documentation for the "ACCEPT" message is completely lacking the description
> of what should go into the "operations" field of the JSON payload, unless I
> am missing something completely trivial. My question is therefore where I
> can find the schema of what should go there (and possibly a simple example).
>
> --
> Ciao,
> Giulio
>
> On Mon, Jul 4, 2016 at 1:24 PM Jay JN Guo <[email protected]> wrote:
>>
>> Hi Giulio,
>>
>> For scheduler/executor HTTP API, please refer to:
>> http://mesos.apache.org/documentation/latest/scheduler-http-api/
>> http://mesos.apache.org/documentation/latest/executor-http-api/
>>
>> If you find anything missing there, let us know.
>>
>> Also, we are working on Operator HTTP API documentation and hopefully
>> could get it out soon.
>>
>> cheers,
>> /Jay
>>
>>
>> ----- Original message -----
>> From: Giulio Eulisse <[email protected]>
>> To: "[email protected]" <[email protected]>
>> Cc:
>> Subject: Documentation for ACCEPT HTTP API
>>
>> Date: Mon, Jul 4, 2016 6:01 PM
>>
>> Dear all,
>>
>> I've started writing a simple framework using node.js and the HTTP
>> Scheduler API. I've managed to subscribe to the event stream, parse messages
>> and decline offers quite easily, however I'm having a bit of trouble
>> accepting the offers and launching tasks, since I cannot find any complete
>> example for the JSON format the various operations should have. I assume I
>> can reverse engineer mesos.proto and do a bit of trial and error, but I was
>> wondering if I was simply missing some proper documentation. Any
>> suggestions?
>>
>> --
>> Ciao,
>> Giulio

Reply via email to