Skip to content

Commit 4ab1d52

Browse files
committed
chore: chore
1 parent 1a4e644 commit 4ab1d52

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

xblocks_contrib/lti/lti.py

+22-22
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
b.) Currently only action "update" is supported. "Read", and "delete"
4343
actions initially weren't required.
4444
B) LTI 2.0 Result Service JSON REST endpoint
45-
(http://www.imsglobal.org/lti/ltiv2p0/uml/purl.imsglobal.org/vocab/lis/v2/outcomes/Result/service.html)
45+
(http://www.imsglobal.org/lti/ltiv2p0/uml/purl.imsglobal.org/vocab/lis/v2/outcomes/Result/service.html)
4646
a.) Discovery of all such LTI http endpoints for a course. External tools GET from this discovery
4747
endpoint and receive URLs for interacting with individual grading units.
4848
(see lms/djangoapps/courseware/views/views.py:get_course_lti_endpoints)
@@ -561,27 +561,27 @@ def grade_handler(self, request, suffix): # lint-amnesty, pylint: disable=unuse
561561
562562
<?xml version = "1.0" encoding = "UTF-8"?>
563563
<imsx_POXEnvelopeRequest xmlns = "some_link (may be not required)">
564-
<imsx_POXHeader>
565-
<imsx_POXRequestHeaderInfo>
566-
<imsx_version>V1.0</imsx_version>
567-
<imsx_messageIdentifier>528243ba5241b</imsx_messageIdentifier>
568-
</imsx_POXRequestHeaderInfo>
569-
</imsx_POXHeader>
570-
<imsx_POXBody>
571-
<replaceResultRequest>
572-
<resultRecord>
573-
<sourcedGUID>
574-
<sourcedId>feb-123-456-2929::28883</sourcedId>
575-
</sourcedGUID>
576-
<result>
577-
<resultScore>
578-
<language>en-us</language>
579-
<textString>0.4</textString>
580-
</resultScore>
581-
</result>
582-
</resultRecord>
583-
</replaceResultRequest>
584-
</imsx_POXBody>
564+
<imsx_POXHeader>
565+
<imsx_POXRequestHeaderInfo>
566+
<imsx_version>V1.0</imsx_version>
567+
<imsx_messageIdentifier>528243ba5241b</imsx_messageIdentifier>
568+
</imsx_POXRequestHeaderInfo>
569+
</imsx_POXHeader>
570+
<imsx_POXBody>
571+
<replaceResultRequest>
572+
<resultRecord>
573+
<sourcedGUID>
574+
<sourcedId>feb-123-456-2929::28883</sourcedId>
575+
</sourcedGUID>
576+
<result>
577+
<resultScore>
578+
<language>en-us</language>
579+
<textString>0.4</textString>
580+
</resultScore>
581+
</result>
582+
</resultRecord>
583+
</replaceResultRequest>
584+
</imsx_POXBody>
585585
</imsx_POXEnvelopeRequest>
586586
587587
Example of correct/incorrect answer XML body:: see response_xml_template.

xblocks_contrib/lti/lti_2_util.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def lti_2_0_result_rest_handler(self, request, suffix):
4343
See http://www.imsglobal.org/lti/ltiv2p0/uml/purl.imsglobal.org/vocab/lis/v2/outcomes/Result/service.html
4444
An example JSON object:
4545
{
46-
"@context" : "http://purl.imsglobal.org/ctx/lis/v2/Result",
47-
"@type" : "Result",
48-
"resultScore" : 0.83,
49-
"comment" : "This is exceptional work."
46+
"@context" : "http://purl.imsglobal.org/ctx/lis/v2/Result",
47+
"@type" : "Result",
48+
"resultScore" : 0.83,
49+
"comment" : "This is exceptional work."
5050
}
5151
For PUTs, the content type must be "application/vnd.ims.lis.v2.result+json".
5252
We use the "suffix" parameter to parse out the user from the end of the URL. An example endpoint url is

0 commit comments

Comments
 (0)