Module stoplight_elements

Source
Expand description

Provides a OpenAPI UI using the Stoplight Elements interface.

Constantsยง

STOPLIGHT_UI_CSS ๐Ÿ”’
Stoplight Elements UI CSS
STOPLIGHT_UI_JS ๐Ÿ”’
Stoplight Elements UI JavaScript
STOPLIGHT_UI_TEMPLATE ๐Ÿ”’
Stoplight Elements UI Template

Functionsยง

create_endpoint ๐Ÿ”’
Create an endpoint to return the Stoplight documentation for our API.
create_html ๐Ÿ”’
Create the HTML from the Stoplight template above and our included CSS and .JS file.