2020-11-11 00:44:53 -08:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2020-11-11 00:44:53 -08:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class StrapiApi implements ICredentialType {
|
|
|
|
name = 'strapiApi';
|
|
|
|
displayName = 'Strapi API';
|
2020-11-16 01:35:09 -08:00
|
|
|
documentationUrl = 'strapi';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-11-11 00:44:53 -08:00
|
|
|
{
|
|
|
|
displayName: 'Email',
|
|
|
|
name: 'email',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-11-11 00:44:53 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-11-11 00:45:50 -08:00
|
|
|
typeOptions: {
|
|
|
|
password: true,
|
|
|
|
},
|
2020-11-11 00:44:53 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'URL',
|
|
|
|
name: 'url',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-11-11 00:44:53 -08:00
|
|
|
default: '',
|
2020-11-11 00:45:50 -08:00
|
|
|
placeholder: 'https://api.example.com',
|
2020-11-11 00:44:53 -08:00
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|