Skip to content

Commit

Permalink
docs: mark view and url as unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Sep 13, 2024
1 parent 45f392c commit eb1a0f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions openedx/core/djangoapps/xblock/rest_api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
])),
path('xblocks/v2/<str:usage_key_str>/', include([
# render one of this XBlock's views (e.g. student_view) for embedding in an iframe
# NOTE: this endpoint is **unstable** and subject to changes after Sumac
re_path(r'^embed/(?P<view_name>[\w\-]+)/$', views.embed_block_view),
])),
]
2 changes: 2 additions & 0 deletions openedx/core/djangoapps/xblock/rest_api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def render_block_view(request, usage_key_str, view_name):
def embed_block_view(request, usage_key_str, view_name):
"""
Render the given XBlock in an <iframe>
Unstable - may change after Sumac
"""
try:
usage_key = UsageKey.from_string(usage_key_str)
Expand Down

0 comments on commit eb1a0f3

Please sign in to comment.