Class FacCritRestService
java.lang.Object
com.amos2020.javabackend.rest_service.FacCritRestService
@RestController
@Validated
@CrossOrigin
public class FacCritRestService
extends java.lang.Object
Provides endpoints for the facCrit resource under /faccrits
-
Field Summary
Fields Modifier and Type Field Description (package private) FacCritControllerfacCritController -
Constructor Summary
Constructors Constructor Description FacCritRestService(FacCritController facCritController) -
Method Summary
Modifier and Type Method Description org.springframework.http.ResponseEntity<java.util.List<BasicFacCritResponse>>getAllFacCrits()GET Endpoint for receiving all existing facCritsorg.springframework.http.ResponseEntity<java.util.List<BasicFacCritResponse>>getAllFacCritsByInterviewId(@javax.validation.constraints.Min(1L) int interviewId)GET Endpoint for all distinct used Faccrits in a specific Interview
-
Field Details
-
Constructor Details
-
Method Details
-
getAllFacCrits
@GetMapping("/faccrits") public org.springframework.http.ResponseEntity<java.util.List<BasicFacCritResponse>> getAllFacCrits()GET Endpoint for receiving all existing facCrits- Returns:
- ResponseEntity with a List of the facCrits
-
getAllFacCritsByInterviewId
@GetMapping("/faccrits/interview/{id}") public org.springframework.http.ResponseEntity<java.util.List<BasicFacCritResponse>> getAllFacCritsByInterviewId(@PathVariable("id") @Min(1L) @javax.validation.constraints.Min(1L) int interviewId)GET Endpoint for all distinct used Faccrits in a specific Interview- Parameters:
interviewId-- Returns:
- ResponseEntity with a sorted List of Faccrits
-