mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-03-19 20:57:47 +02:00
Updated JIRA API doc links
This commit is contained in:
parent
dc74b972d4
commit
36ff795367
@ -33,7 +33,7 @@ type Session struct {
|
||||
// Note that it is generally preferrable to use HTTP BASIC authentication with the REST API.
|
||||
// However, this resource may be used to mimic the behaviour of JIRA's log-in page (e.g. to display log-in errors to a user).
|
||||
//
|
||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#d2e459
|
||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session
|
||||
func (s *AuthenticationService) AcquireSessionCookie(username, password string) (bool, error) {
|
||||
apiEndpoint := "rest/auth/1/session"
|
||||
body := struct {
|
||||
@ -61,6 +61,6 @@ func (s *AuthenticationService) AcquireSessionCookie(username, password string)
|
||||
}
|
||||
|
||||
// TODO Missing API Call GET (Returns information about the currently authenticated user's session)
|
||||
// See https://docs.atlassian.com/jira/REST/latest/#d2e456
|
||||
// See https://docs.atlassian.com/jira/REST/latest/#auth/1/session
|
||||
// TODO Missing API Call DELETE (Logs the current user out of JIRA, destroying the existing session, if any.)
|
||||
// https://docs.atlassian.com/jira/REST/latest/#d2e456
|
||||
// See https://docs.atlassian.com/jira/REST/latest/#auth/1/session
|
||||
|
6
issue.go
6
issue.go
@ -12,7 +12,7 @@ const (
|
||||
|
||||
// IssueService handles Issues for the JIRA instance / API.
|
||||
//
|
||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#d2e2279
|
||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue
|
||||
type IssueService struct {
|
||||
client *Client
|
||||
}
|
||||
@ -220,7 +220,7 @@ type CommentVisibility struct {
|
||||
// This can be an issue id, or an issue key.
|
||||
// If the issue cannot be found via an exact match, JIRA will also look for the issue in a case-insensitive way, or by looking to see if the issue was moved.
|
||||
//
|
||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#d2e2609
|
||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-getIssue
|
||||
func (s *IssueService) Get(issueID string) (*Issue, *http.Response, error) {
|
||||
apiEndpoint := fmt.Sprintf("rest/api/2/issue/%s", issueID)
|
||||
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
|
||||
@ -241,7 +241,7 @@ func (s *IssueService) Get(issueID string) (*Issue, *http.Response, error) {
|
||||
// Creating a sub-task is similar to creating a regular issue, with two important differences:
|
||||
// The issueType field must correspond to a sub-task issue type and you must provide a parent field in the issue create request containing the id or key of the parent issue.
|
||||
//
|
||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#d2e2280
|
||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-createIssues
|
||||
func (s *IssueService) Create(issue *Issue) (*Issue, *http.Response, error) {
|
||||
apiEndpoint := "rest/api/2/issue/"
|
||||
req, err := s.client.NewRequest("POST", apiEndpoint, issue)
|
||||
|
Loading…
x
Reference in New Issue
Block a user