From eca4d635e67eaf3c6878d35acfaaf11df53151e2 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Thu, 26 Jul 2012 20:40:08 -0500 Subject: Moved REST services into separate URLs. To support different access control configurations the REST services have been separated by roles. Services that don't need authentication will be available under /rest. Services that require agent rights will be available under /rest/agent. Services that require admin rights will be available under /rest/admin. Ticket #107 --- base/common/src/com/netscape/certsrv/user/UserCertResource.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'base/common/src/com/netscape/certsrv/user/UserCertResource.java') diff --git a/base/common/src/com/netscape/certsrv/user/UserCertResource.java b/base/common/src/com/netscape/certsrv/user/UserCertResource.java index b9339bc33..db463ea59 100644 --- a/base/common/src/com/netscape/certsrv/user/UserCertResource.java +++ b/base/common/src/com/netscape/certsrv/user/UserCertResource.java @@ -34,7 +34,7 @@ import org.jboss.resteasy.annotations.ClientResponseType; /** * @author Endi S. Dewata */ -@Path("/users/{userID}/certs") +@Path("admin/users/{userID}/certs") public interface UserCertResource { @GET @@ -52,12 +52,12 @@ public interface UserCertResource { public Response addUserCert(@PathParam("userID") String userID, UserCertData userCertData); @GET - @Path("/{certID}") + @Path("{certID}") @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) public UserCertData getUserCert(@PathParam("userID") String userID, @PathParam("certID") String certID); @DELETE - @Path("/{certID}") + @Path("{certID}") @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) public void removeUserCert(@PathParam("userID") String userID, @PathParam("certID") String certID); } -- cgit