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

Endpoints for the server #1

Open
sadn1ck opened this issue Oct 27, 2020 · 1 comment
Open

Endpoints for the server #1

sadn1ck opened this issue Oct 27, 2020 · 1 comment
Assignees

Comments

@sadn1ck
Copy link

sadn1ck commented Oct 27, 2020

The planned endpoints (more will be added, have not included generic signin/up):

Type Endpoint Consumes Produces
POST /contest/:contestID/submit code, userid, contest id, problem id Returns a submission id
POST /submit code, userid, problem id Returns a submission id (different from contest submissions)
GET /status/:submissionID submissionID status (AC/WA/RE/TLE/MLE/CE)
POST /contest/:contestID/register userid status of registration

Comment more, I will add here

@raydwaipayan
Copy link
Member

Endpoints:

User routes:
/login
/signup
/oauth
/forgotpassword
/verify

Contest routes:
/contest/:cid/submit
/contest/:cid/register
/contest/:cid/status/:id
/contest/:cid/
/contest/:cid/user/:id

Free practice:
/practice/:cid/submit
/practice/:cid/status/:id
/practice/:id

Status:
COMPILATION ERROR
ILLEGAL INSTRUCTIONS
INTERNAL SERVER ERROR
TIME LIMIT EXCEEDED
MEMORY LIMIT EXCEEDED
RUNTIME ERROR
WRONG ANSWER
ACCEPTED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants