n8n/packages/nodes-base/credentials/StrapiApi.credentials.ts

35 lines
592 B
TypeScript
Raw Normal View History

import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class StrapiApi implements ICredentialType {
name = 'strapiApi';
displayName = 'Strapi API';
documentationUrl = 'strapi';
properties: INodeProperties[] = [
{
displayName: 'Email',
name: 'email',
type: 'string',
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: {
password: true,
},
default: '',
},
{
displayName: 'URL',
name: 'url',
type: 'string',
default: '',
placeholder: 'https://api.example.com',
},
];
}