apc-unb / apc-api

MIT License
4 stars 0 forks source link

Codeforces API tracking #37

Closed VerasThiago closed 5 years ago

VerasThiago commented 5 years ago

Now when student login, the API return another filed called Progress, that contains student amount of tasks done and total tasks.

Examples :

{
    "Class": {
        "ID": "5db07f3782ce56ea92845def",
        "professorfirstname": "Carla",
        "professorlastname": "Castanho",
        "classname": "H",
        "address": "PJC 144",
        "year": 2019,
        "season": 2,
        "contestsids": [
            227662,
            227824,
            229195,
            230372,
            231393,
            231394,
            232351
        ]
    },
    "News": [...],
    "Progress": {
        "done": "33",
        "total": "36"
    },
    "Result": "success",
    "Student": {...},
    "UserExist": "true"
}
VerasThiago commented 5 years ago

PS: Need to config PUT class to update class contestsIDs