Easy-mock uses the official website to suggest why the Internal Server Error, should be displayed according to the api-docs of the private network swagger.

I glued the local json file to the interface of one project according to the official website, and then another project used this interface as the url of swagger doc api
but reported an error

.

Intranet Swagger documents

if the Swagger document can only be accessed through the intranet, then the extranet Easy Mock will not be able to create a project for it.

solution

not applicable to OAS 1.2

copy the JSON data of the document interface, take Petstore as an example
create a new interface in Easy Mock, paste the interface data you just copied in the data editor (which may be a bit large) and finish creating
copy the URL
of the interface you just created. Create a new project, Swagger Docs API text box and fill in the URL
you just copied. Click create

after filling in other contents.

after I imported the json file, I formatted the file, which caused the file to grow. It should be that easy-mock limits the size of the content. If the formatting is not performed, it is normal

.
Menu