@platformic/argocd-client
Version:
Awesome typesafe ArgoCD client
24 lines (19 loc) • 560 B
Markdown
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()
```
1. Download ArgoCD swagger spects with curl
2. Modify orval.config.ts input to path new spects
3. Run npm run generate
4. Modify src/generated/argocd.ts and fix import paths extensions ([Github Issue](https://github.com/anymaniax/orval/issues/1232))