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) QuestionControllerquestionController -
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
-
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
-