From 2db4aeb2589517044ddd48479431dce52dff384f Mon Sep 17 00:00:00 2001 From: Johan Castiblanco Date: Thu, 6 Jul 2023 15:41:25 -0500 Subject: [PATCH] chore: update docstring for the api --- eox_nelp/course_experience/api/v1/views.py | 54 ++++++++++++++-------- 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/eox_nelp/course_experience/api/v1/views.py b/eox_nelp/course_experience/api/v1/views.py index feb55adb..d5856ef7 100644 --- a/eox_nelp/course_experience/api/v1/views.py +++ b/eox_nelp/course_experience/api/v1/views.py @@ -228,13 +228,15 @@ class LikeDislikeUnitExperienceView(UnitExperienceView): "author": { "data": { "type": "User", - "id": "7" + "id": "7", + "attributes": {} } }, "course_id": { "data": { "type": "CourseOverview", - "id": "course-v1:edX+213+2121" + "id": "course-v1:edX+213+2121", + "attributes": {} } } } @@ -251,13 +253,15 @@ class LikeDislikeUnitExperienceView(UnitExperienceView): "author": { "data": { "type": "User", - "id": "7" + "id": "7", + "attributes": {} } }, "course_id": { "data": { "type": "CourseOverview", - "id": "course-v1:edX+213+2121" + "id": "course-v1:edX+213+2121", + "attributes": {} } } } @@ -363,13 +367,15 @@ class ReportUnitExperienceView(UnitExperienceView): "author": { "data": { "type": "User", - "id": "7" + "id": "7", + "attributes": {} } }, "course_id": { "data": { "type": "CourseOverview", - "id": "course-v1:edX+213+2121" + "id": "course-v1:edX+213+2121", + "attributes": {} } } } @@ -386,13 +392,15 @@ class ReportUnitExperienceView(UnitExperienceView): "author": { "data": { "type": "User", - "id": "7" + "id": "7", + "attributes": {} } }, "course_id": { "data": { "type": "CourseOverview", - "id": "course-v1:edX+213+2121" + "id": "course-v1:edX+213+2121", + "attributes": {} } } } @@ -766,13 +774,15 @@ class FeedbackCourseExperienceView(CourseExperienceView): "author": { "data": { "type": "User", - "id": "7" + "id": "7", + "attributes": {} } }, "course_id": { "data": { "type": "CourseOverview", - "id": "course-v1:edX+test+2023" + "id": "course-v1:edX+test+2023", + "attributes": {} } } } @@ -792,13 +802,15 @@ class FeedbackCourseExperienceView(CourseExperienceView): "author": { "data": { "type": "User", - "id": "7" + "id": "7", + "attributes": {} } }, "course_id": { "data": { "type": "CourseOverview", - "id": "course-v1:edX+cd101+220-t2" + "id": "course-v1:edX+cd101+220-t2", + "attributes": {} } } } @@ -970,13 +982,15 @@ class PublicFeedbackCourseExperienceView(PublicBaseJsonAPIView, FeedbackCourseEx "author": { "data": { "type": "User", - "id": "7" + "id": "7", + "attributes": {} } }, "course_id": { "data": { "type": "CourseOverview", - "id": "course-v1:edX+2323+232" + "id": "course-v1:edX+2323+232", + "attributes": {} } } } @@ -996,13 +1010,15 @@ class PublicFeedbackCourseExperienceView(PublicBaseJsonAPIView, FeedbackCourseEx "author": { "data": { "type": "User", - "id": "9" + "id": "9", + "attributes": {} } }, "course_id": { "data": { "type": "CourseOverview", - "id": "course-v1:edX+cd101+2023-t2" + "id": "course-v1:edX+cd101+2023-t2", + "attributes": {} } } } @@ -1022,13 +1038,15 @@ class PublicFeedbackCourseExperienceView(PublicBaseJsonAPIView, FeedbackCourseEx "author": { "data": { "type": "User", - "id": "4" + "id": "4",, + "attributes": {} } }, "course_id": { "data": { "type": "CourseOverview", - "id": "course-v1:edX+2323+232" + "id": "course-v1:edX+2323+232", + "attributes": {} } } }