Created
June 13, 2021 19:18
-
-
Save evrentan/5b5c090a81b3feb854a27c0d8338b931 to your computer and use it in GitHub Desktop.
IStudentService
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tan.myhateoasexample.service; | |
import com.tan.myhateoasexample.dto.Student; | |
import com.tan.myhateoasexample.dto.StudentRef; | |
import java.util.List; | |
public interface IStudentService { | |
/** | |
* get all student refs in the database | |
* | |
* @return List<StudentRef> | |
*/ | |
List<StudentRef> getAllStudentRefList(); | |
/** | |
* get a specific student from the database | |
* | |
* @param studentId id of the queried student | |
* @return Student | |
*/ | |
Student getStudentById(String studentId); | |
/** | |
* create a student instance in the database | |
* | |
* @param student student to be created | |
* @return Student | |
*/ | |
Student createStudent(Student student); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment