Â
Â
Description
Related to https://openedx.atlassian.net/browse/BOM-1359
Move to drf-yasg https://openedx.atlassian.net/wiki/spaces/AC/pages/1232699482/edx-analytics-data-api+Dependencies+Support+for+Django+2.2
This works fine and looks great, but this warning appears in every request to /api-docs/
```
edx.devstack.analyticsapi | view's EnterpriseLearnerCompletedCoursesViewSet raised exception during schema generation; use `getattr(self, 'swagger_fake_view', False)` to detect and short-circuit this
edx.devstack.analyticsapi | Traceback (most recent call last):
edx.devstack.analyticsapi | File "/edx/app/analytics_api/venvs/analytics_api/lib/python3.5/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
edx.devstack.analyticsapi | return view_method()
edx.devstack.analyticsapi | File "/edx/app/analytics_api/venvs/analytics_api/lib/python3.5/site-packages/enterprise_data/api/v0/views.py", line 331, in get_queryset
edx.devstack.analyticsapi | enterprise_id = self.kwargs['enterprise_id']
edx.devstack.analyticsapi | KeyError: 'enterprise_id'
```
That warning could be removed with this change https://github.com/edx/edx-enterprise-data/pull/193/files
My other concern is that edx-api-doc-tools is only creating the documentations for the /[api/ endpoints](https://github.com/edx/api-doc-tools/blob/c2f2456c9561e1192fde214c9314d43f763ca748/edx_api_doc_tools/conf_utils.py#L157) and data-api has also /enterprise/ /api-token-auth /health /status and /authenticated
Â
Reviewers
[ ] Is this ready for edX's review?
[ ] @andrey-canon