Page MenuHomeFreeBSD

New port: www/p5-Dancer-Plugin-Swagger: Dancer plugin to create Swagger documentation for app REST
ClosedPublic

Authored by kai on Apr 16 2019, 8:21 AM.

Details

Summary

This plugin provides tools to create and access a Swagger specification file
for a Dancer REST web service.

Overview of Dancer::Plugin::Swagger's features:

  • Can create a /swagger.json REST specification file.
  • Can auto-discover routes and add them to the swagger file.
  • Can provide a Swagger UI version of the swagger documentation.

WWW: https://metacpan.org/pod/Dancer::Plugin::Swagger

PR: 237109
Submitted by: Geoffroy Desvernay
Approved by: (one of the mentors)

Test Plan
  • poudriere (11.2-, 12.0-RELEASE, 13.0-CURRENT@r346132 amd64 + i386) -> OK
  • portlint -> OK
  • Runtime tests -> OK

Results of "make test":

[...]
t/00-report-prereqs.t .. ok
t/basic.t .............. ok
t/definition.t ......... ok
All tests successful.
Files=4, Tests=12, 2 wallclock secs ( 0.02 usr 0.04 sys + 1.41 cusr 0.46 csys = 1.93 CPU)
Result: PASS

Minor fixes from the original patch:

  • Changed maintainer address to submitter's email address
  • Added _LICENSE_FILE
  • Added some missing dependencies for RUN_DEPENDS (detected via "make test")
  • Added TEST_DEPENDS
  • Improved description for COMMENT and pkg-plist

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

kai created this revision.Apr 16 2019, 8:21 AM
miwi accepted this revision.Apr 18 2019, 12:01 PM

LGTM

This revision is now accepted and ready to land.Apr 18 2019, 12:01 PM
This revision was automatically updated to reflect the committed changes.