{"action":"created","comment":{"url":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/comments/40198745","id":40198745,"diff_hunk":"@@ -0,0 +1,125 @@\n+<?php\n+\n+/**\n+ * Created by PhpStorm.\n+ * User: drazen.popov\n+ * Date: 9/22/2015\n+ * Time: 10:28 AM\n+ */\n+include_once'autoload/boot.php';\n+class Jobs {\n+\n+    public $arg;\n+    public $arg1;\n+    public $action;\n+\n+    function __construct($action , $arg ,$arg1 )\n+    {\n+\n+        $this->arg = $arg;\n+        $this->arg1 = $arg1;\n+        $this->action = $action;\n+    }\n+\n+    function read() {\n+\n+        try {\n+\n+            $conn = new DbConn();\n+            $link = $conn->connect();\n+\n+            if (isset($this->arg)) {\n+                $stmt = $link->prepare(\"SELECT * FROM jobs WHERE id=$this->arg\");\n+            } else {\n+                $stmt = $link->prepare(\"SELECT * FROM jobs\");\n+            }\n+            $stmt->execute();\n+            $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\n+            $this->response(true, 'OK', $results);\n+\n+        } catch (PDOException $e) {\n+            $this->response(false,'No Job Found',false);\n+        }\n+    }\n+\n+    function create(){\n+\n+        try {\n+            $conn = new DbConn();","path":"api/Jobs.php","position":48,"original_position":48,"commit_id":"ee91e16d90740b4673e424fc598dbe9e6d679d01","original_commit_id":"ee91e16d90740b4673e424fc598dbe9e6d679d01","user":{"login":"milos-tomasevic-devtech","id":8747049,"avatar_url":"https://avatars.githubusercontent.com/u/8747049?v=3","gravatar_id":"","url":"https://api.github.com/users/milos-tomasevic-devtech","html_url":"https://github.com/milos-tomasevic-devtech","followers_url":"https://api.github.com/users/milos-tomasevic-devtech/followers","following_url":"https://api.github.com/users/milos-tomasevic-devtech/following{/other_user}","gists_url":"https://api.github.com/users/milos-tomasevic-devtech/gists{/gist_id}","starred_url":"https://api.github.com/users/milos-tomasevic-devtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milos-tomasevic-devtech/subscriptions","organizations_url":"https://api.github.com/users/milos-tomasevic-devtech/orgs","repos_url":"https://api.github.com/users/milos-tomasevic-devtech/repos","events_url":"https://api.github.com/users/milos-tomasevic-devtech/events{/privacy}","received_events_url":"https://api.github.com/users/milos-tomasevic-devtech/received_events","type":"User","site_admin":false},"body":"same comment as it was for read()","created_at":"2015-09-23T12:49:56Z","updated_at":"2015-09-23T12:49:56Z","html_url":"https://github.com/dejan-babic/dtPicker/pull/3#discussion_r40198745","pull_request_url":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/comments/40198745"},"html":{"href":"https://github.com/dejan-babic/dtPicker/pull/3#discussion_r40198745"},"pull_request":{"href":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/3","id":45153844,"html_url":"https://github.com/dejan-babic/dtPicker/pull/3","diff_url":"https://github.com/dejan-babic/dtPicker/pull/3.diff","patch_url":"https://github.com/dejan-babic/dtPicker/pull/3.patch","issue_url":"https://api.github.com/repos/dejan-babic/dtPicker/issues/3","number":3,"state":"open","locked":false,"title":"Feature api","user":{"login":"drazen-popov-devtech","id":14177361,"avatar_url":"https://avatars.githubusercontent.com/u/14177361?v=3","gravatar_id":"","url":"https://api.github.com/users/drazen-popov-devtech","html_url":"https://github.com/drazen-popov-devtech","followers_url":"https://api.github.com/users/drazen-popov-devtech/followers","following_url":"https://api.github.com/users/drazen-popov-devtech/following{/other_user}","gists_url":"https://api.github.com/users/drazen-popov-devtech/gists{/gist_id}","starred_url":"https://api.github.com/users/drazen-popov-devtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drazen-popov-devtech/subscriptions","organizations_url":"https://api.github.com/users/drazen-popov-devtech/orgs","repos_url":"https://api.github.com/users/drazen-popov-devtech/repos","events_url":"https://api.github.com/users/drazen-popov-devtech/events{/privacy}","received_events_url":"https://api.github.com/users/drazen-popov-devtech/received_events","type":"User","site_admin":false},"body":"#### What's this PR do?\r\nValidate user passphrase(validate) , lists users (getusers),input new users in Db (insert users)\r\n#### Where should the reviewer start?\r\nvalidate user\r\n#### How should this be manually tested?\r\nTest for error on API calls\r\n#### Any background context you want to provide?\r\n#### What are the relevant tickets?\r\n","created_at":"2015-09-16T10:18:32Z","updated_at":"2015-09-23T12:49:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"milos-tomasevic-devtech","id":8747049,"avatar_url":"https://avatars.githubusercontent.com/u/8747049?v=3","gravatar_id":"","url":"https://api.github.com/users/milos-tomasevic-devtech","html_url":"https://github.com/milos-tomasevic-devtech","followers_url":"https://api.github.com/users/milos-tomasevic-devtech/followers","following_url":"https://api.github.com/users/milos-tomasevic-devtech/following{/other_user}","gists_url":"https://api.github.com/users/milos-tomasevic-devtech/gists{/gist_id}","starred_url":"https://api.github.com/users/milos-tomasevic-devtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milos-tomasevic-devtech/subscriptions","organizations_url":"https://api.github.com/users/milos-tomasevic-devtech/orgs","repos_url":"https://api.github.com/users/milos-tomasevic-devtech/repos","events_url":"https://api.github.com/users/milos-tomasevic-devtech/events{/privacy}","received_events_url":"https://api.github.com/users/milos-tomasevic-devtech/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/3/commits","review_comments_url":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/3/comments","review_comment_url":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dejan-babic/dtPicker/issues/3/comments","statuses_url":"https://api.github.com/repos/dejan-babic/dtPicker/statuses/ee91e16d90740b4673e424fc598dbe9e6d679d01","head":{"label":"dejan-babic:feature-api","ref":"feature-api","sha":"ee91e16d90740b4673e424fc598dbe9e6d679d01","user":{"login":"dejan-babic","id":5164888,"avatar_url":"https://avatars.githubusercontent.com/u/5164888?v=3","gravatar_id":"","url":"https://api.github.com/users/dejan-babic","html_url":"https://github.com/dejan-babic","followers_url":"https://api.github.com/users/dejan-babic/followers","following_url":"https://api.github.com/users/dejan-babic/following{/other_user}","gists_url":"https://api.github.com/users/dejan-babic/gists{/gist_id}","starred_url":"https://api.github.com/users/dejan-babic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejan-babic/subscriptions","organizations_url":"https://api.github.com/users/dejan-babic/orgs","repos_url":"https://api.github.com/users/dejan-babic/repos","events_url":"https://api.github.com/users/dejan-babic/events{/privacy}","received_events_url":"https://api.github.com/users/dejan-babic/received_events","type":"User","site_admin":false},"repo":{"id":42245926,"name":"dtPicker","full_name":"dejan-babic/dtPicker","owner":{"login":"dejan-babic","id":5164888,"avatar_url":"https://avatars.githubusercontent.com/u/5164888?v=3","gravatar_id":"","url":"https://api.github.com/users/dejan-babic","html_url":"https://github.com/dejan-babic","followers_url":"https://api.github.com/users/dejan-babic/followers","following_url":"https://api.github.com/users/dejan-babic/following{/other_user}","gists_url":"https://api.github.com/users/dejan-babic/gists{/gist_id}","starred_url":"https://api.github.com/users/dejan-babic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejan-babic/subscriptions","organizations_url":"https://api.github.com/users/dejan-babic/orgs","repos_url":"https://api.github.com/users/dejan-babic/repos","events_url":"https://api.github.com/users/dejan-babic/events{/privacy}","received_events_url":"https://api.github.com/users/dejan-babic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dejan-babic/dtPicker","description":"This is an exercise app","fork":false,"url":"https://api.github.com/repos/dejan-babic/dtPicker","forks_url":"https://api.github.com/repos/dejan-babic/dtPicker/forks","keys_url":"https://api.github.com/repos/dejan-babic/dtPicker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dejan-babic/dtPicker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dejan-babic/dtPicker/teams","hooks_url":"https://api.github.com/repos/dejan-babic/dtPicker/hooks","issue_events_url":"https://api.github.com/repos/dejan-babic/dtPicker/issues/events{/number}","events_url":"https://api.github.com/repos/dejan-babic/dtPicker/events","assignees_url":"https://api.github.com/repos/dejan-babic/dtPicker/assignees{/user}","branches_url":"https://api.github.com/repos/dejan-babic/dtPicker/branches{/branch}","tags_url":"https://api.github.com/repos/dejan-babic/dtPicker/tags","blobs_url":"https://api.github.com/repos/dejan-babic/dtPicker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dejan-babic/dtPicker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dejan-babic/dtPicker/git/refs{/sha}","trees_url":"https://api.github.com/repos/dejan-babic/dtPicker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dejan-babic/dtPicker/statuses/{sha}","languages_url":"https://api.github.com/repos/dejan-babic/dtPicker/languages","stargazers_url":"https://api.github.com/repos/dejan-babic/dtPicker/stargazers","contributors_url":"https://api.github.com/repos/dejan-babic/dtPicker/contributors","subscribers_url":"https://api.github.com/repos/dejan-babic/dtPicker/subscribers","subscription_url":"https://api.github.com/repos/dejan-babic/dtPicker/subscription","commits_url":"https://api.github.com/repos/dejan-babic/dtPicker/commits{/sha}","git_commits_url":"https://api.github.com/repos/dejan-babic/dtPicker/git/commits{/sha}","comments_url":"https://api.github.com/repos/dejan-babic/dtPicker/comments{/number}","issue_comment_url":"https://api.github.com/repos/dejan-babic/dtPicker/issues/comments{/number}","contents_url":"https://api.github.com/repos/dejan-babic/dtPicker/contents/{+path}","compare_url":"https://api.github.com/repos/dejan-babic/dtPicker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dejan-babic/dtPicker/merges","archive_url":"https://api.github.com/repos/dejan-babic/dtPicker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dejan-babic/dtPicker/downloads","issues_url":"https://api.github.com/repos/dejan-babic/dtPicker/issues{/number}","pulls_url":"https://api.github.com/repos/dejan-babic/dtPicker/pulls{/number}","milestones_url":"https://api.github.com/repos/dejan-babic/dtPicker/milestones{/number}","notifications_url":"https://api.github.com/repos/dejan-babic/dtPicker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dejan-babic/dtPicker/labels{/name}","releases_url":"https://api.github.com/repos/dejan-babic/dtPicker/releases{/id}","created_at":"2015-09-10T13:23:49Z","updated_at":"2015-09-10T13:23:49Z","pushed_at":"2015-09-23T11:11:21Z","git_url":"git://github.com/dejan-babic/dtPicker.git","ssh_url":"git@github.com:dejan-babic/dtPicker.git","clone_url":"https://github.com/dejan-babic/dtPicker.git","svn_url":"https://github.com/dejan-babic/dtPicker","homepage":null,"size":5208,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"dejan-babic:develop","ref":"develop","sha":"970a9b2174bacdb69125ada553ec32957ee6627e","user":{"login":"dejan-babic","id":5164888,"avatar_url":"https://avatars.githubusercontent.com/u/5164888?v=3","gravatar_id":"","url":"https://api.github.com/users/dejan-babic","html_url":"https://github.com/dejan-babic","followers_url":"https://api.github.com/users/dejan-babic/followers","following_url":"https://api.github.com/users/dejan-babic/following{/other_user}","gists_url":"https://api.github.com/users/dejan-babic/gists{/gist_id}","starred_url":"https://api.github.com/users/dejan-babic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejan-babic/subscriptions","organizations_url":"https://api.github.com/users/dejan-babic/orgs","repos_url":"https://api.github.com/users/dejan-babic/repos","events_url":"https://api.github.com/users/dejan-babic/events{/privacy}","received_events_url":"https://api.github.com/users/dejan-babic/received_events","type":"User","site_admin":false},"repo":{"id":42245926,"name":"dtPicker","full_name":"dejan-babic/dtPicker","owner":{"login":"dejan-babic","id":5164888,"avatar_url":"https://avatars.githubusercontent.com/u/5164888?v=3","gravatar_id":"","url":"https://api.github.com/users/dejan-babic","html_url":"https://github.com/dejan-babic","followers_url":"https://api.github.com/users/dejan-babic/followers","following_url":"https://api.github.com/users/dejan-babic/following{/other_user}","gists_url":"https://api.github.com/users/dejan-babic/gists{/gist_id}","starred_url":"https://api.github.com/users/dejan-babic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejan-babic/subscriptions","organizations_url":"https://api.github.com/users/dejan-babic/orgs","repos_url":"https://api.github.com/users/dejan-babic/repos","events_url":"https://api.github.com/users/dejan-babic/events{/privacy}","received_events_url":"https://api.github.com/users/dejan-babic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dejan-babic/dtPicker","description":"This is an exercise app","fork":false,"url":"https://api.github.com/repos/dejan-babic/dtPicker","forks_url":"https://api.github.com/repos/dejan-babic/dtPicker/forks","keys_url":"https://api.github.com/repos/dejan-babic/dtPicker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dejan-babic/dtPicker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dejan-babic/dtPicker/teams","hooks_url":"https://api.github.com/repos/dejan-babic/dtPicker/hooks","issue_events_url":"https://api.github.com/repos/dejan-babic/dtPicker/issues/events{/number}","events_url":"https://api.github.com/repos/dejan-babic/dtPicker/events","assignees_url":"https://api.github.com/repos/dejan-babic/dtPicker/assignees{/user}","branches_url":"https://api.github.com/repos/dejan-babic/dtPicker/branches{/branch}","tags_url":"https://api.github.com/repos/dejan-babic/dtPicker/tags","blobs_url":"https://api.github.com/repos/dejan-babic/dtPicker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dejan-babic/dtPicker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dejan-babic/dtPicker/git/refs{/sha}","trees_url":"https://api.github.com/repos/dejan-babic/dtPicker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dejan-babic/dtPicker/statuses/{sha}","languages_url":"https://api.github.com/repos/dejan-babic/dtPicker/languages","stargazers_url":"https://api.github.com/repos/dejan-babic/dtPicker/stargazers","contributors_url":"https://api.github.com/repos/dejan-babic/dtPicker/contributors","subscribers_url":"https://api.github.com/repos/dejan-babic/dtPicker/subscribers","subscription_url":"https://api.github.com/repos/dejan-babic/dtPicker/subscription","commits_url":"https://api.github.com/repos/dejan-babic/dtPicker/commits{/sha}","git_commits_url":"https://api.github.com/repos/dejan-babic/dtPicker/git/commits{/sha}","comments_url":"https://api.github.com/repos/dejan-babic/dtPicker/comments{/number}","issue_comment_url":"https://api.github.com/repos/dejan-babic/dtPicker/issues/comments{/number}","contents_url":"https://api.github.com/repos/dejan-babic/dtPicker/contents/{+path}","compare_url":"https://api.github.com/repos/dejan-babic/dtPicker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dejan-babic/dtPicker/merges","archive_url":"https://api.github.com/repos/dejan-babic/dtPicker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dejan-babic/dtPicker/downloads","issues_url":"https://api.github.com/repos/dejan-babic/dtPicker/issues{/number}","pulls_url":"https://api.github.com/repos/dejan-babic/dtPicker/pulls{/number}","milestones_url":"https://api.github.com/repos/dejan-babic/dtPicker/milestones{/number}","notifications_url":"https://api.github.com/repos/dejan-babic/dtPicker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dejan-babic/dtPicker/labels{/name}","releases_url":"https://api.github.com/repos/dejan-babic/dtPicker/releases{/id}","created_at":"2015-09-10T13:23:49Z","updated_at":"2015-09-10T13:23:49Z","pushed_at":"2015-09-23T11:11:21Z","git_url":"git://github.com/dejan-babic/dtPicker.git","ssh_url":"git@github.com:dejan-babic/dtPicker.git","clone_url":"https://github.com/dejan-babic/dtPicker.git","svn_url":"https://github.com/dejan-babic/dtPicker","homepage":null,"size":5208,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/3"},"html":{"href":"https://github.com/dejan-babic/dtPicker/pull/3"},"issue":{"href":"https://api.github.com/repos/dejan-babic/dtPicker/issues/3"},"comments":{"href":"https://api.github.com/repos/dejan-babic/dtPicker/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dejan-babic/dtPicker/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/dejan-babic/dtPicker/statuses/ee91e16d90740b4673e424fc598dbe9e6d679d01"}}}}