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 <guojian...@cn.ibm.com> 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 <giulio.euli...@gmail.com> > To: "user@mesos.apache.org" <user@mesos.apache.org> > 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 > >