import React, {PureComponent, PropTypes} from 'react'; import autobind from 'autobind-decorator'; import {Dropdown, DropdownButton, DropdownItem, DropdownDivider} from '../base/dropdown'; import PromptModal from '../modals/prompt-modal'; import Link from '../base/link'; import {showModal} from '../modals/index'; @autobind class ImportExport extends PureComponent { async _handleImportUri () { const uri = await showModal(PromptModal, { headerName: 'Import Data from URL', submitName: 'Fetch and Import', label: 'URL', placeholder: 'https://website.com/insomnia-import.json' }); 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