Class QuestionRestService

java.lang.Object
com.amos2020.javabackend.rest_service.QuestionRestService

@RestController
@CrossOrigin
public class QuestionRestService
extends java.lang.Object
Provides endpoints for the question resource under /questions
  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) QuestionController questionController  
  • Constructor Summary

    Constructors 
    Constructor Description
    QuestionRestService​(QuestionController questionController)  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.http.ResponseEntity<BasicQuestionResponse> getInterviewById​(@javax.validation.constraints.Min(1L) int questionId)
    GET Endpoint for receiving a question by a specific id

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getInterviewById

      @GetMapping("/questions/{id}") public org.springframework.http.ResponseEntity<BasicQuestionResponse> getInterviewById​(@PathVariable("id") @Min(1L) @javax.validation.constraints.Min(1L) int questionId)
      GET Endpoint for receiving a question by a specific id
      Parameters:
      questionId - int
      Returns:
      ResponseEntity with a BasicQuestionResponse that includes all information regarding the question