ernoaapa
ernoaapa7mo ago

Custom resource type implementation

I'm new with Windmill, so sorry if I'm missing some basics. I'm planning to integrate Windmill with getharvest.com. As there's no premade integration, I started to look into how to create custom integration. I found the page telling how to create a custom resource type but didn't find any details about how to implement the integration. Any guidance about that? There is also token-based authentication (I can use that temporarily), but Harvest also supports OAuth, so it would be great to use it in the long term. https://help.getharvest.com/api-v2/authentication-api/authentication/authentication/ Thanks for the help.
4 Replies
rubenf
rubenf7mo ago
@ernoaapa adding an integration is simply adding the resource type and relevant scripts to hub.windmill.dev. For OAuth, once you have a resource type for it with just a token in it, it's sufficient to add the oauth details here: https://github.com/windmill-labs/windmill/blob/main/backend/oauth_connect.json
GitHub
windmill/backend/oauth_connect.json at main · windmill-labs/windmill
Open-source developer platform to turn scripts into workflows and UIs. Fastest workflow engine (5x vs Airflow). Open-source alternative to Airplane and Retool. - windmill-labs/windmill
rubenf
rubenf7mo ago
to add more custom oauth, one need to modify the frontend part, it's a bit more complex
rubenf
rubenf7mo ago
also if harvest supports openapi, we can generate all the scripts automatically: https://www.npmjs.com/package/@windmill-labs/openapi-codegen-cli
npm
@windmill-labs/openapi-codegen-cli
Add new manual integration. Latest version: 1.2.8, last published: 2 months ago. Start using @windmill-labs/openapi-codegen-cli in your project by running npm i @windmill-labs/openapi-codegen-cli. There are no other projects in the npm registry using @windmill-labs/openapi-codegen-cli.
ernoaapa
ernoaapa7mo ago
Ok, thanks @rubenf for response 👍