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

swagger ui: use sessions, more compact UI #3025

Merged
merged 3 commits into from
Oct 18, 2020

Conversation

valentijnscholten
Copy link
Member

@valentijnscholten valentijnscholten commented Oct 17, 2020

Small update to config of django-rest-swagger:

  • Use django session. So if you're already logged in, you don't need to mess with the token. It will show the username of the logged in user top righ, see screenshot. If you need to test a specific api token from a different user maybe, open a new (incognito) browser tab/window.
  • This also allows you to just enter some api urls in the browser to see the json, i.e. http://dojo/api/v2/findings/1
  • Show a little less expaned view by default so it's easier to scroll to the api endpoint you want.
  • Enable json editor. Not seen what it does yet, but it's supposed to help editing complex json bodies. Can't hurt I guess.

image

Copy link
Collaborator

@madchap madchap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Maffooch Maffooch added the settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR label Oct 18, 2020
@Maffooch Maffooch merged commit 5213cb3 into DefectDojo:dev Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants