From eb1a0f303ee78291c55d21a633e8954d93672f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Fri, 13 Sep 2024 15:13:23 -0300 Subject: [PATCH] docs: mark view and url as unstable --- openedx/core/djangoapps/xblock/rest_api/urls.py | 1 + openedx/core/djangoapps/xblock/rest_api/views.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/openedx/core/djangoapps/xblock/rest_api/urls.py b/openedx/core/djangoapps/xblock/rest_api/urls.py index 2d88b1531f22..dec2fc562fee 100644 --- a/openedx/core/djangoapps/xblock/rest_api/urls.py +++ b/openedx/core/djangoapps/xblock/rest_api/urls.py @@ -31,6 +31,7 @@ ])), path('xblocks/v2//', 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[\w\-]+)/$', views.embed_block_view), ])), ] diff --git a/openedx/core/djangoapps/xblock/rest_api/views.py b/openedx/core/djangoapps/xblock/rest_api/views.py index c6fc9f42ec1f..7934e24bd2db 100644 --- a/openedx/core/djangoapps/xblock/rest_api/views.py +++ b/openedx/core/djangoapps/xblock/rest_api/views.py @@ -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