aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/components.js
diff options
context:
space:
mode:
authorGrégoire Aubert <gregaubert@users.noreply.github.com>2017-03-16 10:37:59 +0100
committerGitHub <noreply@github.com>2017-03-16 10:37:59 +0100
commit24998ec360f43a7a745d88a5856d5828ba2d11ad (patch)
tree90aa0d3cbece6841da79a6782e16bfac6ebc2a78 /server/sonar-web/src/main/js/api/components.js
parent9db4eb325adf58b3c51bc7ae0bce65a361e98a74 (diff)
downloadsonarqube-24998ec360f43a7a745d88a5856d5828ba2d11ad.tar.gz
sonarqube-24998ec360f43a7a745d88a5856d5828ba2d11ad.zip
SONAR-8922 Add tags facet on project page (#1790)
* Refactor the way filters are rendered * SONAR-8922 Add the tags facet on the projects page * SONAR-8923 Add the tags searchbox
Diffstat (limited to 'server/sonar-web/src/main/js/api/components.js')
-rw-r--r--server/sonar-web/src/main/js/api/components.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/components.js b/server/sonar-web/src/main/js/api/components.js
index 456cb90e0e5..f0469af18ec 100644
--- a/server/sonar-web/src/main/js/api/components.js
+++ b/server/sonar-web/src/main/js/api/components.js
@@ -56,6 +56,16 @@ export function createProject (data: {
return postJSON(url, data);
}
+export function searchProjectTags (data?: { ps?: number, q?: string }) {
+ const url = '/api/project_tags/search';
+ return getJSON(url, data);
+}
+
+export function setProjectTags (data: { project: string, tags: string }) {
+ const url = '/api/project_tags/set';
+ return postJSON(url, data);
+}
+
export function getComponentTree (
strategy: string,
componentKey: string,