Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2016-09-15 16:52:21 -0400
committerAngel Avila2016-10-04 21:35:21 -0400
commite024adfbb634b9254f34cba3227dd316f022236e (patch)
tree26d9764696842a6b28793dd915230fe1004ca9a9
parent43efdcc09e92e058b2c90525007505c0ad8f1ad8 (diff)
downloadorg.eclipse.osee-e024adfbb634b9254f34cba3227dd316f022236e.tar.gz
org.eclipse.osee-e024adfbb634b9254f34cba3227dd316f022236e.tar.xz
org.eclipse.osee-e024adfbb634b9254f34cba3227dd316f022236e.zip
refactor[ats_ATS292333]: Change rest endpoints to remove spaces in urls
-rw-r--r--plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/BranchEndpoint.java12
-rw-r--r--plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/TransactionEndpoint.java8
2 files changed, 10 insertions, 10 deletions
diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/BranchEndpoint.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/BranchEndpoint.java
index efc115b69b8..a2d904c7e12 100644
--- a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/BranchEndpoint.java
+++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/BranchEndpoint.java
@@ -144,8 +144,8 @@ public interface BranchEndpoint {
Response deleteBranchExchange(@QueryParam("path") String path);
@PUT
- @Path("{branch}/name/{branch-name}")
- Response setBranchName(@PathParam("branch") BranchId branch, @PathParam("branch-name") String newName);
+ @Path("{branch}/name")
+ Response setBranchName(@PathParam("branch") BranchId branch, String newName);
@PUT
@Path("{branch}/type/{branch-type}")
@@ -160,8 +160,8 @@ public interface BranchEndpoint {
Response associateBranchToArtifact(@PathParam("branch") BranchId branch, @PathParam("art-id") ArtifactId artifact);
@PUT
- @Path("{branch}/txs/{tx-id}/comment/{tx-comment}")
- Response setTxComment(@PathParam("branch") BranchId branch, @PathParam("tx-id") int txId, @PathParam("tx-comment") String comment);
+ @Path("{branch}/txs/{tx-id}/comment")
+ Response setTxComment(@PathParam("branchd") BranchId branch, @PathParam("tx-id") int txId, String comment);
@DELETE
@Path("{branch}")
@@ -186,6 +186,6 @@ public interface BranchEndpoint {
Response purgeTxs(@PathParam("branch") BranchId branch, @PathParam("tx-ids") String txIds);
@PUT
- @Path("log/{comment}")
- Response logBranchActivity(@PathParam("comment") String comment);
+ @Path("log")
+ Response logBranchActivity(String comment);
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/TransactionEndpoint.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/TransactionEndpoint.java
index 878db928957..16ddabc3077 100644
--- a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/TransactionEndpoint.java
+++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/TransactionEndpoint.java
@@ -43,8 +43,8 @@ public interface TransactionEndpoint {
CompareResults compareTxs(@PathParam("tx-id1") TransactionId txId1, @PathParam("tx-id2") TransactionId txId2);
@PUT
- @Path("{tx-id}/comment/{tx-comment}")
- Response setTxComment(@PathParam("tx-id") TransactionId txId, @PathParam("tx-comment") String comment);
+ @Path("{tx-id}/comment")
+ Response setTxComment(@PathParam("tx-id") TransactionId txId, String comment);
@DELETE
@Path("{tx-ids}")
@@ -54,6 +54,6 @@ public interface TransactionEndpoint {
Response purgeUnusedBackingDataAndTransactions();
@PUT
- @Path("{user}/branch/{branch-id}/transaction/{tx-id}/artifact/{art-id}/comment/{comment}")
- Response replaceWithBaselineTxVersion(@PathParam("user") String userId, @PathParam("branch-id") Long branchId, @PathParam("tx-id") TransactionId txId, @PathParam("art-id") int artId, @PathParam("comment") String comment);
+ @Path("{user}/branch/{branch-id}/transaction/{tx-id}/artifact/{art-id}/comment")
+ Response replaceWithBaselineTxVersion(@PathParam("user") String userId, @PathParam("branch-id") Long branchId, @PathParam("tx-id") TransactionId txId, @PathParam("art-id") int artId, String comment);
} \ No newline at end of file

Back to the top