Hi, Thank for your help about install domjudge. Now it work ok and I want to submit problem via api. /domjudge/api/submissions <http://dj5.cachhoc.net/domjudge/api/submissions> (POST) I read the document api but I can not know how to use it. I want use php to post submission, and now I test on postman but don't know what are fields to post data. -- _________________________ Name: Nguyen Van Quan Come from: OTVINA company Email: nguyenvanquan7826@gmail.com Blog: nguyenvanquan7826.com Phone: +84.96.567.7826
On December 20, 2017 5:37:34 PM GMT+01:00, "Nguyễn Văn Quân" <nguyenvanquan7826@gmail.com> wrote:
Hi, Thank for your help about install domjudge. Now it work ok and I want to submit problem via api.
/domjudge/api/submissions <http://dj5.cachhoc.net/domjudge/api/submissions> (POST) I read the document api but I can not know how to use it. I want use php to post submission, and now I test on postman but don't know what are fields to post data.
I don't have a computer at hand now, but have a look at the source code of submit/submit.cc. It uses curl to post submissions via that API endpoint. Jaap -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
I want to use php to submit. I know pho submit via curl but document only have curl command. On Dec 21, 2017 00:15, "Jaap Eldering" <jaap@jaapeldering.nl> wrote:
On December 20, 2017 5:37:34 PM GMT+01:00, "Nguyễn Văn Quân" < nguyenvanquan7826@gmail.com> wrote:
Hi, Thank for your help about install domjudge. Now it work ok and I want to submit problem via api.
/domjudge/api/submissions <http://dj5.cachhoc.net/domjudge/api/submissions> (POST) I read the document api but I can not know how to use it. I want use php to post submission, and now I test on postman but don't know what are fields to post data.
I don't have a computer at hand now, but have a look at the source code of submit/submit.cc. It uses curl to post submissions via that API endpoint.
Jaap
-- Sent from my Android device with K-9 Mail. Please excuse my brevity. _______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Hi, Have you online? Please Help. Thanks! On Thu, Dec 21, 2017 at 9:09 AM, Nguyễn Văn Quân < nguyenvanquan7826@gmail.com> wrote:
I want to use php to submit. I know pho submit via curl but document only have curl command.
On Dec 21, 2017 00:15, "Jaap Eldering" <jaap@jaapeldering.nl> wrote:
On December 20, 2017 5:37:34 PM GMT+01:00, "Nguyễn Văn Quân" < nguyenvanquan7826@gmail.com> wrote:
Hi, Thank for your help about install domjudge. Now it work ok and I want to submit problem via api.
/domjudge/api/submissions <http://dj5.cachhoc.net/domjudge/api/submissions> (POST) I read the document api but I can not know how to use it. I want use php to post submission, and now I test on postman but don't know what are fields to post data.
I don't have a computer at hand now, but have a look at the source code of submit/submit.cc. It uses curl to post submissions via that API endpoint.
Jaap
-- Sent from my Android device with K-9 Mail. Please excuse my brevity. _______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
-- _________________________ Name: Nguyen Van Quan Come from: OTVINA company Email: nguyenvanquan7826@gmail.com Blog: nguyenvanquan7826.com Phone: +84.96.567.7826
On Wed, 20 Dec 2017 23:37:34 +0700 Nguyễn Văn Quân <nguyenvanquan7826@gmail.com> wrote:
Hi, Thank for your help about install domjudge. Now it work ok and I want to submit problem via api.
/domjudge/api/submissions <http://dj5.cachhoc.net/domjudge/api/submissions> (POST) I read the document api but I can not know how to use it. I want use php to post submission, and now I test on postman but don't know what are fields to post data.
It might be useful to have a look at my Java submit client -- it builds the 'submissions'-request programmatically rather than via the command line. https://github.com/Mortal/csaudk-submitj/blob/83b90acadbc3648df239e5b8b1bbb7... The methods makePostSubmissionRequest() and sendSubmissionForm() in particular make the call to /api/submissions -- the remaining methods make requests to different parts of the DOMjudge webserver. Hope this helps, /Mathias
Oh. I check you code and it work with java. I will try to convert to php. Thanks! On Fri, Dec 22, 2017 at 3:37 PM, Mathias Rav <m@strova.dk> wrote:
On Wed, 20 Dec 2017 23:37:34 +0700 Nguyễn Văn Quân <nguyenvanquan7826@gmail.com> wrote:
Hi, Thank for your help about install domjudge. Now it work ok and I want to submit problem via api.
/domjudge/api/submissions <http://dj5.cachhoc.net/ domjudge/api/submissions> (POST) I read the document api but I can not know how to use it. I want use php to post submission, and now I test on postman but don't know what are fields to post data.
It might be useful to have a look at my Java submit client -- it builds the 'submissions'-request programmatically rather than via the command line.
https://github.com/Mortal/csaudk-submitj/blob/ 83b90acadbc3648df239e5b8b1bbb79b00881683/Submit.java
The methods makePostSubmissionRequest() and sendSubmissionForm() in particular make the call to /api/submissions -- the remaining methods make requests to different parts of the DOMjudge webserver.
Hope this helps,
/Mathias
-- _________________________ Name: Nguyen Van Quan Come from: OTVINA company Email: nguyenvanquan7826@gmail.com Blog: nguyenvanquan7826.com Phone: +84.96.567.7826
participants (3)
-
Jaap Eldering -
Mathias Rav -
Nguyễn Văn Quân