{"action":"created","issue":{"url":"https://api.github.com/repos/open-craft/jsinput-vectordraw/issues/2","labels_url":"https://api.github.com/repos/open-craft/jsinput-vectordraw/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/open-craft/jsinput-vectordraw/issues/2/comments","events_url":"https://api.github.com/repos/open-craft/jsinput-vectordraw/issues/2/events","html_url":"https://github.com/open-craft/jsinput-vectordraw/pull/2","id":61984685,"number":2,"title":"Minimal JS and Python API layers.","user":{"login":"mtyaka","id":32585,"avatar_url":"https://avatars.githubusercontent.com/u/32585?v=3","gravatar_id":"","url":"https://api.github.com/users/mtyaka","html_url":"https://github.com/mtyaka","followers_url":"https://api.github.com/users/mtyaka/followers","following_url":"https://api.github.com/users/mtyaka/following{/other_user}","gists_url":"https://api.github.com/users/mtyaka/gists{/gist_id}","starred_url":"https://api.github.com/users/mtyaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtyaka/subscriptions","organizations_url":"https://api.github.com/users/mtyaka/orgs","repos_url":"https://api.github.com/users/mtyaka/repos","events_url":"https://api.github.com/users/mtyaka/events{/privacy}","received_events_url":"https://api.github.com/users/mtyaka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-16T06:18:41Z","updated_at":"2015-03-16T13:33:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/open-craft/jsinput-vectordraw/pulls/2","html_url":"https://github.com/open-craft/jsinput-vectordraw/pull/2","diff_url":"https://github.com/open-craft/jsinput-vectordraw/pull/2.diff","patch_url":"https://github.com/open-craft/jsinput-vectordraw/pull/2.patch"},"body":"This commit implements the minimal JS and Python APIs for the\r\nVectorDraw JSInput problem type.\r\n\r\nSteps to use in a course:\r\n\r\n- Upload vectordraw.js and vectordraw.css files to course assets;\r\n- Create a copy of api-example.html, change the /c4x/edX/JS101/... asset\r\n  links to match your static file URLs, and update the `vectordraw_settings`\r\n  object for your exercise. The example in api-example.html should be self-explanatory;\r\n- Upload your copy of api-example.html to course assets;\r\n- Create a copy of api-example.xml and change the python code to implement checks\r\n  relevant for your exercise. The python API expects `checks` to be a list of functions\r\n  that receive the `answer` and return nothing if the check passes, and an error message\r\n  if it doesn't. Optionally set `success_message` to the message you want displayed on success.\r\n- Create a new unit, and add a Blank type problem, click 'edit', switch to the XML view,\r\n  and paste the contents of your modified api-example.xml code into it;\r\n- Save and reload the page."},"comment":{"url":"https://api.github.com/repos/open-craft/jsinput-vectordraw/issues/comments/81666003","html_url":"https://github.com/open-craft/jsinput-vectordraw/pull/2#issuecomment-81666003","issue_url":"https://api.github.com/repos/open-craft/jsinput-vectordraw/issues/2","id":81666003,"user":{"login":"e-kolpakov","id":3330048,"avatar_url":"https://avatars.githubusercontent.com/u/3330048?v=3","gravatar_id":"","url":"https://api.github.com/users/e-kolpakov","html_url":"https://github.com/e-kolpakov","followers_url":"https://api.github.com/users/e-kolpakov/followers","following_url":"https://api.github.com/users/e-kolpakov/following{/other_user}","gists_url":"https://api.github.com/users/e-kolpakov/gists{/gist_id}","starred_url":"https://api.github.com/users/e-kolpakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-kolpakov/subscriptions","organizations_url":"https://api.github.com/users/e-kolpakov/orgs","repos_url":"https://api.github.com/users/e-kolpakov/repos","events_url":"https://api.github.com/users/e-kolpakov/events{/privacy}","received_events_url":"https://api.github.com/users/e-kolpakov/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T13:33:39Z","updated_at":"2015-03-16T13:33:39Z","body":"@mtyaka :+1: conditional nits addressed."}}