How to replicate Postman POST request using java

862 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 answers

0
mkysoft 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
Sion Greenlight On

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