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) FacCritController facCritController  
  • 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 facCrits
    org.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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