Created
November 17, 2009 00:49
-
-
Save dlinsin/236496 to your computer and use it in GitHub Desktop.
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
public Issue browse(Repository argRepository, int argIssueNo) { | |
RestTemplate template = new RestTemplate(); | |
template.setMessageConverters(new HttpMessageConverter[] { | |
new MappingJacksonHttpMessageConverter()}); | |
IssueResponse resp = template.getForObject(BASE_URL + "issues/show/{username}/{repo}/{no}", IssueResponse.class, | |
argRepository.getOwner(), argRepository.getName(), String.valueOf(argIssueNo)); | |
return resp.getIssue(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment