-
Notifications
You must be signed in to change notification settings - Fork 1
/
authentication.js
38 lines (36 loc) · 1.05 KB
/
authentication.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/** Copyright (C) 2021-2022, Mindee.
*
* This program is licensed under the MIT License.
* See LICENSE for full license details.
*/
module.exports = {
type: 'custom',
test: {
url: 'https://api.mindee.net/v1/customers/self/products',
method: 'GET',
params: {},
headers: { Authorization: 'Token {{bundle.authData.api_key}}' },
body: {},
removeMissingValuesFrom: {},
},
fields: [
{
computed: false,
key: 'connection_name',
required: true,
type: 'string',
helpText:
'Name that will be displayed as the name of this connection, in case you want to use several Mindee users/organizations',
},
{
computed: false,
key: 'api_key',
required: true,
type: 'password',
helpText:
'Insert your API key in order to make calls to the Mindee platform. You can create your API key as mentioned here: https://developers.mindee.com/docs/create-api-key#creating-your-api-key',
},
],
connectionLabel: '{{bundle.authData.connection_name}}',
customConfig: {},
};