import React, {PropTypes, PureComponent} from 'react'; import autobind from 'autobind-decorator'; import {Dropdown, DropdownButton, DropdownDivider, DropdownItem} from '../base/dropdown'; import Link from '../base/link'; import {showPrompt} from '../modals/index'; @autobind class ImportExport extends PureComponent { _handleImportUri () { showPrompt({ headerName: 'Import Data from URL', submitName: 'Fetch and Import', label: 'URL', placeholder: 'https://website.com/insomnia-import.json', onComplete: uri => { this.props.handleImportUri(uri); } }); } render () { const { handleImportFile, handleExportAll, handleExportWorkspace } = this.props; return (
Import format will be automatically detected (Insomnia, Postman v2, HAR, Curl)
Don't see your format here? {' '} Add Your Own.
* Tip: You can also paste Curl commands into the URL bar