Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use drf_yasg to generate swagger #1930

Merged
merged 4 commits into from
Mar 21, 2018

Commits on Mar 15, 2018

  1. Use drf_yasg to generate swagger

    drf_yasg provides more complete swagger output, allowing for generation
    of usable clients.
    
    Some custom work was needed to accommodate Netbox's custom field
    serializers, and to provide x-nullable attributes where appropriate.
    davcamer committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    b83de7e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    53e4e74 View commit details
    Browse the repository at this point in the history
  3. The id__in field is a csv-separated string of ids

    drf_yasg is interpreting it as a number because NumericInFilter inherits
    from django's NumberFilter which explicitly identifies as being a
    DecimalField.
    davcamer committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    e071b7d View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2018

  1. Configuration menu
    Copy the full SHA
    b5f1d74 View commit details
    Browse the repository at this point in the history