1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2024-11-28 08:39:03 +02:00

Merge pull request #51 from pmoncadaisla/fix-get-user

Fix User.GET() method
This commit is contained in:
Andy Grunwald 2017-01-27 23:07:11 +01:00 committed by GitHub
commit 9de4f8cf7e

View File

@ -31,7 +31,7 @@ type User struct {
//
// JIRA API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/user-getUser
func (s *UserService) Get(username string) (*User, *Response, error) {
apiEndpoint := fmt.Sprintf("/rest/api/2/user/%s", username)
apiEndpoint := fmt.Sprintf("/rest/api/2/user?username=%s", username)
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
if err != nil {
return nil, nil, err