Hi team , I am exploring api options on datahub. I...
# getting-started
b
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
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
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
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.