Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve Test Cases using API #2623

Closed
muhammad-tayyab opened this issue Jul 25, 2024 · 1 comment
Closed

Retrieve Test Cases using API #2623

muhammad-tayyab opened this issue Jul 25, 2024 · 1 comment

Comments

@muhammad-tayyab
Copy link

I am developing a plugin that interacts with DOMJudge using its API. I can access other information such as available contests, problems with their pdfs etc. however, I don't know how to get/ download sample test cases as a team member using this API.

Additionally, I was not able to find information on retrieving a login token, instead of providing username, password with every request.

@vmcj
Copy link
Member

vmcj commented Jul 25, 2024

I am developing a plugin that interacts with DOMJudge using its API. I can access other information such as available contests, problems with their pdfs etc. however, I don't know how to get/ download sample test cases as a team member using this API.

You can find this on the API doc: https://www.domjudge.org/demoweb/api/doc, search for samples.zip.

Additionally, I was not able to find information on retrieving a login token, instead of providing username, password with every request.

We don't support having a login token, you can set IP authentication or can use REMOTE_USER for more advanced usecases (see the manual for that).

I'll close this now, if you have more questions its better to ask those in chat (https://www.domjudge.org/chat).

@vmcj vmcj closed this as completed Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants