API | Description |
---|---|
URL | /list |
Method | GET |
URL Params | Required: section=STRING |
{"list": [{"codice_persona": STRING,
"matricola": STRING,
"nome": STRING,
"email": STRING,
"sessions": []}, ...],
"timestamp": INTEGER }
API | Description |
---|---|
URL | /registered |
Method | GET |
URL Params | Required: section=STRING, labid=INTEGER |
{"list": [{"codice_persona": STRING,
"matricola": STRING,
"nome": STRING,
"email": STRING,
"sessions": [SESSION, ...]}, ...],
"timestamp": INTEGER }
API | Description |
---|---|
URL | /notyet |
Method | GET |
URL Params | Required: section=STRING, labid=INTEGER |
{"list": [{"codice_persona": STRING,
"matricola": STRING,
"nome": STRING,
"email": STRING,
"sessions": [SESSION, ...]}, ...],
"timestamp": INTEGER }
API | Description |
---|---|
URL | /register |
Method | POST |
Body Params | Required: section=STRING, id=STRING, labid=INTEGER |
{"registered": [{"codice_persona": STRING,
"matricola": STRING,
"nome": STRING,
"email": STRING,
"sessions": [SESSION, ...]}, ...],
"timestamp": INTEGER }
API | Description |
---|---|
URL | /timer |
Method | POST |
Body Params | Required: section=STRING, id=STRING, labid=INTEGER, action=["start"|"stop"] |
{"registered": [{"codice_persona": STRING,
"matricola": STRING,
"nome": STRING,
"email": STRING,
"sessions": [SESSION, ...]}, ...],
"timestamp": INTEGER }
API | Description |
---|---|
URL | /groups |
Method | GET |
URL Params | Required: section=STRING |
{"list": [{"id": INTEGER,
"members": [{"codice_persona": STRING,
"matricola": STRING,
"nome": STRING,
"email": STRING}, ...]}, ...],
"timestamp": INTEGER }
API | Description |
---|---|
URL | /groupinfo |
Method | GET |
URL Params | Required: section=STRING, groupid=INTEGER |
{"id": INTEGER,
"score": INTEGER,
"repo": STRING,
"compiles": BOOLEAN,
"passed_tests": INTEGER,
"sessions": [SESSION, ...],
"timestamp": INTEGER }
curl $BASE_URL'/list?section=test'
curl -X POST -d '{ "id": $MATRICOLA, "labid": 1 , "section": "test"}' $BASE_URL'/register'