mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-04-11 11:32:00 +02:00
Fix of documentation urls
This commit is contained in:
parent
b2bcdc9f43
commit
34fb356f18
@ -4,7 +4,7 @@ import "fmt"
|
|||||||
|
|
||||||
// PermissionSchemeService handles permissionschemes for the JIRA instance / API.
|
// PermissionSchemeService handles permissionschemes for the JIRA instance / API.
|
||||||
//
|
//
|
||||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#api/3/permissionscheme
|
// JIRA API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-group-Permissionscheme
|
||||||
type PermissionSchemeService struct {
|
type PermissionSchemeService struct {
|
||||||
client *Client
|
client *Client
|
||||||
}
|
}
|
||||||
@ -26,6 +26,8 @@ type Holder struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetList returns a list of all permission schemes
|
// GetList returns a list of all permission schemes
|
||||||
|
//
|
||||||
|
// JIRA API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-api-3-permissionscheme-get
|
||||||
func (s *PermissionSchemeService) GetList() (*PermissionSchemes, *Response, error) {
|
func (s *PermissionSchemeService) GetList() (*PermissionSchemes, *Response, error) {
|
||||||
apiEndpoint := "/rest/api/3/permissionscheme"
|
apiEndpoint := "/rest/api/3/permissionscheme"
|
||||||
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
|
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
|
||||||
@ -44,6 +46,8 @@ func (s *PermissionSchemeService) GetList() (*PermissionSchemes, *Response, erro
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get returns a full representation of the permission scheme for the schemeID
|
// Get returns a full representation of the permission scheme for the schemeID
|
||||||
|
//
|
||||||
|
// JIRA API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-api-3-permissionscheme-schemeId-get
|
||||||
func (s *PermissionSchemeService) Get(schemeID int) (*PermissionScheme, *Response, error) {
|
func (s *PermissionSchemeService) Get(schemeID int) (*PermissionScheme, *Response, error) {
|
||||||
apiEndpoint := fmt.Sprintf("/rest/api/3/permissionscheme/%d", schemeID)
|
apiEndpoint := fmt.Sprintf("/rest/api/3/permissionscheme/%d", schemeID)
|
||||||
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
|
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user