table of contents
other versions
- stretch 0.77-1
Swagger2::Editor(3pm) | User Contributed Perl Documentation | Swagger2::Editor(3pm) |
NAME¶
Swagger2::Editor - A WEB based Swagger2 API editorDESCRIPTION¶
Swagger2::Editor is a WEB based Swagger2 API editor.SYNOPSIS¶
$ mojo swagger2 edit /path/to/api.json --listen http://*:3000
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 ThorsenThis program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
AUTHOR¶
Jan Henning Thorsen - "jhthorsen@cpan.org"2016-04-17 | perl v5.22.1 |