From e909ac8bcc90e8d05c827316e7a1c9e6b043b732 Mon Sep 17 00:00:00 2001 From: prabathabey Date: Thu, 28 May 2015 19:58:41 +0530 Subject: [PATCH] Fixing issues prompted due to not properly inheriting JAX-RS annotations --- .../extension/impl/ClientRegistrationServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/oauth-extensions/dynamic-client-manager/src/main/java/org/wso2/carbon/identity/oauth/extension/impl/ClientRegistrationServiceImpl.java b/components/oauth-extensions/dynamic-client-manager/src/main/java/org/wso2/carbon/identity/oauth/extension/impl/ClientRegistrationServiceImpl.java index 5fdd77cf91..a6791c7f97 100644 --- a/components/oauth-extensions/dynamic-client-manager/src/main/java/org/wso2/carbon/identity/oauth/extension/impl/ClientRegistrationServiceImpl.java +++ b/components/oauth-extensions/dynamic-client-manager/src/main/java/org/wso2/carbon/identity/oauth/extension/impl/ClientRegistrationServiceImpl.java @@ -43,12 +43,19 @@ import org.wso2.carbon.identity.oauth.extension.RegistrationService; import org.wso2.carbon.utils.multitenancy.MultitenantConstants; import org.wso2.carbon.utils.multitenancy.MultitenantUtils; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; +@Produces(MediaType.APPLICATION_JSON) +@Consumes(MediaType.APPLICATION_JSON) public class ClientRegistrationServiceImpl implements RegistrationService { private static final Log log = LogFactory.getLog(ClientRegistrationServiceImpl.class); + @POST @Override public Response register(RegistrationProfile profile) { try {