Skip to content

tneudevteam/tneu-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents generated with DocToc

TNEU APIs Build Status

The home for TNEU APIs.

API

💯 Scores

The purpose of this endpoint is to provide a simple interface to get the students' scores from mod.tanet.

Auth

Request: /act?role=scores&cmd=auth&username=***&password=***

Response:

Access token to make further requests

{ "token": "9civebg8kcebkmq4q4qounrhd4" }

Get

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.

📰 News

Get

To be done

Development

Build and run locally

  1. git clone [email protected]:vladgolubev/tneu-api.git
  2. cd tneu-api
  3. docker build -t tneu-api .
  4. docker run -p 9101:9101 tneu-api

Ready Docker image

  1. docker run -d -p 9101:9101 tneu/scores

About

🏠 API for TNEU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published