-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Missing settings.SWAGGER_SETTINGS["DEFAULT_INFO"] #3935
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
Comments
The schema can be generated through the API through I think it'd be good to move Edit: noticed that we can't import openapi in settings.py due to |
I would accept this issue to implement. From drf-yang docs, that one mentioned by @hSaria is an usual way. in settings.py
in urls.py
|
Personally I don't see the benefit over just using the API (which can be accessed remotely) for this, but that's a matter for discussion in the feature request. |
Oh, I figured it should’ve been there since the start, but was simply missed.
I personally wouldn’t even document it. As you mentioned, the API is the way to go for most people, but since this is an implementation of drf_yasg, people familiar with that project might know of manage subcommand and use it as a standard method of generating the schema in their environment. In other words, only those that understand the subcommand’s scope would use it; documenting it might steer people away from the native method, the API.
… On 23 Jan 2020, at 4:10 pm, Jeremy Stretch ***@***.***> wrote:
manage.py generate_swagger is not a documented feature of NetBox. It's provided by the drf_yasg library but not explicitly supported, so first we would need a feature request to propose officially supporting the command (including the introduction of documentation for it).
Personally I don't see the benefit over just using the API (which can be accessed remotely) for this, but that's a matter for discussion in the feature request.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Fixes #3935: Swagger DEFAULT_INFO
Environment
Steps to Reproduce
Expected Behavior
Schema generated
Observed Behavior
The text was updated successfully, but these errors were encountered: