How to replicate Postman POST request using java

892 Views Asked by At

I am trying to replicate Postman POST type request in java. I am sending a file with raw product data to datahub and processing it. According to requirement it should be replicated using a cronjob.

Any one help please.

2

There are 2 best solutions below

0
On

If you are using spring framework you can use spring rest client for consuming RESTful service. Good sample is here.

If you are using java, you can use JAX-RS library, sample application here.

0
On

There should be a generated Impex file following a publication from DataHub which will be imported via cronjob.