Swagger2::Editor(3pm)

Swagger2::Editor3pm

A web based swagger2 api editor

Usage

  $ mojo swagger2 edit /path/to/api.json --listen http://*:3000

Overview

Swagger2::Editor is a WEB based Swagger2 API editor.

Attributes

specification_file

Returns path to swagger specification file. Defaults to "SWAGGER_API_FILE" environment variable.

Routes

Get /

Will render the editor and any Swagger specification given as input.

Can also just render the POD if requested as "/.txt" instead.

Post /

Will parse the JSON/YAML in the HTTP body and render it as POD.

Methods

startup

Used to set up the "ROUTES".

Author

Jan Henning Thorsen - "[email protected]"

From libswagger2-perl 0.77-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.