Join Slack
Powered by
Hi team , I am exploring api options on datahub. I...
# getting-started
b
brave-engine-32813
07/14/2023, 5:37 AM
Hi team , I am exploring api options on datahub. I saw this doc
https://datahubproject.io/docs/api/datahub-apis#datahub-api-comparison
I could not find the java sdk capabilities section. Can you please update the info with java sdk?
✅ 1
g
gorgeous-tent-62316
07/14/2023, 3:38 PM
Hi Sachin, To create Java Client to access the datahub, you use the OpenApi spec. More information is provided at:
https://datahubproject.io/docs/api/openapi/openapi-usage-guide
You can take the example given in :
https://datahubproject.io/docs/api/openapi/openapi-usage-guide#programmatic-usage
If you have your local datahub running, you can actually experiment with the Swagger UI from this link:
http://localhost:9002/openapi/swagger-ui/index.html
You can also try to explore the following link, where you can generate your java client code automatically.
https://swagger.io/tools/swagger-codegen/
b
brave-engine-32813
07/14/2023, 4:14 PM
Thanks a lot
@gorgeous-tent-62316
. I will check these options. I wish the comparison section had also included the status of java sdk. In your opinion,which is better to use? the java sdk or open api ?
g
gorgeous-tent-62316
07/17/2023, 2:09 PM
You can also use ‘GraphQL’ and build java client. You can search the web for “how to make graphql calls with java” and get some tips. You can use the following approach as well:
https://datahubproject.io/docs/metadata-integration/java/as-a-library/
Any approach is fine.
Open in Slack
Previous
Next