Table of Contents generated with DocToc
The home for TNEU APIs.
The purpose of this endpoint is to provide a simple interface to get the students' scores from mod.tanet.
Request: /act?role=scores&cmd=auth&username=***&password=***
Response:
Access token to make further requests
{ "token": "9civebg8kcebkmq4q4qounrhd4" }
Request: /act?role=scores&cmd=get&token=***
Response:
{
"name": "Плішко Іван Володимирович",
"group": "СДМК-91",
"semesters": [ // Array of 2 elements
[{ // Each element is an array of subjects in current semester
"name": "Гроші та кредит",
"controlType": "Екзамен",
"totalScore": 90,
"modules": [{
"weight": 20,
"date": "05.11.15",
"score": 90
}, /* ... */ ]
}, /* ... */ ],
[{
"name": "Іноземна мова",
"controlType": "Залік",
"totalScore": 92,
"modules": [{
"weight": 30,
"date": "23.10.15",
"score": 92
}, /* ... */ ]
}, /* ... */ ]
]
}
In case of incorrect arguments you'll recieve a meaningful response explaining which arguments haven't passed the validation.
To be done
git clone git@github.com:vladgolubev/tneu-api.git
cd tneu-api
docker build -t tneu-api .
docker run -p 9101:9101 tneu-api
docker run -d -p 9101:9101 tneu/scores