Simple client build using orval and fetch
import argocd from "argocd-client";
const run = async () => {
try {
await argocd.applicationServiceGet('ingress-nginx')
} catch (error) {
console.log(error.message)
}
}
run()
- Download ArgoCD swagger spects with curl
- Modify orval.config.ts input to path new spects
- Run npm run generate
- Modify src/generated/argocd.ts and fix import paths extensions (Github Issue)