{"action":"created","issue":{"url":"https://api.github.com/repos/robvdl/pyramidcms/issues/18","labels_url":"https://api.github.com/repos/robvdl/pyramidcms/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/robvdl/pyramidcms/issues/18/comments","events_url":"https://api.github.com/repos/robvdl/pyramidcms/issues/18/events","html_url":"https://github.com/robvdl/pyramidcms/issues/18","id":55064069,"number":18,"title":"Rest API","user":{"login":"robvdl","id":1018674,"avatar_url":"https://avatars.githubusercontent.com/u/1018674?v=3","gravatar_id":"","url":"https://api.github.com/users/robvdl","html_url":"https://github.com/robvdl","followers_url":"https://api.github.com/users/robvdl/followers","following_url":"https://api.github.com/users/robvdl/following{/other_user}","gists_url":"https://api.github.com/users/robvdl/gists{/gist_id}","starred_url":"https://api.github.com/users/robvdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robvdl/subscriptions","organizations_url":"https://api.github.com/users/robvdl/orgs","repos_url":"https://api.github.com/users/robvdl/repos","events_url":"https://api.github.com/users/robvdl/events{/privacy}","received_events_url":"https://api.github.com/users/robvdl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"robvdl","id":1018674,"avatar_url":"https://avatars.githubusercontent.com/u/1018674?v=3","gravatar_id":"","url":"https://api.github.com/users/robvdl","html_url":"https://github.com/robvdl","followers_url":"https://api.github.com/users/robvdl/followers","following_url":"https://api.github.com/users/robvdl/following{/other_user}","gists_url":"https://api.github.com/users/robvdl/gists{/gist_id}","starred_url":"https://api.github.com/users/robvdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robvdl/subscriptions","organizations_url":"https://api.github.com/users/robvdl/orgs","repos_url":"https://api.github.com/users/robvdl/repos","events_url":"https://api.github.com/users/robvdl/events{/privacy}","received_events_url":"https://api.github.com/users/robvdl/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-01-21T19:19:20Z","updated_at":"2015-03-04T18:19:29Z","closed_at":null,"body":"We need to create a simple REST API at some point.\r\n\r\nNot sure if we want to do this in plain Pyramid views (using view classes), or using Mozilla Cornice.\r\n\r\nI would start with implementing the GET's first as they are the easiest, so for example \"return a list of users\", and \"return one user\".\r\n\r\nPlease use the model.serialize() method for this, which has already been implemented, I think in most cases for an API we need to call this with full=True, though not always as in some cases this could generate very large requests."},"comment":{"url":"https://api.github.com/repos/robvdl/pyramidcms/issues/comments/77214109","html_url":"https://github.com/robvdl/pyramidcms/issues/18#issuecomment-77214109","issue_url":"https://api.github.com/repos/robvdl/pyramidcms/issues/18","id":77214109,"user":{"login":"robvdl","id":1018674,"avatar_url":"https://avatars.githubusercontent.com/u/1018674?v=3","gravatar_id":"","url":"https://api.github.com/users/robvdl","html_url":"https://github.com/robvdl","followers_url":"https://api.github.com/users/robvdl/followers","following_url":"https://api.github.com/users/robvdl/following{/other_user}","gists_url":"https://api.github.com/users/robvdl/gists{/gist_id}","starred_url":"https://api.github.com/users/robvdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robvdl/subscriptions","organizations_url":"https://api.github.com/users/robvdl/orgs","repos_url":"https://api.github.com/users/robvdl/repos","events_url":"https://api.github.com/users/robvdl/events{/privacy}","received_events_url":"https://api.github.com/users/robvdl/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T18:19:29Z","updated_at":"2015-03-04T18:19:29Z","body":"I don't think that is the case though, these test are just different in that they test an API base class, it has to be subclassed (which is what the test does) to generate some fake API's\r\n\r\nAbout the only thing that is different, is the lack of description/docstring in the tests to say what each test is trying to do."}}