diff --git a/java/registry/pom.xml b/java/registry/pom.xml
index 3a1dc4b06..557a17ee2 100644
--- a/java/registry/pom.xml
+++ b/java/registry/pom.xml
@@ -62,7 +62,7 @@
org.springframework.boot
- spring-boot-starter-web
+ spring-boot-starter-webflux
diff --git a/java/registry/src/main/java/dev/sunbirdrc/registry/controller/RegistryEntityController.java b/java/registry/src/main/java/dev/sunbirdrc/registry/controller/RegistryEntityController.java
index 5b29c2af9..e7cdf31cf 100644
--- a/java/registry/src/main/java/dev/sunbirdrc/registry/controller/RegistryEntityController.java
+++ b/java/registry/src/main/java/dev/sunbirdrc/registry/controller/RegistryEntityController.java
@@ -1,7 +1,11 @@
package dev.sunbirdrc.registry.controller;
+import static dev.sunbirdrc.registry.Constants.*;
+import static dev.sunbirdrc.registry.middleware.util.Constants.ENTITY_TYPE;
+
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.ObjectNode;
@@ -15,6 +19,7 @@
import dev.sunbirdrc.registry.exception.ErrorMessages;
import dev.sunbirdrc.registry.exception.RecordNotFoundException;
import dev.sunbirdrc.registry.exception.UnAuthorizedException;
+import dev.sunbirdrc.registry.helper.RegistryHelper;
import dev.sunbirdrc.registry.middleware.MiddlewareHaltException;
import dev.sunbirdrc.registry.middleware.util.Constants;
import dev.sunbirdrc.registry.middleware.util.JSONUtil;
@@ -24,8 +29,12 @@
import dev.sunbirdrc.registry.transform.Configuration;
import dev.sunbirdrc.registry.transform.Data;
import dev.sunbirdrc.registry.transform.ITransformer;
+import dev.sunbirdrc.registry.util.DefinitionsManager;
import dev.sunbirdrc.registry.util.ViewTemplateManager;
import dev.sunbirdrc.validators.ValidationException;
+import java.lang.reflect.InvocationTargetException;
+import java.util.*;
+import javax.servlet.http.HttpServletRequest;
import org.agrona.Strings;
import org.apache.commons.lang3.StringUtils;
import org.apache.tinkerpop.gremlin.structure.Vertex;
@@ -43,861 +52,1268 @@
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
-import javax.servlet.http.HttpServletRequest;
-import java.lang.reflect.InvocationTargetException;
-import java.util.*;
-
-import static dev.sunbirdrc.registry.Constants.*;
-import static dev.sunbirdrc.registry.middleware.util.Constants.ENTITY_TYPE;
-
@RestController
public class RegistryEntityController extends AbstractController {
- private static final String TRANSACTION_ID = "transactionId";
- private static Logger logger = LoggerFactory.getLogger(RegistryEntityController.class);
+ private static final String TRANSACTION_ID = "transactionId";
+ private static org.slf4j.Logger logger = LoggerFactory.getLogger(
+ RegistryEntityController.class
+ );
- @Autowired
- private ICertificateService certificateService;
+ @Autowired
+ private ICertificateService certificateService;
- @Autowired
- private FileStorageService fileStorageService;
+ @Autowired
+ private FileStorageService fileStorageService;
- @Autowired
- private AsyncRequest asyncRequest;
+ @Autowired
+ private AsyncRequest asyncRequest;
- @Autowired
- private ViewTemplateManager viewTemplateManager;
+ @Autowired
+ private ViewTemplateManager viewTemplateManager;
@Value("${authentication.enabled:true}")
boolean securityEnabled;
@Value("${certificate.enableExternalTemplates:false}")
boolean externalTemplatesEnabled;
-
- @RequestMapping(value = "/api/v1/{entityName}/invite", method = RequestMethod.POST)
- public ResponseEntity