{"action":"created","comment":{"url":"https://api.github.com/repos/superdesk/superdesk/pulls/comments/29039412","id":29039412,"diff_hunk":"@@ -0,0 +1,49 @@\n+# -*- coding: utf-8; -*-\n+#\n+# This file is part of Superdesk.\n+#\n+# Copyright 2013, 2014 Sourcefabric z.u. and contributors.\n+#\n+# For the full copyright and license information, please see the\n+# AUTHORS and LICENSE files distributed with this source code, or\n+# at https://www.sourcefabric.org/superdesk/license\n+\n+from superdesk.resource import Resource\n+\n+\n+class PackagesResource(Resource):\n+    \"\"\"A class defining and configuring the /packages API endpoint.\"\"\"\n+\n+    # Example of an ID of an object in database (whitout quotes):\n+    #\n+    #   \"tag:example.com,0000:newsml_BRE9A605\"\n+    #\n+    item_url = 'regex(\"[\\w,.:-]+\")'\n+\n+    schema = {\n+        'guid': {'type': 'string'},\n+        'type': {'type': 'string'},\n+        'unique_id': {'type': 'integer'},\n+        'unique_name': {'type': 'string'},\n+        'pubstatus': {'type': 'string'},\n+        'firstcreated': {'type': 'datetime'},\n+        'versioncreated': {'type': 'datetime'},\n+        'original_creator': {'type': 'string'},\n+        'version_creator': {'type': 'string'},\n+        'groups': {'type': 'list'},","path":"server/publicapi/packages/resource.py","position":33,"original_position":33,"commit_id":"17dbc5f6774a92e86abde2b8f5e5546a446eb914","original_commit_id":"17dbc5f6774a92e86abde2b8f5e5546a446eb914","user":{"login":"plamut","id":1235663,"avatar_url":"https://avatars.githubusercontent.com/u/1235663?v=3","gravatar_id":"","url":"https://api.github.com/users/plamut","html_url":"https://github.com/plamut","followers_url":"https://api.github.com/users/plamut/followers","following_url":"https://api.github.com/users/plamut/following{/other_user}","gists_url":"https://api.github.com/users/plamut/gists{/gist_id}","starred_url":"https://api.github.com/users/plamut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamut/subscriptions","organizations_url":"https://api.github.com/users/plamut/orgs","repos_url":"https://api.github.com/users/plamut/repos","events_url":"https://api.github.com/users/plamut/events{/privacy}","received_events_url":"https://api.github.com/users/plamut/received_events","type":"User","site_admin":false},"body":"I believe yes, but I can't be 100% sure. I basically extracted the schema for `packages` from the behave tests and from the example output of the API (http://docs.superdeskcontentapi.apiary.io/#reference/content-packages/package/fetch-a-single-package-item)","created_at":"2015-04-24T10:39:01Z","updated_at":"2015-04-24T10:39:01Z","html_url":"https://github.com/superdesk/superdesk/pull/445#discussion_r29039412","pull_request_url":"https://api.github.com/repos/superdesk/superdesk/pulls/445","_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/comments/29039412"},"html":{"href":"https://github.com/superdesk/superdesk/pull/445#discussion_r29039412"},"pull_request":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/445"}}},"pull_request":{"url":"https://api.github.com/repos/superdesk/superdesk/pulls/445","id":34032933,"html_url":"https://github.com/superdesk/superdesk/pull/445","diff_url":"https://github.com/superdesk/superdesk/pull/445.diff","patch_url":"https://github.com/superdesk/superdesk/pull/445.patch","issue_url":"https://api.github.com/repos/superdesk/superdesk/issues/445","number":445,"state":"open","locked":false,"title":"Add /packages endpoint to public API","user":{"login":"plamut","id":1235663,"avatar_url":"https://avatars.githubusercontent.com/u/1235663?v=3","gravatar_id":"","url":"https://api.github.com/users/plamut","html_url":"https://github.com/plamut","followers_url":"https://api.github.com/users/plamut/followers","following_url":"https://api.github.com/users/plamut/following{/other_user}","gists_url":"https://api.github.com/users/plamut/gists{/gist_id}","starred_url":"https://api.github.com/users/plamut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamut/subscriptions","organizations_url":"https://api.github.com/users/plamut/orgs","repos_url":"https://api.github.com/users/plamut/repos","events_url":"https://api.github.com/users/plamut/events{/privacy}","received_events_url":"https://api.github.com/users/plamut/received_events","type":"User","site_admin":false},"body":"Please have a closer look at the `package` schema definition and verify it, thanks!","created_at":"2015-04-24T09:41:46Z","updated_at":"2015-04-24T10:39:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ef8bfb34f17e1b25145d1a00d44965e2d600681","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/superdesk/superdesk/pulls/445/commits","review_comments_url":"https://api.github.com/repos/superdesk/superdesk/pulls/445/comments","review_comment_url":"https://api.github.com/repos/superdesk/superdesk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superdesk/superdesk/issues/445/comments","statuses_url":"https://api.github.com/repos/superdesk/superdesk/statuses/17dbc5f6774a92e86abde2b8f5e5546a446eb914","head":{"label":"plamut:sd-2132","ref":"sd-2132","sha":"17dbc5f6774a92e86abde2b8f5e5546a446eb914","user":{"login":"plamut","id":1235663,"avatar_url":"https://avatars.githubusercontent.com/u/1235663?v=3","gravatar_id":"","url":"https://api.github.com/users/plamut","html_url":"https://github.com/plamut","followers_url":"https://api.github.com/users/plamut/followers","following_url":"https://api.github.com/users/plamut/following{/other_user}","gists_url":"https://api.github.com/users/plamut/gists{/gist_id}","starred_url":"https://api.github.com/users/plamut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamut/subscriptions","organizations_url":"https://api.github.com/users/plamut/orgs","repos_url":"https://api.github.com/users/plamut/repos","events_url":"https://api.github.com/users/plamut/events{/privacy}","received_events_url":"https://api.github.com/users/plamut/received_events","type":"User","site_admin":false},"repo":{"id":30860876,"name":"superdesk","full_name":"plamut/superdesk","owner":{"login":"plamut","id":1235663,"avatar_url":"https://avatars.githubusercontent.com/u/1235663?v=3","gravatar_id":"","url":"https://api.github.com/users/plamut","html_url":"https://github.com/plamut","followers_url":"https://api.github.com/users/plamut/followers","following_url":"https://api.github.com/users/plamut/following{/other_user}","gists_url":"https://api.github.com/users/plamut/gists{/gist_id}","starred_url":"https://api.github.com/users/plamut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamut/subscriptions","organizations_url":"https://api.github.com/users/plamut/orgs","repos_url":"https://api.github.com/users/plamut/repos","events_url":"https://api.github.com/users/plamut/events{/privacy}","received_events_url":"https://api.github.com/users/plamut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/plamut/superdesk","description":"","fork":true,"url":"https://api.github.com/repos/plamut/superdesk","forks_url":"https://api.github.com/repos/plamut/superdesk/forks","keys_url":"https://api.github.com/repos/plamut/superdesk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plamut/superdesk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plamut/superdesk/teams","hooks_url":"https://api.github.com/repos/plamut/superdesk/hooks","issue_events_url":"https://api.github.com/repos/plamut/superdesk/issues/events{/number}","events_url":"https://api.github.com/repos/plamut/superdesk/events","assignees_url":"https://api.github.com/repos/plamut/superdesk/assignees{/user}","branches_url":"https://api.github.com/repos/plamut/superdesk/branches{/branch}","tags_url":"https://api.github.com/repos/plamut/superdesk/tags","blobs_url":"https://api.github.com/repos/plamut/superdesk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plamut/superdesk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plamut/superdesk/git/refs{/sha}","trees_url":"https://api.github.com/repos/plamut/superdesk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plamut/superdesk/statuses/{sha}","languages_url":"https://api.github.com/repos/plamut/superdesk/languages","stargazers_url":"https://api.github.com/repos/plamut/superdesk/stargazers","contributors_url":"https://api.github.com/repos/plamut/superdesk/contributors","subscribers_url":"https://api.github.com/repos/plamut/superdesk/subscribers","subscription_url":"https://api.github.com/repos/plamut/superdesk/subscription","commits_url":"https://api.github.com/repos/plamut/superdesk/commits{/sha}","git_commits_url":"https://api.github.com/repos/plamut/superdesk/git/commits{/sha}","comments_url":"https://api.github.com/repos/plamut/superdesk/comments{/number}","issue_comment_url":"https://api.github.com/repos/plamut/superdesk/issues/comments{/number}","contents_url":"https://api.github.com/repos/plamut/superdesk/contents/{+path}","compare_url":"https://api.github.com/repos/plamut/superdesk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plamut/superdesk/merges","archive_url":"https://api.github.com/repos/plamut/superdesk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plamut/superdesk/downloads","issues_url":"https://api.github.com/repos/plamut/superdesk/issues{/number}","pulls_url":"https://api.github.com/repos/plamut/superdesk/pulls{/number}","milestones_url":"https://api.github.com/repos/plamut/superdesk/milestones{/number}","notifications_url":"https://api.github.com/repos/plamut/superdesk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plamut/superdesk/labels{/name}","releases_url":"https://api.github.com/repos/plamut/superdesk/releases{/id}","created_at":"2015-02-16T09:09:52Z","updated_at":"2015-04-13T13:22:52Z","pushed_at":"2015-04-24T10:04:12Z","git_url":"git://github.com/plamut/superdesk.git","ssh_url":"git@github.com:plamut/superdesk.git","clone_url":"https://github.com/plamut/superdesk.git","svn_url":"https://github.com/plamut/superdesk","homepage":null,"size":50168,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"superdesk:content-api","ref":"content-api","sha":"2a4c628affd9a7d23b4f4b9261f393d6255aa34d","user":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"repo":{"id":23570030,"name":"superdesk","full_name":"superdesk/superdesk","owner":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/superdesk/superdesk","description":"The open source end-to-end news platform.","fork":false,"url":"https://api.github.com/repos/superdesk/superdesk","forks_url":"https://api.github.com/repos/superdesk/superdesk/forks","keys_url":"https://api.github.com/repos/superdesk/superdesk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superdesk/superdesk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superdesk/superdesk/teams","hooks_url":"https://api.github.com/repos/superdesk/superdesk/hooks","issue_events_url":"https://api.github.com/repos/superdesk/superdesk/issues/events{/number}","events_url":"https://api.github.com/repos/superdesk/superdesk/events","assignees_url":"https://api.github.com/repos/superdesk/superdesk/assignees{/user}","branches_url":"https://api.github.com/repos/superdesk/superdesk/branches{/branch}","tags_url":"https://api.github.com/repos/superdesk/superdesk/tags","blobs_url":"https://api.github.com/repos/superdesk/superdesk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superdesk/superdesk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superdesk/superdesk/git/refs{/sha}","trees_url":"https://api.github.com/repos/superdesk/superdesk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superdesk/superdesk/statuses/{sha}","languages_url":"https://api.github.com/repos/superdesk/superdesk/languages","stargazers_url":"https://api.github.com/repos/superdesk/superdesk/stargazers","contributors_url":"https://api.github.com/repos/superdesk/superdesk/contributors","subscribers_url":"https://api.github.com/repos/superdesk/superdesk/subscribers","subscription_url":"https://api.github.com/repos/superdesk/superdesk/subscription","commits_url":"https://api.github.com/repos/superdesk/superdesk/commits{/sha}","git_commits_url":"https://api.github.com/repos/superdesk/superdesk/git/commits{/sha}","comments_url":"https://api.github.com/repos/superdesk/superdesk/comments{/number}","issue_comment_url":"https://api.github.com/repos/superdesk/superdesk/issues/comments{/number}","contents_url":"https://api.github.com/repos/superdesk/superdesk/contents/{+path}","compare_url":"https://api.github.com/repos/superdesk/superdesk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superdesk/superdesk/merges","archive_url":"https://api.github.com/repos/superdesk/superdesk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superdesk/superdesk/downloads","issues_url":"https://api.github.com/repos/superdesk/superdesk/issues{/number}","pulls_url":"https://api.github.com/repos/superdesk/superdesk/pulls{/number}","milestones_url":"https://api.github.com/repos/superdesk/superdesk/milestones{/number}","notifications_url":"https://api.github.com/repos/superdesk/superdesk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superdesk/superdesk/labels{/name}","releases_url":"https://api.github.com/repos/superdesk/superdesk/releases{/id}","created_at":"2014-09-02T07:56:17Z","updated_at":"2015-04-24T08:59:23Z","pushed_at":"2015-04-24T10:32:04Z","git_url":"git://github.com/superdesk/superdesk.git","ssh_url":"git@github.com:superdesk/superdesk.git","clone_url":"https://github.com/superdesk/superdesk.git","svn_url":"https://github.com/superdesk/superdesk","homepage":"","size":59265,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":7,"forks":23,"open_issues":7,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/445"},"html":{"href":"https://github.com/superdesk/superdesk/pull/445"},"issue":{"href":"https://api.github.com/repos/superdesk/superdesk/issues/445"},"comments":{"href":"https://api.github.com/repos/superdesk/superdesk/issues/445/comments"},"review_comments":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/445/comments"},"review_comment":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/445/commits"},"statuses":{"href":"https://api.github.com/repos/superdesk/superdesk/statuses/17dbc5f6774a92e86abde2b8f5e5546a446eb914"}}}}