Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.
/ StudentAPI Public archive

School project API for querying student/course data. Made with SpringBoot

Notifications You must be signed in to change notification settings

kaperala/StudentAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Student API (School project)

This is a final assignment of a Java course I did at school. It is an API for querying and posting student/course data. The API is made with Java and SpringBoot and the said data lives in text files under /tiedostot/. The project was made in 2021 and the repository is not maintained.

Routes

Routes for usage are as follows:

GET Students:

  - This route returns all students from students.txt
  localhost:8080/students
  (Returns JSON)
  - Using this route you can query students and courses they are in by their ID.
  localhost:8080/students/{studentID}
  (Returns HTML)

GET Courses:

  - This route returns all courses and their students from courses.txt
  localhost:8080/courses
  (Returns JSON)
  - Using this route you can query courses subject and attending students with its ID.
  localhost:8080/courses/{courseID}
  (Returns HTML)
  - Using this route you can query all courses that are class OnlineCourse.
  localhost:8080/onlinecourses}
  (Returns JSON)

POST:

  - You can add student to a course with this POST route.
  localhost:8080/add

About

School project API for querying student/course data. Made with SpringBoot

Resources

Stars

Watchers

Forks

Languages