{"action":"created","comment":{"url":"https://api.github.com/repos/motech/modules/pulls/comments/42610167","id":42610167,"diff_hunk":"@@ -4,6 +4,190 @@\n mTraining Module\n ================\n \n-To be written.\n+.. contents::\n+    :depth: 3\n \n-If you'd like to author this topic, please assign yourself `MOTECH-962 <https://applab.atlassian.net/browse/MOTECH-962>`_.\n+###########\n+Description\n+###########\n+\n+Provides data containers and APIs for defining training courses. The module gives possibility to and track user enrollments\n+and course progress. Courses structure can be very diverse thanks to flexibility of the mTraining entities. Structure of the\n+training may be created through the API or by using the user interface.\n+\n+################\n+Course Structure\n+################\n+\n+Introduction\n+############\n+\n+Course structure consists of units that will meet the objectives specified by the implementations. Every element of the\n+structure besides of ``Questions`` contains following fields.\n+\n++------------+---------------------------------------------------------------------------------+--------------------+\n+|Field       |Description                                                                      |Type                |\n++============+=================================================================================+====================+\n+|name        |Name of the course unit.                                                         |String              |\n++------------+---------------------------------------------------------------------------------+--------------------+\n+|state       |Status of the course unit. Assume the following values: ``Active``,              |CourseUnitState     |\n+|            |``Inactive`` or ``Pending``.                                                     |                    |\n++------------+---------------------------------------------------------------------------------+--------------------+\n+|content     |The content for the course unit. For example this could be an url to the audio   |String              |\n+|            |file.                                                                            |                    |\n++------------+---------------------------------------------------------------------------------+--------------------+\n+|description |Description of the unit.                                                         |String              |\n++------------+---------------------------------------------------------------------------------+--------------------+\n+|properties  |The additional properties which can be used with the unit. For example language, |Map<String, String> |\n+|            |version or district                                                              |                    |\n++------------+---------------------------------------------------------------------------------+--------------------+\n+\n+Course\n+######\n+\n+``Course`` is a top level container which contains list of the ``Chapters``.\n+\n+Chapter\n+#######\n+\n+``Chapters`` are the second level of the structure. Each ``Chapter`` can contains one ``Quiz`` and list of the ``Lessons``.","path":"docs/source/mtraining.rst","position":52,"original_position":52,"commit_id":"2b4249b9c28c3f9d98cde154fb09d7244b308ab4","original_commit_id":"2b4249b9c28c3f9d98cde154fb09d7244b308ab4","user":{"login":"sebbrudzinski","id":8852946,"avatar_url":"https://avatars.githubusercontent.com/u/8852946?v=3","gravatar_id":"","url":"https://api.github.com/users/sebbrudzinski","html_url":"https://github.com/sebbrudzinski","followers_url":"https://api.github.com/users/sebbrudzinski/followers","following_url":"https://api.github.com/users/sebbrudzinski/following{/other_user}","gists_url":"https://api.github.com/users/sebbrudzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/sebbrudzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebbrudzinski/subscriptions","organizations_url":"https://api.github.com/users/sebbrudzinski/orgs","repos_url":"https://api.github.com/users/sebbrudzinski/repos","events_url":"https://api.github.com/users/sebbrudzinski/events{/privacy}","received_events_url":"https://api.github.com/users/sebbrudzinski/received_events","type":"User","site_admin":false},"body":"can contain or contains","created_at":"2015-10-21T11:09:59Z","updated_at":"2015-10-21T11:09:59Z","html_url":"https://github.com/motech/modules/pull/68#discussion_r42610167","pull_request_url":"https://api.github.com/repos/motech/modules/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/motech/modules/pulls/comments/42610167"},"html":{"href":"https://github.com/motech/modules/pull/68#discussion_r42610167"},"pull_request":{"href":"https://api.github.com/repos/motech/modules/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/motech/modules/pulls/68","id":48316249,"html_url":"https://github.com/motech/modules/pull/68","diff_url":"https://github.com/motech/modules/pull/68.diff","patch_url":"https://github.com/motech/modules/pull/68.patch","issue_url":"https://api.github.com/repos/motech/modules/issues/68","number":68,"state":"open","locked":false,"title":"MOTECH-962: mTraining Module topic","user":{"login":"tstalka","id":7116048,"avatar_url":"https://avatars.githubusercontent.com/u/7116048?v=3","gravatar_id":"","url":"https://api.github.com/users/tstalka","html_url":"https://github.com/tstalka","followers_url":"https://api.github.com/users/tstalka/followers","following_url":"https://api.github.com/users/tstalka/following{/other_user}","gists_url":"https://api.github.com/users/tstalka/gists{/gist_id}","starred_url":"https://api.github.com/users/tstalka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstalka/subscriptions","organizations_url":"https://api.github.com/users/tstalka/orgs","repos_url":"https://api.github.com/users/tstalka/repos","events_url":"https://api.github.com/users/tstalka/events{/privacy}","received_events_url":"https://api.github.com/users/tstalka/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-21T11:02:21Z","updated_at":"2015-10-21T11:09:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d17de94bbe38798c963fccf824ff7a31d5f535e8","assignee":{"login":"sebbrudzinski","id":8852946,"avatar_url":"https://avatars.githubusercontent.com/u/8852946?v=3","gravatar_id":"","url":"https://api.github.com/users/sebbrudzinski","html_url":"https://github.com/sebbrudzinski","followers_url":"https://api.github.com/users/sebbrudzinski/followers","following_url":"https://api.github.com/users/sebbrudzinski/following{/other_user}","gists_url":"https://api.github.com/users/sebbrudzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/sebbrudzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebbrudzinski/subscriptions","organizations_url":"https://api.github.com/users/sebbrudzinski/orgs","repos_url":"https://api.github.com/users/sebbrudzinski/repos","events_url":"https://api.github.com/users/sebbrudzinski/events{/privacy}","received_events_url":"https://api.github.com/users/sebbrudzinski/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/motech/modules/pulls/68/commits","review_comments_url":"https://api.github.com/repos/motech/modules/pulls/68/comments","review_comment_url":"https://api.github.com/repos/motech/modules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/motech/modules/issues/68/comments","statuses_url":"https://api.github.com/repos/motech/modules/statuses/2b4249b9c28c3f9d98cde154fb09d7244b308ab4","head":{"label":"tstalka:MOTECH-962","ref":"MOTECH-962","sha":"2b4249b9c28c3f9d98cde154fb09d7244b308ab4","user":{"login":"tstalka","id":7116048,"avatar_url":"https://avatars.githubusercontent.com/u/7116048?v=3","gravatar_id":"","url":"https://api.github.com/users/tstalka","html_url":"https://github.com/tstalka","followers_url":"https://api.github.com/users/tstalka/followers","following_url":"https://api.github.com/users/tstalka/following{/other_user}","gists_url":"https://api.github.com/users/tstalka/gists{/gist_id}","starred_url":"https://api.github.com/users/tstalka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstalka/subscriptions","organizations_url":"https://api.github.com/users/tstalka/orgs","repos_url":"https://api.github.com/users/tstalka/repos","events_url":"https://api.github.com/users/tstalka/events{/privacy}","received_events_url":"https://api.github.com/users/tstalka/received_events","type":"User","site_admin":false},"repo":{"id":42454340,"name":"modules","full_name":"tstalka/modules","owner":{"login":"tstalka","id":7116048,"avatar_url":"https://avatars.githubusercontent.com/u/7116048?v=3","gravatar_id":"","url":"https://api.github.com/users/tstalka","html_url":"https://github.com/tstalka","followers_url":"https://api.github.com/users/tstalka/followers","following_url":"https://api.github.com/users/tstalka/following{/other_user}","gists_url":"https://api.github.com/users/tstalka/gists{/gist_id}","starred_url":"https://api.github.com/users/tstalka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstalka/subscriptions","organizations_url":"https://api.github.com/users/tstalka/orgs","repos_url":"https://api.github.com/users/tstalka/repos","events_url":"https://api.github.com/users/tstalka/events{/privacy}","received_events_url":"https://api.github.com/users/tstalka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tstalka/modules","description":"","fork":true,"url":"https://api.github.com/repos/tstalka/modules","forks_url":"https://api.github.com/repos/tstalka/modules/forks","keys_url":"https://api.github.com/repos/tstalka/modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tstalka/modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tstalka/modules/teams","hooks_url":"https://api.github.com/repos/tstalka/modules/hooks","issue_events_url":"https://api.github.com/repos/tstalka/modules/issues/events{/number}","events_url":"https://api.github.com/repos/tstalka/modules/events","assignees_url":"https://api.github.com/repos/tstalka/modules/assignees{/user}","branches_url":"https://api.github.com/repos/tstalka/modules/branches{/branch}","tags_url":"https://api.github.com/repos/tstalka/modules/tags","blobs_url":"https://api.github.com/repos/tstalka/modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tstalka/modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tstalka/modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/tstalka/modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tstalka/modules/statuses/{sha}","languages_url":"https://api.github.com/repos/tstalka/modules/languages","stargazers_url":"https://api.github.com/repos/tstalka/modules/stargazers","contributors_url":"https://api.github.com/repos/tstalka/modules/contributors","subscribers_url":"https://api.github.com/repos/tstalka/modules/subscribers","subscription_url":"https://api.github.com/repos/tstalka/modules/subscription","commits_url":"https://api.github.com/repos/tstalka/modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/tstalka/modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/tstalka/modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/tstalka/modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/tstalka/modules/contents/{+path}","compare_url":"https://api.github.com/repos/tstalka/modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tstalka/modules/merges","archive_url":"https://api.github.com/repos/tstalka/modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tstalka/modules/downloads","issues_url":"https://api.github.com/repos/tstalka/modules/issues{/number}","pulls_url":"https://api.github.com/repos/tstalka/modules/pulls{/number}","milestones_url":"https://api.github.com/repos/tstalka/modules/milestones{/number}","notifications_url":"https://api.github.com/repos/tstalka/modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tstalka/modules/labels{/name}","releases_url":"https://api.github.com/repos/tstalka/modules/releases{/id}","created_at":"2015-09-14T14:38:22Z","updated_at":"2015-09-14T14:38:26Z","pushed_at":"2015-10-21T11:00:48Z","git_url":"git://github.com/tstalka/modules.git","ssh_url":"git@github.com:tstalka/modules.git","clone_url":"https://github.com/tstalka/modules.git","svn_url":"https://github.com/tstalka/modules","homepage":null,"size":30820,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"motech:master","ref":"master","sha":"a634472b01ca20acf9f52d3116b0766dcaa7f619","user":{"login":"motech","id":477919,"avatar_url":"https://avatars.githubusercontent.com/u/477919?v=3","gravatar_id":"","url":"https://api.github.com/users/motech","html_url":"https://github.com/motech","followers_url":"https://api.github.com/users/motech/followers","following_url":"https://api.github.com/users/motech/following{/other_user}","gists_url":"https://api.github.com/users/motech/gists{/gist_id}","starred_url":"https://api.github.com/users/motech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech/subscriptions","organizations_url":"https://api.github.com/users/motech/orgs","repos_url":"https://api.github.com/users/motech/repos","events_url":"https://api.github.com/users/motech/events{/privacy}","received_events_url":"https://api.github.com/users/motech/received_events","type":"Organization","site_admin":false},"repo":{"id":19785525,"name":"modules","full_name":"motech/modules","owner":{"login":"motech","id":477919,"avatar_url":"https://avatars.githubusercontent.com/u/477919?v=3","gravatar_id":"","url":"https://api.github.com/users/motech","html_url":"https://github.com/motech","followers_url":"https://api.github.com/users/motech/followers","following_url":"https://api.github.com/users/motech/following{/other_user}","gists_url":"https://api.github.com/users/motech/gists{/gist_id}","starred_url":"https://api.github.com/users/motech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech/subscriptions","organizations_url":"https://api.github.com/users/motech/orgs","repos_url":"https://api.github.com/users/motech/repos","events_url":"https://api.github.com/users/motech/events{/privacy}","received_events_url":"https://api.github.com/users/motech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/motech/modules","description":" Mobile Technology for Community Health - Modules","fork":false,"url":"https://api.github.com/repos/motech/modules","forks_url":"https://api.github.com/repos/motech/modules/forks","keys_url":"https://api.github.com/repos/motech/modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/motech/modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/motech/modules/teams","hooks_url":"https://api.github.com/repos/motech/modules/hooks","issue_events_url":"https://api.github.com/repos/motech/modules/issues/events{/number}","events_url":"https://api.github.com/repos/motech/modules/events","assignees_url":"https://api.github.com/repos/motech/modules/assignees{/user}","branches_url":"https://api.github.com/repos/motech/modules/branches{/branch}","tags_url":"https://api.github.com/repos/motech/modules/tags","blobs_url":"https://api.github.com/repos/motech/modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/motech/modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/motech/modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/motech/modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/motech/modules/statuses/{sha}","languages_url":"https://api.github.com/repos/motech/modules/languages","stargazers_url":"https://api.github.com/repos/motech/modules/stargazers","contributors_url":"https://api.github.com/repos/motech/modules/contributors","subscribers_url":"https://api.github.com/repos/motech/modules/subscribers","subscription_url":"https://api.github.com/repos/motech/modules/subscription","commits_url":"https://api.github.com/repos/motech/modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/motech/modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/motech/modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/motech/modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/motech/modules/contents/{+path}","compare_url":"https://api.github.com/repos/motech/modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/motech/modules/merges","archive_url":"https://api.github.com/repos/motech/modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/motech/modules/downloads","issues_url":"https://api.github.com/repos/motech/modules/issues{/number}","pulls_url":"https://api.github.com/repos/motech/modules/pulls{/number}","milestones_url":"https://api.github.com/repos/motech/modules/milestones{/number}","notifications_url":"https://api.github.com/repos/motech/modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/motech/modules/labels{/name}","releases_url":"https://api.github.com/repos/motech/modules/releases{/id}","created_at":"2014-05-14T15:41:17Z","updated_at":"2015-09-14T18:16:42Z","pushed_at":"2015-10-21T11:02:21Z","git_url":"git://github.com/motech/modules.git","ssh_url":"git@github.com:motech/modules.git","clone_url":"https://github.com/motech/modules.git","svn_url":"https://github.com/motech/modules","homepage":"http://modules.motechproject.org","size":33047,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":6,"forks":24,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/motech/modules/pulls/68"},"html":{"href":"https://github.com/motech/modules/pull/68"},"issue":{"href":"https://api.github.com/repos/motech/modules/issues/68"},"comments":{"href":"https://api.github.com/repos/motech/modules/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/motech/modules/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/motech/modules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/motech/modules/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/motech/modules/statuses/2b4249b9c28c3f9d98cde154fb09d7244b308ab4"}}}}