2018 May 15 7:33 PM - edited 2024 Feb 04 5:50 AM
I am implementing my own output adapter and it is working normally but I can't find the callback URL to send the client for success publication. I have checked the server URL in publish function but it is the default URL for datahub which is https://localhost:8443/datahub-webapp/v1.Is there something I need to append to the default URL and send it to the client for success publication??
Request clarification before answering.
The Custom Output Adapters and its sub-pages provide details on how to implement your own custom adapter. The Publication Completion section is relevant to your question.
For asynchronous processing, you could create a REST endpoint in your code that delegates to this service method. The Data Hub base URL is passed as a String argument to the adapter publish method. You can pass the base URL on to your import client to build the REST URL for the publication completion callback.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To be clear, it's not a requirement to create a REST endpoint for your adapter. If you want your adapter to process asynchronously you can register an endpoint which you can use for your adapter callbacks. You add it to your custom extension just like you would any other Spring bean. You will need to annotate your class with @Component and the appropriate JAX-RS annotations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.