swagger-editor icon indicating copy to clipboard operation
swagger-editor copied to clipboard

save rendered html?

Open ghost opened this issue 12 years ago • 19 comments

From Swagger Editor, there seems to be no option to save the generated HTML. Am I missing something?

ghost avatar Oct 20 '14 13:10 ghost

No, we don't have this feature yet. you can use #/prevew to get the preview of the docs. But no static HTML yet

mohsen1 avatar Oct 20 '14 16:10 mohsen1

Jitin, Would you mind creating a github issue? Or better at adding this feature if you can.

On Mon, Oct 20, 2014 at 9:44 AM, Mohsen Azimi [email protected] wrote:

No, we don't have this feature yet. you can use #/prevew to get the preview of the docs. But no static HTML yet

— Reply to this email directly or view it on GitHub https://github.com/wordnik/swagger-editor/issues/210#issuecomment-59795597 .

Cheers,

Prabhat

Help spread www.eejot.org

prabhatjha avatar Oct 20 '14 16:10 prabhatjha

Ignore my comment here about github issues. I had a brain fart :-( On Oct 20, 2014 9:47 AM, "Prabhat Jha" [email protected] wrote:

Jitin, Would you mind creating a github issue? Or better at adding this feature if you can.

On Mon, Oct 20, 2014 at 9:44 AM, Mohsen Azimi [email protected] wrote:

No, we don't have this feature yet. you can use #/prevew to get the preview of the docs. But no static HTML yet

— Reply to this email directly or view it on GitHub https://github.com/wordnik/swagger-editor/issues/210#issuecomment-59795597 .

Cheers,

Prabhat

Help spread www.eejot.org

prabhatjha avatar Oct 20 '14 23:10 prabhatjha

I 110% vote for this feature. The Codegen project doesn't work as well as this does. Would love to see this, as a Download as HTML in the Nav Bar File Tab.

SirWellington avatar Dec 19 '14 21:12 SirWellington

@SirWellington @jitin-sameer This feature has been added. Click File>Download HTML to get the docs as a stand-alone document

mohsen1 avatar Jan 27 '15 21:01 mohsen1

I don't see this option, just File > Download (JSON, YAML)

rafaferreira avatar Mar 03 '15 02:03 rafaferreira

@rafaferreira Please use Swagger UI for rendering the UI.

mohsen1 avatar Mar 03 '15 03:03 mohsen1

Hey @mohsen1, thanks for your reply.

But what that means? I'm using http://editor.swagger.io

rafaferreira avatar Mar 03 '15 03:03 rafaferreira

Swagger Editor can export your specs JSON. Use that JSON to render your UI using Swagger UI. Read swagger ui docs for more information

mohsen1 avatar Mar 03 '15 03:03 mohsen1

So the feature hasn't been added?

richmidwinter avatar Jul 29 '15 19:07 richmidwinter

This feature was removed

mohsen1 avatar Jul 29 '15 19:07 mohsen1

Oh. That's a shame.

richmidwinter avatar Jul 29 '15 19:07 richmidwinter

Swagger UI is the one for rendering the UI but if you you can "cheat" and serve entire Swagger Editor with a custom CSS that hides editor parts. Learn about configuring Swagger Editor in the configuration docs

mohsen1 avatar Jul 29 '15 19:07 mohsen1

Why was the feature removed?

EDIT: I guess because of this https://github.com/swagger-api/swagger-editor/issues/325

henrikakselsen avatar Aug 05 '15 07:08 henrikakselsen

This feature should definitely be supported...why does it get removed....

kongfujianlong avatar Sep 22 '15 14:09 kongfujianlong

:+1: on rendering HTML

kinduff avatar Sep 30 '15 16:09 kinduff

CORS would be an issue on any exported HTML though.

chrisdudley avatar Sep 30 '15 17:09 chrisdudley

What about using behind a firewall? Save as html seems like a necessary feature.

sadlerw avatar Feb 12 '16 18:02 sadlerw

TBH - the UI is missing the aesthetics of the editor - wish I could just grab html from the editor instead ; )

unsalted avatar May 31 '16 02:05 unsalted