sarem eskandary
sarem eskandary

Reputation: 560

convert swagger to postman with JSON that gotten from swagger-ui-init.js

I want to use swagger that already deployed in the server. in most tutorials I saw that they used link from swagger header but I don't have it.

enter image description here

using link (http://95.216.161.15:30400/api-docs/) tab link will return this:

Error while importing: format not recognized


I saw this answer that says I can use swagger-ui-init.js for extracting JSON from in it.

Now I have this

enter image description here

when I importing It as OpenAPI it will return this:

Error while importing: format not recognized

what should I do to fix this issue?

Upvotes: 0

Views: 950

Answers (1)

Helen
Helen

Reputation: 97991

You need just this part, without the trailing comma.

Upvotes: 3

Related Questions