Package com.eka.middleware.pub.util
Class ImportPostman
java.lang.Object
com.eka.middleware.pub.util.ImportPostman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddContentTypeHandler
(List<Object> contentTypeSwitch, Map<String, Object> intiMapStep, PostmanItemResponse postmanItemResponse) static String
addResponses
(PostmanItems postmanItems) createFlowServices
(String tenantPath, String servicePath, String packageName, List<PostmanItems> item, boolean isClientRequested, com.eka.middleware.service.DataPipeline dataPipeline) createFlowServicesClient
(String folder, String servicePath, String packageName, List<PostmanItems> item, com.eka.middleware.service.DataPipeline dataPipeline) static void
generateJavaClass
(File file, String flowRef, com.eka.middleware.service.DataPipeline dataPipeline, String fqn, String alias) static String
generateJsonSchema
(String raw, Class<?> inputClass) static String
generateServerStub
(String folderPath, String servicePath, String packageName, PostmanItems postmanItems, boolean isClientRequested, ImportSwagger.Evaluate evaluateFrom, com.eka.middleware.service.DataPipeline dataPipeline) static String
getJsonSchema
(Object jsonDocument) static String
getJsonSchema
(String jsonDocument) static String
getRequestBody
(PostmanItems item) static void
-
Constructor Details
-
ImportPostman
public ImportPostman()
-
-
Method Details
-
main
- Throws:
Exception
-
createFlowServices
public static List<String> createFlowServices(String tenantPath, String servicePath, String packageName, List<PostmanItems> item, boolean isClientRequested, com.eka.middleware.service.DataPipeline dataPipeline) throws Exception - Throws:
Exception
-
createFlowServicesClient
public static List<String> createFlowServicesClient(String folder, String servicePath, String packageName, List<PostmanItems> item, com.eka.middleware.service.DataPipeline dataPipeline) throws Exception - Throws:
Exception
-
generateServerStub
public static String generateServerStub(String folderPath, String servicePath, String packageName, PostmanItems postmanItems, boolean isClientRequested, ImportSwagger.Evaluate evaluateFrom, com.eka.middleware.service.DataPipeline dataPipeline) throws Exception - Throws:
Exception
-
getRequestBody
- Throws:
IOException
-
generateJsonSchema
- Throws:
IOException
-
getJsonSchema
public static String getJsonSchema(Object jsonDocument) throws IllegalArgumentException, IOException - Throws:
IllegalArgumentException
IOException
-
addResponses
- Throws:
IOException
-
getJsonSchema
public static String getJsonSchema(String jsonDocument) throws IllegalArgumentException, IOException - Throws:
IllegalArgumentException
IOException
-
addContentTypeHandler
-
generateJavaClass
public static void generateJavaClass(File file, String flowRef, com.eka.middleware.service.DataPipeline dataPipeline, String fqn, String alias) throws Exception - Throws:
Exception
-