Hello,
I want to make a desktop app, this desktop is a web interface simply, in this interface i want to upload a file .c or .c++ and send to domjudge via service web or whatever, i want that domjudge execute and return to me the datas to show all information in mi desktop app.
Is it possible?, is there a service web in domjudge?
king regards.
Hi Jesús
The main developers may wish to correct me on this but ... I don't think the domjudge server is what you want, as it polls the main contest server for submissions. It sounds like you wish to push a programming task to an execution server and receive the result back as a response. In which case you might be interested in my Jobe server, which provides exactly such a "job runner" web service. See https://github.com/trampgeek/jobe. Although it was primarily developed for use by my Moodle/CodeRunner question type, it can be used separately from that. Runestone Interactive use it for one of their interactive Java textbooks, for example.
Richard
On 15/07/16 09:06, Jesús Alberto Domínguez Alfonso wrote:
Hello,
I want to make a desktop app, this desktop is a web interface simply, in this interface i want to upload a file .c or .c++ and send to domjudge via service web or whatever, i want that domjudge execute and return to me the datas to show all information in mi desktop app.
Is it possible?, is there a service web in domjudge?
king regards.
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Just following up on what I just sent ... I should have mentioned that Jobe uses domjudge's "runguard" module internally for sandboxing the submitted task.
Richard
On 15/07/16 09:06, Jesús Alberto Domínguez Alfonso wrote:
Hello,
I want to make a desktop app, this desktop is a web interface simply, in this interface i want to upload a file .c or .c++ and send to domjudge via service web or whatever, i want that domjudge execute and return to me the datas to show all information in mi desktop app.
Is it possible?, is there a service web in domjudge?
king regards.
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
On 14-07-16 18:06, Jesús Alberto Domínguez Alfonso wrote:
Hello,
I want to make a desktop app, this desktop is a web interface simply, in this interface i want to upload a file .c or .c++ and send to domjudge via service web or whatever, i want that domjudge execute and return to me the datas to show all information in mi desktop app.
Is it possible?, is there a service web in domjudge?
I suppose you mean a web service API?
Yes, there is an JSON based REST API for DOMjudge, that can be found under http://www.example.com/domjudge/api/ (change the URL depending on how you configured DOMjudge).
Just browsing to that URL should give you some basic documentation on which API calls are present and what parameters they accept. You can certainly use these to submit things (see submit/submit.cc as an example); I'm not sure it's easy to extract the results of submissions when you only have team privileges.
Jaap