Skip to content

Commit

Permalink
ConDec-26: Unify REST API of plug-in: all REST methods are available …
Browse files Browse the repository at this point in the history
…under "/rest/decisions/latest/"
  • Loading branch information
kleebaum committed May 3, 2018
1 parent d5a82f3 commit 0c337cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/main/resources/atlassian-plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,6 @@
<description>Provides the administration page.</description>
<url-pattern>/adminservlet</url-pattern>
</servlet>
<rest key="admin-rest" name="Adminstration REST" path="/admin" version="1.0">
<description>
Provides REST resources for the administration.
</description>
</rest>
<rest key="config" name="Configuration REST" path="/config" version="1.0">
<description>
Provides REST resources to configure the DecDoc plug-in.
</description>
</rest>

<!-- Active Objects -->
<ao key="ao-module" name="Active Objects Service">
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/js/decdoc.rest.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function getTreeViewer(callback) {
}

function setActivated(isActivated, projectKey) {
postJSON(AJS.contextPath() + "/rest/admin/1.0/config/setActivated.json?projectKey=" + projectKey + "&isActivated=" + isActivated,
postJSON(AJS.contextPath() + "/rest/decisions/latest/config/setActivated.json?projectKey=" + projectKey + "&isActivated=" + isActivated,
function(error, response) {
if (error == null) {
showFlag("success", "Plug-in activation for project has been changed.");
Expand All @@ -227,7 +227,7 @@ function setActivated(isActivated, projectKey) {
}

function setIssueStrategy(isIssueStrategy, projectKey) {
postJSON(AJS.contextPath() + "/rest/admin/1.0/config/setIssueStrategy.json?projectKey=" + projectKey + "&isIssueStrategy="
postJSON(AJS.contextPath() + "/rest/decisions/latest/config/setIssueStrategy.json?projectKey=" + projectKey + "&isIssueStrategy="
+ isIssueStrategy, function(error, response) {
if (error == null) {
showFlag("success", "Strategy has been selected.");
Expand Down

0 comments on commit 0c337cc

Please sign in to comment.