From 8c071a30b4e84f48c67bf111ea5f999f294cb5d0 Mon Sep 17 00:00:00 2001 From: Maria Fernanda Magallanes Zubillaga Date: Tue, 3 Oct 2023 21:22:49 -0500 Subject: [PATCH] docs: fix the EnrollmentAllowedView doc to be right --- openedx/core/djangoapps/enrollments/views.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openedx/core/djangoapps/enrollments/views.py b/openedx/core/djangoapps/enrollments/views.py index 80f6df8531..f413cb761e 100644 --- a/openedx/core/djangoapps/enrollments/views.py +++ b/openedx/core/djangoapps/enrollments/views.py @@ -1066,7 +1066,9 @@ class EnrollmentAllowedView(APIView): **Example Request** - POST /api/enrollment/v1/enrollment_allowed + POST /api/enrollment/v1/enrollment_allowed/ + + Note: The URL for this request must finish with / Example request data: ``` @@ -1086,7 +1088,6 @@ class EnrollmentAllowedView(APIView): - `auto_enroll` (optional, bool: default=false, _body_) **Responses** - - 200: Success, enrollment allowed found. - 400: Bad request, missing data. - 403: Forbidden, you need to be staff. - 409: Conflict, enrollment allowed already exists. @@ -1122,7 +1123,9 @@ class EnrollmentAllowedView(APIView): **Example Request** - DELETE /api/enrollment/v1/enrollment_allowed + DELETE /api/enrollment/v1/enrollment_allowed/ + + Note: The URL for this request must finish with / Example request data: ```