|
@@ -42,12 +42,6 @@ class DefaultController(Controller):
|
42
|
42
|
exception=exception
|
43
|
43
|
)
|
44
|
44
|
|
45
|
|
- def swagger_doc(self, request: TracimRequest):
|
46
|
|
- return hapic.generate_doc(
|
47
|
|
- title='Tracim v2 API',
|
48
|
|
- description='API of Tracim v2',
|
49
|
|
- )
|
50
|
|
-
|
51
|
45
|
def bind(self, configurator: Configurator):
|
52
|
46
|
configurator.add_view(
|
53
|
47
|
self.notfound_view,
|
|
@@ -59,13 +53,3 @@ class DefaultController(Controller):
|
59
|
53
|
renderer='json',
|
60
|
54
|
context=Exception,
|
61
|
55
|
)
|
62
|
|
- configurator.add_route(
|
63
|
|
- 'swagger_doc',
|
64
|
|
- '/swagger_doc',
|
65
|
|
- request_method='GET',
|
66
|
|
- )
|
67
|
|
- configurator.add_view(
|
68
|
|
- self.swagger_doc,
|
69
|
|
- route_name='swagger_doc',
|
70
|
|
- renderer='json',
|
71
|
|
- )
|