-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from vico-research-and-consulting/master
add link search endpoint
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
# -*- coding:utf-8 -*- | ||
# @Author: Jialiang Shi | ||
from sonarqube.utils.rest_client import RestClient | ||
from sonarqube.utils.config import ( | ||
API_PROJECT_LINKS_SEARCH_ENDPOINT, | ||
) | ||
from sonarqube.utils.common import GET, POST | ||
|
||
|
||
class SonarQubeProjectLinks(RestClient): | ||
""" | ||
SonarQube project badges Operations | ||
""" | ||
|
||
def __init__(self, **kwargs): | ||
""" | ||
:param kwargs: | ||
""" | ||
super(SonarQubeProjectLinks, self).__init__(**kwargs) | ||
|
||
@GET(API_PROJECT_LINKS_SEARCH_ENDPOINT) | ||
def search_project_links(self, projectId=None, projectKey=None): | ||
""" | ||
SINCE 6.1 | ||
List links of a project. | ||
The 'projectId' or 'projectKey' must be provided. | ||
:param projectId: ProjectId | ||
:param projectKey: ProjectKey | ||
:return: | ||
""" |
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