RE: Customize Swagger Editor

88 views
Skip to first unread message

RajuS

unread,
Aug 16, 2017, 7:45:23 PM8/16/17
to Swagger
Hello.
Has anyone worked on customizing the latest swagger editor ? Facing challenges in rendering custom page instead of petstore page.

Hemika Kodikara

unread,
Aug 17, 2017, 2:19:35 AM8/17/17
to Swagger
Hi Raju, 

Customizing in the sense of embedding it to an web application ? Or a different customization ?

Regards,
Hemika

RajuS

unread,
Aug 18, 2017, 1:35:22 PM8/18/17
to Swagger
HI Hemika.
I'm able to build and load the javascript files dist/swagger-editor-bundle.js and /dist/swagger-editor-standalone-preset.js.
What I'm looking for is, how to render the editor with a content from a previous page input.

Example: 
We have a API Portal, where in first page the developer enters certain fields and when he clicks Next, the entries are build as a json and the contents should go into a editor.

In the previous version, the contents of editor page was being rendered from .yaml and this was achievable but with the latest version - this functionality is built in .js file

How to achieve this ?

Thanks,
Raju
Reply all
Reply to author
Forward
0 new messages