{"action":"created","comment":{"url":"https://api.github.com/repos/sdelements/slate/pulls/comments/34188049","id":34188049,"diff_hunk":"@@ -0,0 +1,190 @@\n+# Library Tasks\n+\n+## Get All Library Tasks\n+\n+\n+```http\n+GET /api/v2/library/tasks/ HTTP/1.1\n+Accept: application/json\n+Authorization: Token \"YOUR SDE ACCESS TOKEN\"\n+```\n+\n+```http\n+HTTP/1.1 200 OK\n+Content-Type: application/json\n+\n+{\n+    \"results\": [{\n+        \"priority\": 8,\n+        \"url\": \"http://example.com/library/tasks/T179/\",\n+        \"problem\": 1,\n+        \"title\": \"Allow access for users to remove their data from the system\",\n+        \"description\": \"Some example description\",\n+        \"phase\": \"requirements\",\n+        \"id\": \"T179\"\n+    }]\n+}\n+```\n+This endpoint retrieves a list of Library Standard resources.\n+\n+**`GET /api/v2/library/tasks/`**\n+\n+### Query Parameters\n+\n+The following parameters may be used to filter the library task resources in the response.\n+\n+Parameter            | Description\n+---------------------|-------------------\n+title                | Returns all tasks containing string in their title   **\n+description          | Returns all tasks containing string in their description **\n+priority             | Given a priority 0-10, returns all tasks with specified priority\n+tags                 | Given a JSON encoded list of tags, returns all tasks with specified tags\n+phase                | Given a phase slug, returns all tasks in specified phase\n+\n+\n+___\n+\n+### Expand Parameters\n+\n+```http\n+GET /api/v2/library/tasks/?expand=problem HTTP/1.1\n+Accept: application/json\n+Authorization: Token \"YOUR SDE ACCESS TOKEN\"\n+```\n+\n+```http\n+HTTP/1.1 200 OK\n+Content-Type: application/json\n+\n+{\n+    \"results\": [{\n+        \"priority\": 8,\n+        \"tags\": [],\n+        \"url\": \"http://example.com/library/tasks/T179/\",\n+        \"problem\": {\n+            \"content\": \"This is some example content.\",\n+            \"cwe\": [{\n+                \"url\": \"http://cwe.mitre.org/data/definitions/359\",\n+                \"title\": \"Exposure of Private Information ('Privacy Violation')\",\n+                \"cwe_id\": 359\n+            }],\n+            \"id\": \"P257\",\n+            \"title\": \"P257: Privacy Violation\"\n+        },\n+        \"title\": \"Allow access for users to remove their data from the system\",\n+        \"description\": \"Some example description\",\n+        \"phase\": \"requirements\", ** add expanded phase\n+        \"id\": \"T179\"\n+    }]\n+}\n+\n+```\n+\n+See the [Expand Parameters](#expand-parameters) section for more details.\n+\n+Parameter     | Description\n+--------------|------------------------------\n+problem       | Expands the problem fields in the task response object\n+phase         | Expands the phase field in the task response object\n+\n+---\n+\n+### Include Parameters\n+\n+```http\n+GET /api/v2/library/tasks/?include=verification_coverage,categories,tags,how_tos,amendments HTTP/1.1\n+Accept: application/json\n+Authorization: Token \"YOUR SDE ACCESS TOKEN\"\n+```\n+\n+```http\n+HTTP/1.1 200 OK\n+Content-Type: application/json\n+\n+{\n+    \"results\": [{\n+        \"priority\": 8,\n+        \"tags\": [1, 2, 3],\n+        \"url\": \"http://example.com/library/tasks/T179/\",\n+        \"problem\": 1,\n+        \"title\": \"Allow access for users to remove their data from the system\",\n+        \"description\": \"Some example description\",\n+        \"phase\": \"requirements\",\n+        \"id\": \"T179\",\n+        \"categories\": [\n+            \"Authorization\"\n+        ],\n+        \"amendments\": [{\n+            \"id\": \"TA123\",\n+            \"title\": \"TA123\",\n+            \"content\": \"Some additional information about this task...\"\n+        }],\n+        \"verification_coverage\": [\n+            \"No Automated Static Analysis Coverage\"\n+        ],\n+        \"how_tos\": [{\n+            \"id\": \"I131\",\n+            \"title\": \"I131: Manually with browser\",\n+            \"slug\": \"test-account-lockout-manually-browser\",\n+            \"url\": \"http://a7069ccda519b00c4/....\",\n+            \"content\": \"1. Open your web browser ...\"\n+        }]\n+    }]\n+}\n+```\n+\n+See the [Include Parameters](#include-parameters) section for more details.\n+\n+Parameter             | Description\n+----------------------|---------------\n+amendments            | Includes a list of amendments on each task\n+categories            | Includes a list of categories that apply to each task\n+how_tos               | Includes a list of How-Tos for each task. These are language specific examples of how to implement the task\n+tags                  | Includes a list of tags attached to each task\n+verification_coverage | Includes a list of verification coverages of each task\n+\n+\n+\n+\n+## Get a Specific Library Standard\n+\n+```http\n+GET /api/v2/library/tasks/T3/ HTTP/1.1\n+Accept: application/json\n+Authorization: Token \"YOUR SDE ACCESS TOKEN\"\n+```\n+\n+```http\n+HTTP/1.1 200 OK\n+Content-Type: application/json\n+\n+{\n+    \"results\": [{\n+        \"priority\": 8,\n+        \"tags\": [],\n+        \"url\": \"http://example.com/library/tasks/T3/\",\n+        \"problem\": 1,\n+        \"title\": \"Example Library Standard\",\n+        \"description\": \"Some example description\",\n+        \"phase\": \"requirements\",","path":"source/includes/library_tasks.md","position":169,"original_position":169,"commit_id":"b6866be4f59a6ef04c90f4bbc86a6fd1cfda8c83","original_commit_id":"b6866be4f59a6ef04c90f4bbc86a6fd1cfda8c83","user":{"login":"geoffwhittington","id":1770544,"avatar_url":"https://avatars.githubusercontent.com/u/1770544?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffwhittington","html_url":"https://github.com/geoffwhittington","followers_url":"https://api.github.com/users/geoffwhittington/followers","following_url":"https://api.github.com/users/geoffwhittington/following{/other_user}","gists_url":"https://api.github.com/users/geoffwhittington/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffwhittington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffwhittington/subscriptions","organizations_url":"https://api.github.com/users/geoffwhittington/orgs","repos_url":"https://api.github.com/users/geoffwhittington/repos","events_url":"https://api.github.com/users/geoffwhittington/events{/privacy}","received_events_url":"https://api.github.com/users/geoffwhittington/received_events","type":"User","site_admin":false},"body":"Should be an id or something","created_at":"2015-07-08T19:24:19Z","updated_at":"2015-07-08T19:24:19Z","html_url":"https://github.com/sdelements/slate/pull/14#discussion_r34188049","pull_request_url":"https://api.github.com/repos/sdelements/slate/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/sdelements/slate/pulls/comments/34188049"},"html":{"href":"https://github.com/sdelements/slate/pull/14#discussion_r34188049"},"pull_request":{"href":"https://api.github.com/repos/sdelements/slate/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/sdelements/slate/pulls/14","id":38486101,"html_url":"https://github.com/sdelements/slate/pull/14","diff_url":"https://github.com/sdelements/slate/pull/14.diff","patch_url":"https://github.com/sdelements/slate/pull/14.patch","issue_url":"https://api.github.com/repos/sdelements/slate/issues/14","number":14,"state":"open","locked":false,"title":"Add library standards and weaknesses docs","user":{"login":"notsrg","id":5378686,"avatar_url":"https://avatars.githubusercontent.com/u/5378686?v=3","gravatar_id":"","url":"https://api.github.com/users/notsrg","html_url":"https://github.com/notsrg","followers_url":"https://api.github.com/users/notsrg/followers","following_url":"https://api.github.com/users/notsrg/following{/other_user}","gists_url":"https://api.github.com/users/notsrg/gists{/gist_id}","starred_url":"https://api.github.com/users/notsrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notsrg/subscriptions","organizations_url":"https://api.github.com/users/notsrg/orgs","repos_url":"https://api.github.com/users/notsrg/repos","events_url":"https://api.github.com/users/notsrg/events{/privacy}","received_events_url":"https://api.github.com/users/notsrg/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-24T20:50:52Z","updated_at":"2015-07-08T19:24:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d8c9170a05e03ab8b111ba466c5369a5a3eb30a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sdelements/slate/pulls/14/commits","review_comments_url":"https://api.github.com/repos/sdelements/slate/pulls/14/comments","review_comment_url":"https://api.github.com/repos/sdelements/slate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sdelements/slate/issues/14/comments","statuses_url":"https://api.github.com/repos/sdelements/slate/statuses/b6866be4f59a6ef04c90f4bbc86a6fd1cfda8c83","head":{"label":"sdelements:add_library","ref":"add_library","sha":"b6866be4f59a6ef04c90f4bbc86a6fd1cfda8c83","user":{"login":"sdelements","id":739346,"avatar_url":"https://avatars.githubusercontent.com/u/739346?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelements","html_url":"https://github.com/sdelements","followers_url":"https://api.github.com/users/sdelements/followers","following_url":"https://api.github.com/users/sdelements/following{/other_user}","gists_url":"https://api.github.com/users/sdelements/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelements/subscriptions","organizations_url":"https://api.github.com/users/sdelements/orgs","repos_url":"https://api.github.com/users/sdelements/repos","events_url":"https://api.github.com/users/sdelements/events{/privacy}","received_events_url":"https://api.github.com/users/sdelements/received_events","type":"Organization","site_admin":false},"repo":{"id":37938251,"name":"slate","full_name":"sdelements/slate","owner":{"login":"sdelements","id":739346,"avatar_url":"https://avatars.githubusercontent.com/u/739346?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelements","html_url":"https://github.com/sdelements","followers_url":"https://api.github.com/users/sdelements/followers","following_url":"https://api.github.com/users/sdelements/following{/other_user}","gists_url":"https://api.github.com/users/sdelements/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelements/subscriptions","organizations_url":"https://api.github.com/users/sdelements/orgs","repos_url":"https://api.github.com/users/sdelements/repos","events_url":"https://api.github.com/users/sdelements/events{/privacy}","received_events_url":"https://api.github.com/users/sdelements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sdelements/slate","description":"SD Elements API v2 (Aspirational) Documentation","fork":false,"url":"https://api.github.com/repos/sdelements/slate","forks_url":"https://api.github.com/repos/sdelements/slate/forks","keys_url":"https://api.github.com/repos/sdelements/slate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdelements/slate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdelements/slate/teams","hooks_url":"https://api.github.com/repos/sdelements/slate/hooks","issue_events_url":"https://api.github.com/repos/sdelements/slate/issues/events{/number}","events_url":"https://api.github.com/repos/sdelements/slate/events","assignees_url":"https://api.github.com/repos/sdelements/slate/assignees{/user}","branches_url":"https://api.github.com/repos/sdelements/slate/branches{/branch}","tags_url":"https://api.github.com/repos/sdelements/slate/tags","blobs_url":"https://api.github.com/repos/sdelements/slate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdelements/slate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdelements/slate/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdelements/slate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdelements/slate/statuses/{sha}","languages_url":"https://api.github.com/repos/sdelements/slate/languages","stargazers_url":"https://api.github.com/repos/sdelements/slate/stargazers","contributors_url":"https://api.github.com/repos/sdelements/slate/contributors","subscribers_url":"https://api.github.com/repos/sdelements/slate/subscribers","subscription_url":"https://api.github.com/repos/sdelements/slate/subscription","commits_url":"https://api.github.com/repos/sdelements/slate/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdelements/slate/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdelements/slate/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdelements/slate/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdelements/slate/contents/{+path}","compare_url":"https://api.github.com/repos/sdelements/slate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdelements/slate/merges","archive_url":"https://api.github.com/repos/sdelements/slate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdelements/slate/downloads","issues_url":"https://api.github.com/repos/sdelements/slate/issues{/number}","pulls_url":"https://api.github.com/repos/sdelements/slate/pulls{/number}","milestones_url":"https://api.github.com/repos/sdelements/slate/milestones{/number}","notifications_url":"https://api.github.com/repos/sdelements/slate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdelements/slate/labels{/name}","releases_url":"https://api.github.com/repos/sdelements/slate/releases{/id}","created_at":"2015-06-23T18:48:14Z","updated_at":"2015-07-07T20:30:32Z","pushed_at":"2015-07-08T17:37:48Z","git_url":"git://github.com/sdelements/slate.git","ssh_url":"git@github.com:sdelements/slate.git","clone_url":"https://github.com/sdelements/slate.git","svn_url":"https://github.com/sdelements/slate","homepage":"http://sdelements.github.io/slate/","size":1008,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":2,"default_branch":"master"}},"base":{"label":"sdelements:master","ref":"master","sha":"e7204d185829234dcf35affa22998b099d2e488b","user":{"login":"sdelements","id":739346,"avatar_url":"https://avatars.githubusercontent.com/u/739346?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelements","html_url":"https://github.com/sdelements","followers_url":"https://api.github.com/users/sdelements/followers","following_url":"https://api.github.com/users/sdelements/following{/other_user}","gists_url":"https://api.github.com/users/sdelements/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelements/subscriptions","organizations_url":"https://api.github.com/users/sdelements/orgs","repos_url":"https://api.github.com/users/sdelements/repos","events_url":"https://api.github.com/users/sdelements/events{/privacy}","received_events_url":"https://api.github.com/users/sdelements/received_events","type":"Organization","site_admin":false},"repo":{"id":37938251,"name":"slate","full_name":"sdelements/slate","owner":{"login":"sdelements","id":739346,"avatar_url":"https://avatars.githubusercontent.com/u/739346?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelements","html_url":"https://github.com/sdelements","followers_url":"https://api.github.com/users/sdelements/followers","following_url":"https://api.github.com/users/sdelements/following{/other_user}","gists_url":"https://api.github.com/users/sdelements/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelements/subscriptions","organizations_url":"https://api.github.com/users/sdelements/orgs","repos_url":"https://api.github.com/users/sdelements/repos","events_url":"https://api.github.com/users/sdelements/events{/privacy}","received_events_url":"https://api.github.com/users/sdelements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sdelements/slate","description":"SD Elements API v2 (Aspirational) Documentation","fork":false,"url":"https://api.github.com/repos/sdelements/slate","forks_url":"https://api.github.com/repos/sdelements/slate/forks","keys_url":"https://api.github.com/repos/sdelements/slate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdelements/slate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdelements/slate/teams","hooks_url":"https://api.github.com/repos/sdelements/slate/hooks","issue_events_url":"https://api.github.com/repos/sdelements/slate/issues/events{/number}","events_url":"https://api.github.com/repos/sdelements/slate/events","assignees_url":"https://api.github.com/repos/sdelements/slate/assignees{/user}","branches_url":"https://api.github.com/repos/sdelements/slate/branches{/branch}","tags_url":"https://api.github.com/repos/sdelements/slate/tags","blobs_url":"https://api.github.com/repos/sdelements/slate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdelements/slate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdelements/slate/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdelements/slate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdelements/slate/statuses/{sha}","languages_url":"https://api.github.com/repos/sdelements/slate/languages","stargazers_url":"https://api.github.com/repos/sdelements/slate/stargazers","contributors_url":"https://api.github.com/repos/sdelements/slate/contributors","subscribers_url":"https://api.github.com/repos/sdelements/slate/subscribers","subscription_url":"https://api.github.com/repos/sdelements/slate/subscription","commits_url":"https://api.github.com/repos/sdelements/slate/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdelements/slate/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdelements/slate/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdelements/slate/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdelements/slate/contents/{+path}","compare_url":"https://api.github.com/repos/sdelements/slate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdelements/slate/merges","archive_url":"https://api.github.com/repos/sdelements/slate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdelements/slate/downloads","issues_url":"https://api.github.com/repos/sdelements/slate/issues{/number}","pulls_url":"https://api.github.com/repos/sdelements/slate/pulls{/number}","milestones_url":"https://api.github.com/repos/sdelements/slate/milestones{/number}","notifications_url":"https://api.github.com/repos/sdelements/slate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdelements/slate/labels{/name}","releases_url":"https://api.github.com/repos/sdelements/slate/releases{/id}","created_at":"2015-06-23T18:48:14Z","updated_at":"2015-07-07T20:30:32Z","pushed_at":"2015-07-08T17:37:48Z","git_url":"git://github.com/sdelements/slate.git","ssh_url":"git@github.com:sdelements/slate.git","clone_url":"https://github.com/sdelements/slate.git","svn_url":"https://github.com/sdelements/slate","homepage":"http://sdelements.github.io/slate/","size":1008,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sdelements/slate/pulls/14"},"html":{"href":"https://github.com/sdelements/slate/pull/14"},"issue":{"href":"https://api.github.com/repos/sdelements/slate/issues/14"},"comments":{"href":"https://api.github.com/repos/sdelements/slate/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/sdelements/slate/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/sdelements/slate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sdelements/slate/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/sdelements/slate/statuses/b6866be4f59a6ef04c90f4bbc86a6fd1cfda8c83"}}}}