Giter Site home page Giter Site logo

carnetunibuc-backend's Introduction

CarnetUnibuc-backend

University management program - backend

APIs

  1. POST http://localhost:8080/subjects Creare materie
    {
         "name": "Curs 3",
         "creditCount": 12
     }
    
  2. GET http://localhost:8080/subjects - lista de materii
  3. GET http://localhost:8080/subjects/1 - afiseaza o materie dupa id
  4. GET http://localhost:8080/students - lista studentilor
  5. 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
         }
     }
    ]
    
  6. 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

  1. POST http://localhost:8080/courses/{id}/students/{studentId}

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

  1. 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
     }
    
  2. GET http://localhost:8080/grades/{studentId} - ia notele si materiile pe un student dat
  3. GET http://localhost:8080/courses/2 - lista de studneti pt un curs dat cu note si grupa fiecare
  4. POST http://localhost:8080/courses/{courseId}/groups/{groupId} - adauga studentii dintr-o anumita grupa la un anumit curd

Configuration steps for MySQL local database

MySQL commnad line client

MySQL Workbench

  1. Open MySQL command line client
  2. Enter the password(if you have set any)
  3. mysql> create database report_card;
  4. mysql> use report_card;
  5. mysql> create user 'rootMOPS'@'localhost' identified by 'parola225200';
  6. mysql> grant all privileges on report_card.* to 'rootMOPS'@'localhost';
  7. mysql> exit;
  8. Open MySQL Workbench
  9. Click on + near the MySQL Connections title
  10. Connection name report_card
  11. username rootMOPS
  12. password > store in vault > parola225200
  13. test connection > info popup with successful connection
  14. Press ok

Configuration steps for Eclipse

  1. Configure a new workspace From eclipse IDE Laucnher browse your working directory. A new workspace will be created. image

  2. Import your project

image

Then browse the directory with the project.

  1. 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.

carnetunibuc-backend's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.