add n8n credential test + migrate to new API endpoint (#2427)

This commit is contained in:
LawyZheng
2025-05-22 22:15:20 +08:00
committed by GitHub
parent 2e068d88ac
commit 7c1240bfef
3 changed files with 55 additions and 50 deletions

View File

@@ -1,5 +1,6 @@
import {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
@@ -35,4 +36,10 @@ export class SkyvernApi implements ICredentialType {
}
},
};
test: ICredentialTestRequest = {
request: {
baseURL: '={{$credentials?.baseUrl}}',
url: '/api/v1/organizations',
},
};
}