Skip to content

Commit

Permalink
remove openapi
Browse files Browse the repository at this point in the history
Due to:
```
'Request' object has no attribute 'accepted_renderer'
```
and packakging rules openapi gets removed for now.
  • Loading branch information
nichtsfrei committed Nov 30, 2020
1 parent 76e0f23 commit d29961c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 115 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
- libsass support: https://sass-lang.com/blog/libsass-is-deprecated [111](https://github.com/greenbone/pheme/pull/111)
- equipment treemap [112](https://github.com/greenbone/pheme/pull/112)
- openapi [127](https://github.com/greenbone/pheme/pull/127)
### Fixed

[Unreleased]: https://github.com/greenbone/pheme/compare/v0.0.1a3...HEAD
Expand Down
20 changes: 1 addition & 19 deletions pheme/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""

from django.urls import path, re_path
from django.views.generic import TemplateView
from rest_framework.schemas import get_schema_view
from django.urls import path
import pheme.version
import pheme.views
import pheme.parameter
Expand Down Expand Up @@ -66,20 +64,4 @@
pheme.views.template_elements,
name='template_elements',
),
re_path(
r'^openapi-schema',
get_schema_view(
title="Pheme",
description="static report generation",
public=True,
),
name='openapi-schema',
),
path(
'docs/',
TemplateView.as_view(
template_name='swagger-ui.html',
extra_context={'schema_url': 'openapi-schema'},
),
),
]
92 changes: 0 additions & 92 deletions static/swagger-ui-bundle.js

This file was deleted.

4 changes: 0 additions & 4 deletions static/swagger-ui.css

This file was deleted.

0 comments on commit d29961c

Please sign in to comment.