Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
f0fa5f71
Commit
f0fa5f71
authored
5 years ago
by
Ned Batchelder
Browse files
Options
Downloads
Patches
Plain Diff
Enable Studio API docs in devstack
parent
135cbe76
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cms/envs/common.py
+1
-1
1 addition, 1 deletion
cms/envs/common.py
cms/envs/devstack.py
+4
-0
4 additions, 0 deletions
cms/envs/devstack.py
cms/urls.py
+4
-2
4 additions, 2 deletions
cms/urls.py
with
9 additions
and
3 deletions
cms/envs/common.py
+
1
−
1
View file @
f0fa5f71
...
...
@@ -1173,7 +1173,7 @@ INSTALLED_APPS = [
'
pipeline_mako
'
,
# API Documentation
'
rest_framework_swagger
'
,
'
drf_yasg
'
,
'
openedx.features.course_duration_limits
'
,
'
openedx.features.content_type_gating
'
,
...
...
This diff is collapsed.
Click to expand it.
cms/envs/devstack.py
+
4
−
0
View file @
f0fa5f71
...
...
@@ -108,6 +108,10 @@ def should_show_debug_toolbar(request):
DEBUG_TOOLBAR_MONGO_STACKTRACES
=
False
########################### API DOCS #################################
FEATURES
[
'
ENABLE_API_DOCS
'
]
=
True
################################ MILESTONES ################################
FEATURES
[
'
MILESTONES_APP
'
]
=
True
...
...
This diff is collapsed.
Click to expand it.
cms/urls.py
+
4
−
2
View file @
f0fa5f71
...
...
@@ -3,7 +3,7 @@ from django.conf.urls import include, url
from
django.conf.urls.static
import
static
from
django.contrib.admin
import
autodiscover
as
django_autodiscover
from
django.utils.translation
import
ugettext_lazy
as
_
from
rest_framework_swagger.views
import
get_swagger
_view
from
openedx.core.openapi
import
schema
_view
import
contentstore.views
from
cms.djangoapps.contentstore.views.organization
import
OrganizationListView
...
...
@@ -266,7 +266,9 @@ urlpatterns += [
if
settings
.
FEATURES
.
get
(
'
ENABLE_API_DOCS
'
):
urlpatterns
+=
[
url
(
r
'
^api-docs/$
'
,
get_swagger_view
(
title
=
'
Studio API
'
)),
url
(
r
'
^swagger(?P<format>\.json|\.yaml)$
'
,
schema_view
.
without_ui
(
cache_timeout
=
0
),
name
=
'
schema-json
'
),
url
(
r
'
^swagger/$
'
,
schema_view
.
with_ui
(
'
swagger
'
,
cache_timeout
=
0
),
name
=
'
schema-swagger-ui
'
),
url
(
r
'
^api-docs/$
'
,
schema_view
.
with_ui
(
'
swagger
'
,
cache_timeout
=
0
)),
]
from
openedx.core.djangoapps.plugins
import
constants
as
plugin_constants
,
plugin_urls
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment