UNPKG

@axway/api-builder-plugin-dc-mbs

Version:

Mobile Backend Services connector

42 lines (39 loc) 999 B
/** * Fetches metadata describing your connector's proper configuration. * @param {function} next Callback with metadata. */ function fetchMetadata (next) { const { Metadata } = this.runtime; next(null, { fields: [ Metadata.Text({ name: 'key', description: 'The MBS instance App Key', required: true }), Metadata.Text({ name: 'username', description: 'The user with which to connect to MBS.', required: true }), Metadata.Text({ name: 'password', description: 'The user password with which to connect to MBS.', required: true }), Metadata.NumField({ name: 'pingInterval', description: 'The time in ms to ping MBS to keep the current session alive. Defaults to once a day. Set to -1 to disable.', required: false }), Metadata.Text({ name: 'baseurl', description: 'Location where MBS is hosted. Defaults to Amplify Platform Production', required: false }) ] }); } module.exports = { fetchMetadata };