Last active
May 4, 2017 14:57
-
-
Save abdulbasitkay/c747347374b14141e9cc286ef91c3915 to your computer and use it in GitHub Desktop.
Question Resource without error handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Path("questions/") | |
public class QuestionResource { | |
@GET | |
@Path("{id}") | |
@Produces("application/json") | |
Response getQuestion(@PathParam("id") String questionId) { | |
QuestionDto question = questionService.getQuestionById(questionId); | |
return Response.status(OK).entity(question).build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment