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

Add JSON API for submissions #3

Open
kmyk opened this issue Apr 19, 2020 · 0 comments
Open

Add JSON API for submissions #3

kmyk opened this issue Apr 19, 2020 · 0 comments

Comments

@kmyk
Copy link
Member

kmyk commented Apr 19, 2020

I think the below is a example of the minimal interface.

{
  "url": "https://atcoder.jp/contests/abc160/submissions/11991846",
  "problem": {
    "url": "https://atcoder.jp/contests/abc160/tasks/abc160_a",
    "name": "Coffee"
  },
  "verdict": "AC",
  "code": "#!/usr/bin/env python3_, _, c, d, e, f = input()\nprint(c == d and e == f and 'Yes' or 'No')\n"
}

memo:

  • When we add the field for users, we should make a user object like "user": { "url": "https://atcoder.jp/users/kimiyuki", "name": "kimiyuki" }
  • When we add the field for language, we should use the language object like "language": { "id": null, "description": "Python3 (3.4.3)" }
  • If we add a field for memory usage, I think we should use MB for memory usage to keep the compatibility with get-problem, which also maintain the compatibility with competitive-companion. Or, we should use bytes for all fields and break the compatibility with competitive-companion.
  • Some people want this API to show verdicts in real-time.
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

1 participant