apinf / openapi-designer

Design interface for creating Open API (Swagger) specification files
https://openapi.design
MIT License
69 stars 18 forks source link

Set default display by URL parameter #341

Open brylie opened 7 years ago

brylie commented 7 years ago

When sharing links to the OpenAPI Designer, it might be useful to link someone to the rich preview view rather than the editor view. E.g. in issue #340 the spec file could be loaded by URL parameter and the viewer could display the rich preview mode automatically.

Consider adding a URL parameter when toggling the view mode, so that users can share a link that includes a desired view mode.