Skip to content

Instantly share code, notes, and snippets.

@CryceTruly
Created October 13, 2022 18:50
Show Gist options
  • Save CryceTruly/826c19eee132e7b0df230eb00c3cee38 to your computer and use it in GitHub Desktop.
Save CryceTruly/826c19eee132e7b0df230eb00c3cee38 to your computer and use it in GitHub Desktop.
path('', WelcomeView.as_view(), name='welcome'),
path('logout/', LogoutView.as_view(), name='logout'),
path('swagger/api.json', schema_view.without_ui(cache_timeout=0), name='schema-json'),
path('swagger', schema_view.with_ui('swagger', cache_timeout=0), name='api-documentation'),
path('redoc', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment