Skip to content

Commit fca53bb

Browse files
committed
adding codex and organizing file name
1 parent ad4496b commit fca53bb

12 files changed

+23
-553
lines changed

credentials/ExampleCredentialsApi.credentials.ts

Lines changed: 0 additions & 56 deletions
This file was deleted.

credentials/HttpBinApi.credentials.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

credentials/SearchAPI.credentials.ts renamed to credentials/SearchApi.credentials.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import {
44
INodeProperties,
55
} from 'n8n-workflow';
66

7-
export class SearchAPI implements ICredentialType {
7+
export class SearchApi implements ICredentialType {
88
name = 'searchApi';
9-
displayName = 'SearchAPI';
9+
displayName = 'SearchAPI API';
1010

1111
// Uses the link to this tutorial as an example
1212
// Replace with your own docs links when building your own nodes
@@ -16,17 +16,18 @@ export class SearchAPI implements ICredentialType {
1616
displayName: 'API Key',
1717
name: 'apiKey',
1818
type: 'string',
19+
typeOptions: { password: true },
1920
default: '',
2021
required: true,
2122
},
2223
];
23-
authenticate = {
24+
authenticate: IAuthenticateGeneric = {
2425
type: 'generic',
2526
properties: {
2627
qs: { api_key: '={{ $credentials.apiKey }}' },
2728
headers: {
2829
"X-SearchApi-Source": "N8N"
2930
}
3031
}
31-
} as IAuthenticateGeneric;
32+
};
3233
}

nodes/ExampleNode/ExampleNode.node.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.

nodes/HttpBin/HttpBin.node.ts

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)