跳到主要内容

Import Project

提示

Currently, EchoAPI supports importing files from Swagger 2.0 and 3.0, Postman, cURL, Insomnia, and Apidoc.

image.png

Postman

Step 1 Export data from Postman.

image.png

Step 2 Select v2.1

image.png

Step 3 Import the file into EchoAPI.

image.png

Swagger

EchoAPI can import APIs created with the Swagger toolset or any API that follows a supported version of the OpenAPI specification.

Note: In this document, a Swagger API refers to an API created with the Swagger toolset.

image.png

cURL

cURL is a popular command-line tool for making HTTP requests. You can obtain the cURL command from the browser or through other methods.

curl -X POST "https://httpbin.org/anything" -H "accept: application/json"

Select cURL from the menu on the left to create a new request.

image.png

image.png

Insomnia

setp 1 Export data from Insomnia.

image.png

setp 2 Select Insomnia v4(JSON) image.png

setp 3 Import into EchoAPI.

image.png