1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-11-25 22:12:08 +02:00

Renamed "json_mocks" into "mocks"

This commit is contained in:
Andy Grunwald
2016-06-03 23:16:21 +02:00
parent 883aca79c0
commit 7c3e481c65
4 changed files with 3 additions and 6 deletions

View File

@@ -66,14 +66,12 @@ type ProjectComponent struct {
ProjectID int `json:"projectId"`
}
// Get all projects form jira
// GetList gets all projects form JIRA
//
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/project-getAllProjects
func (s *ProjectService) GetList() (*ProjectList, *http.Response, error) {
apiEndpoint := "rest/api/2/project"
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
if err != nil {
return nil, nil, err
}
@@ -94,7 +92,6 @@ func (s *ProjectService) GetList() (*ProjectList, *http.Response, error) {
func (s *ProjectService) Get(projectID string) (*FullProject, *http.Response, error) {
apiEndpoint := fmt.Sprintf("/rest/api/2/project/%s", projectID)
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
if err != nil {
return nil, nil, err
}