How to submit via api?

Nguyễn Văn Quân nguyenvanquan7826 at gmail.com
Thu Dec 21 03:09:13 CET 2017


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 at jaapeldering.nl> wrote:

>
>
> On December 20, 2017 5:37:34 PM GMT+01:00, "Nguyễn Văn Quân" <
> nguyenvanquan7826 at 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 at domjudge.org
> https://www.domjudge.org/mailman/listinfo/domjudge-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.domjudge.org/pipermail/domjudge-devel/attachments/20171221/9c9ea56d/attachment.htm>


More information about the DOMjudge-devel mailing list