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".
Copyright and license
Copyright (C) 2014-2015, Jan Henning Thorsen
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.