Hi Deactivated user & @justinball ,
We have an exact scenario to develop an LTI with out depending on Canvas Assignment API. I tried to use the example from 3 Information Model . But Canvas is not deep linking to page when am trying from editor button. May i know if there is any solution implemented(I see a story raised from Jesse Replies) to add the Line Item to grade book with out using Canvas Assignment API.
Below is the exact json am trying to use : (I tried placing my LTI link in (graph:url )& (graph:lineItem:assignedActivity:Id))
1. Am I using the wrong placeholder to place my Lti Link ?
2. Are there any prerequisites before adding a lineItem (I didn't exactly get the difference and usage of assignedActivity)
Any help would be much appreciated.
{
"@context": [
"http://purl.imsglobal.org/ctx/lti/v1/ContentItem",
{
"lineItem": "http://purl.imsglobal.org/ctx/lis/v2/LineItem",
"res": "http://purl.imsglobal.org/ctx/lis/v2p1/Result#"
}
],
"@graph": [
{
"@type": "LtiLinkItem",
"mediaType": "application/vnd.ims.lti.v1.ltilink",
"title": "Uts Custom quiz",
"url": "https://localhost:5001/api/LtiLaunch/",
"lineItem": {
"@type": "LineItem",
"label": "Uts Custom quiz",
"reportingMethod": "res:totalScore",
"assignedActivity": {
"@id": "https://localhost:5001/api/LtiLaunch/",
"activityId": "a-9334df-33"
},
"scoreConstraints": {
"@type": "NumericLimits",
"normalMaximum": 100,
"extraCreditMaximum": 10,
"totalMaximum": 110
}
}
}
]
}
Regards,
Hem.