{"action":"created","issue":{"url":"https://api.github.com/repos/muccg/mastr-ms/issues/1","repository_url":"https://api.github.com/repos/muccg/mastr-ms","labels_url":"https://api.github.com/repos/muccg/mastr-ms/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/muccg/mastr-ms/issues/1/comments","events_url":"https://api.github.com/repos/muccg/mastr-ms/issues/1/events","html_url":"https://github.com/muccg/mastr-ms/pull/1","id":150233317,"number":1,"title":"Rest API from tastypie to django_rest_interface, JSON export","user":{"login":"rvl","id":1019641,"avatar_url":"https://avatars.githubusercontent.com/u/1019641?v=3","gravatar_id":"","url":"https://api.github.com/users/rvl","html_url":"https://github.com/rvl","followers_url":"https://api.github.com/users/rvl/followers","following_url":"https://api.github.com/users/rvl/following{/other_user}","gists_url":"https://api.github.com/users/rvl/gists{/gist_id}","starred_url":"https://api.github.com/users/rvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvl/subscriptions","organizations_url":"https://api.github.com/users/rvl/orgs","repos_url":"https://api.github.com/users/rvl/repos","events_url":"https://api.github.com/users/rvl/events{/privacy}","received_events_url":"https://api.github.com/users/rvl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-22T01:01:00Z","updated_at":"2016-04-22T06:37:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/muccg/mastr-ms/pulls/1","html_url":"https://github.com/muccg/mastr-ms/pull/1","diff_url":"https://github.com/muccg/mastr-ms/pull/1.diff","patch_url":"https://github.com/muccg/mastr-ms/pull/1.patch"},"body":"@sztamas feel like a quick inspection of this patch for Mastr-MS?\r\n\r\nThe tastypie API is ripped out. The only place it was used was for investigations. The hand-written `/ws` API still exists and it would be a fair amount of work to remove.\r\n\r\nThe purpose of this change is so we can have a JSON dump of a project(s) which can be loaded into the BPA archive. It contains all related experimental data which might be needed. It has links to the file downloads which the BPA ingestion script can use.\r\n\r\nThis is how the BPA data import process would work:\r\n\r\n1. Obtain authentication token from Mastr-MS API using username and password. The tokens don't expire.\r\n\r\n2. Using the token in a http header, get the URL `/api/v1/dump/project/:ID`. This will return a big lump of json with the project, its experiments, and all other related information.\r\n\r\n3. Within the experiment and sample entries in the json, there will be lists of files referred to by URL, corresponding to the files which exist in the mastrms repository.\r\n\r\n4. The files can be downloaded using the session cookie which was returned with the json dump. If that session cookie expires a new one can be gotten from the api using the token.\r\n"},"comment":{"url":"https://api.github.com/repos/muccg/mastr-ms/issues/comments/213287833","html_url":"https://github.com/muccg/mastr-ms/pull/1#issuecomment-213287833","issue_url":"https://api.github.com/repos/muccg/mastr-ms/issues/1","id":213287833,"user":{"login":"sztamas","id":973139,"avatar_url":"https://avatars.githubusercontent.com/u/973139?v=3","gravatar_id":"","url":"https://api.github.com/users/sztamas","html_url":"https://github.com/sztamas","followers_url":"https://api.github.com/users/sztamas/followers","following_url":"https://api.github.com/users/sztamas/following{/other_user}","gists_url":"https://api.github.com/users/sztamas/gists{/gist_id}","starred_url":"https://api.github.com/users/sztamas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sztamas/subscriptions","organizations_url":"https://api.github.com/users/sztamas/orgs","repos_url":"https://api.github.com/users/sztamas/repos","events_url":"https://api.github.com/users/sztamas/events{/privacy}","received_events_url":"https://api.github.com/users/sztamas/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T06:37:02Z","updated_at":"2016-04-22T06:37:02Z","body":"@rvl looks good to me.\r\nI just made one comment, but nothing significant."}}