Skip to content

Instantly share code, notes, and snippets.

@evrentan
Created June 13, 2021 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evrentan/5b5c090a81b3feb854a27c0d8338b931 to your computer and use it in GitHub Desktop.
Save evrentan/5b5c090a81b3feb854a27c0d8338b931 to your computer and use it in GitHub Desktop.
IStudentService
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