Created attachment 192308 [details] py-drf-yasg.shar Hello, attached is the shar file for the Python package py-drf-yasg, that generates real Swagger/OpenAPI 2.0 specifications from a Django Rest Framework API. Features: - full support for nested serializers and schemas - response schemas and descriptions - model definitions compatible with codegen tools - customization hooks at all points in the spec generation process - JSON and YAML format for spec - bundles latest version of swagger-ui and redoc for viewing the generated documentation - schema view is cacheable out of the box - generated Swagger schema can be automatically validated by swagger-spec-validator or flex - supports Django REST Framework API versioning with URLPathVersioning and NamespaceVersioning (other DRF or custom versioning schemes are not currently supported) QA: ~~~ - poudriere (11.1-RELEASE amd64 + i386) for each py27 and py36 flavor -> OK - portlint -> OK Note: ~~~~~ Before this package can be commited, two dependencies must be resolved first: - update devel/py-ruamel.yaml to 0.15.37 (see also PR #227121: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227121) - add www/py-djangorestframework (v3.8.1) to the ports tree (see also PR #227319: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227319)
maintainer approved
sorry, opened wrong bug report.
Committed, thanks!
A commit references this bug: Author: pi Date: Tue Apr 17 20:18:06 UTC 2018 New revision: 467653 URL: https://svnweb.freebsd.org/changeset/ports/467653 Log: New port: www/py-drf-yasg Generate real Swagger/OpenAPI 2.0 specifications from a Django Rest Framework API. Features: - full support for nested serializers and schemas - response schemas and descriptions - model definitions compatible with codegen tools - customization hooks at all points in the spec generation process - JSON and YAML format for spec - bundles latest version of swagger-ui and redoc for viewing the generated documentation - schema view is cacheable out of the box - generated Swagger schema can be automatically validated by swagger-spec-validator or flex - supports Django REST Framework API versioning with URLPathVersioning and NamespaceVersioning (other DRF or custom versioning schemes are not currently supported) WWW: https://github.com/axnsan12/drf-yasg PR: 227344 Submitted by: Kai <freebsd_ports@k-worx.org> Changes: head/www/Makefile head/www/py-drf-yasg/ head/www/py-drf-yasg/Makefile head/www/py-drf-yasg/distinfo head/www/py-drf-yasg/pkg-descr
Landed in ports.