summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cms/servlet/profile
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-07-26 20:40:08 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-08-03 17:07:13 -0500
commiteca4d635e67eaf3c6878d35acfaaf11df53151e2 (patch)
tree32d947e0eeec6a36ea9cc1e7ebf0804b487da7e2 /base/common/src/com/netscape/cms/servlet/profile
parent1d85941aa2f80f3da619504fe4310fe47cb5b036 (diff)
downloadpki-eca4d635e67eaf3c6878d35acfaaf11df53151e2.tar.gz
pki-eca4d635e67eaf3c6878d35acfaaf11df53151e2.tar.xz
pki-eca4d635e67eaf3c6878d35acfaaf11df53151e2.zip
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
Diffstat (limited to 'base/common/src/com/netscape/cms/servlet/profile')
-rw-r--r--base/common/src/com/netscape/cms/servlet/profile/ProfileResource.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/base/common/src/com/netscape/cms/servlet/profile/ProfileResource.java b/base/common/src/com/netscape/cms/servlet/profile/ProfileResource.java
index e402aeadd..cc32234b2 100644
--- a/base/common/src/com/netscape/cms/servlet/profile/ProfileResource.java
+++ b/base/common/src/com/netscape/cms/servlet/profile/ProfileResource.java
@@ -9,16 +9,16 @@ import javax.ws.rs.core.MediaType;
import com.netscape.cms.servlet.profile.model.ProfileData;
import com.netscape.cms.servlet.profile.model.ProfileDataInfos;
-@Path("/profiles")
+@Path("agent/profiles")
public interface ProfileResource {
@GET
@Path("{id}")
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON, MediaType.TEXT_XML })
+ @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public ProfileData retrieveProfile(@PathParam("id") String id);
@GET
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON, MediaType.TEXT_XML })
+ @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public ProfileDataInfos listProfiles();
/**
@@ -31,14 +31,14 @@ public interface ProfileResource {
/*
@POST
@Path("retrieve")
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON, MediaType.TEXT_XML })
+ @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public ProfileData retrieveProfile(ProfileRetrievalRequestData request);
// retrieval - used to test integration with a browser
@POST
@Path("retrieve")
- @Produces(MediaType.TEXT_XML)
+ @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_FORM_URLENCODED })
public ProfileData retrievProfile(MultivaluedMap<String, String> form);
*/