Skip to content

Xawery94/rest-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Student Rest-service

Backend side for student service written in JAVA using Mongodb for storage data. Using this service you can manage students, grades and courses. Below are described dependencies and simple REST Api examples.

Dependencies

API

[GET] Requests for student:

 * /students -> List[Student]
 * /students?name={name} -> Student by name
 * /students?lastNmae={lastName} -> Student by lastName
 * /students?name={name}&lastName={lastName} -> Student by name and lastName
 * /students?birthday={Date} -> Student by birthday
 * /students?birthdayBefore={Date} -> List{Student} birthday before putted Date
 * /students?birthdayAfter={Date} -> List{Student} birthday after putted Date
 * /students/{index} -> {Studnet}
 * /students/{index}/courses/ -> List[Courses] for Student
 * /students/{index}/courses/{courseName}/ -> Course
 * /students/{index}/courses/{courseName}/grades -> List[Grade] for Course and Student
 * /students/{index}/courses/{courseName}/grades?valueGrater={value} -> List[Grade] grater than Value
 * /students/{index}/courses/{courseName}/grades?valueLess={value} -> List[Grade] less than Value
 * /students/{index}/courses/{courseName}/grades/{value} -> List[Grade] for Course and Student

[GET] Requests for course:

* /courses -> List{Course}
* /courses?teacher={name} -> Course

Example response for

[GET] /students/{index}

{
    "index": "123456",
    "name": "Jan",
    "lastName": "Kowalski",
    "birthday": "2000-10-20"
}
<Student>
    <index>123456</index>
    <name>Jan</name>
    <lastName>Kowalski</lastName>
    <birthday>2000-10-20</birthday>
</Student>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published