University management program - backend
- POST http://localhost:8080/subjects
Creare materie
{ "name": "Curs 3", "creditCount": 12 }
- GET http://localhost:8080/subjects - lista de materii
- GET http://localhost:8080/subjects/1 - afiseaza o materie dupa id
- GET http://localhost:8080/students - lista studentilor
- POST http://localhost:8080/students - adaugare lista studenti in DB (pot fi adaugate si duplicate nu vor fi luate in considerare), si creare automata a grupelor in DB
[ { "lastName":"marcel", "firstName":"ionel", "email":"[email protected]", "group": { "groupCode": 123 } }, { "lastName":"maricica", "firstName":"ionel", "email":"[email protected]", "group": { "groupCode": 124 } }, { "lastName":"valetin", "firstName":"ana", "email":"[email protected]", "group": { "groupCode": 123 } } ]
- POST http://localhost:8080/courses/{id}/groups/{groupId}
adauga studentii unei grupe la un curs
daca unul dintre studentii grupei deja e inscris la curs, e ok, doar se asigura ca nu e duplicat
adauga studentul la un curs
daca studentul e deja inscris la curs, intoarce statuscode 409 daca adaugarea are loc cu succes intoarce lista studentilor inscrisi la curs
- POST http://localhost:8080/grades - adauga nota unui student la un anumit curs (nu accepta duplicate la aceleasi materii)
{ "studentId":1, "courseId":1, "grade": 8 }
- GET http://localhost:8080/grades/{studentId} - ia notele si materiile pe un student dat
- GET http://localhost:8080/courses/2 - lista de studneti pt un curs dat cu note si grupa fiecare
- POST http://localhost:8080/courses/{courseId}/groups/{groupId} - adauga studentii dintr-o anumita grupa la un anumit curd
- Open MySQL command line client
- Enter the password(if you have set any)
mysql> create database report_card;
mysql> use report_card;
mysql> create user 'rootMOPS'@'localhost' identified by 'parola225200';
mysql> grant all privileges on report_card.* to 'rootMOPS'@'localhost';
mysql> exit;
- Open MySQL Workbench
- Click on + near the MySQL Connections title
- Connection name
report_card
- username
rootMOPS
- password > store in vault >
parola225200
- test connection > info popup with successful connection
- Press ok
-
Configure a new workspace From eclipse IDE Laucnher browse your working directory. A new workspace will be created.
-
Import your project
Then browse the directory with the project.
- Change the workspace to dark theme
To change the color theme in your editor: Go to Window | Preferences | General | Appearance | Color Theme. The list of available Eclipse color themes is displayed. A restart of the application will be required.