import { useState, useRef } from 'react'; import { IconCheck } from '@tabler/icons'; import Button from 'ui/Button'; import { isHttpUrl } from 'utils/url/index'; import { isOpenApiSpec } from 'utils/importers/openapi-collection'; import { parseFileAsJsonOrYaml } from 'utils/importers/file-reader'; const FEATURES = [ 'Detect new, modified, and removed endpoints', 'Track local changes against the spec', 'Sync collection with a single click', 'Your tests, assertions, and scripts are preserved during sync' ]; const ConnectSpecForm = ({ sourceUrl, setSourceUrl, isLoading, error, setError, onConnect }) => { const [mode, setMode] = useState('url'); const fileInputRef = useRef(null); return (
Keep your collection synchronized with an OpenAPI specification. Changes in the spec will be detected automatically.
OpenAPI Sync is in Beta — we'd love to hear your feedback and suggestions.{' '}