{"action":"created","issue":{"url":"https://api.github.com/repos/vanatteveldt/nlpipe/issues/3","repository_url":"https://api.github.com/repos/vanatteveldt/nlpipe","labels_url":"https://api.github.com/repos/vanatteveldt/nlpipe/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/vanatteveldt/nlpipe/issues/3/comments","events_url":"https://api.github.com/repos/vanatteveldt/nlpipe/issues/3/events","html_url":"https://github.com/vanatteveldt/nlpipe/issues/3","id":179480785,"number":3,"title":"Create HTTP server code","user":{"login":"vanatteveldt","id":1736240,"avatar_url":"https://avatars.githubusercontent.com/u/1736240?v=3","gravatar_id":"","url":"https://api.github.com/users/vanatteveldt","html_url":"https://github.com/vanatteveldt","followers_url":"https://api.github.com/users/vanatteveldt/followers","following_url":"https://api.github.com/users/vanatteveldt/following{/other_user}","gists_url":"https://api.github.com/users/vanatteveldt/gists{/gist_id}","starred_url":"https://api.github.com/users/vanatteveldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanatteveldt/subscriptions","organizations_url":"https://api.github.com/users/vanatteveldt/orgs","repos_url":"https://api.github.com/users/vanatteveldt/repos","events_url":"https://api.github.com/users/vanatteveldt/events{/privacy}","received_events_url":"https://api.github.com/users/vanatteveldt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"vanatteveldt","id":1736240,"avatar_url":"https://avatars.githubusercontent.com/u/1736240?v=3","gravatar_id":"","url":"https://api.github.com/users/vanatteveldt","html_url":"https://github.com/vanatteveldt","followers_url":"https://api.github.com/users/vanatteveldt/followers","following_url":"https://api.github.com/users/vanatteveldt/following{/other_user}","gists_url":"https://api.github.com/users/vanatteveldt/gists{/gist_id}","starred_url":"https://api.github.com/users/vanatteveldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanatteveldt/subscriptions","organizations_url":"https://api.github.com/users/vanatteveldt/orgs","repos_url":"https://api.github.com/users/vanatteveldt/repos","events_url":"https://api.github.com/users/vanatteveldt/events{/privacy}","received_events_url":"https://api.github.com/users/vanatteveldt/received_events","type":"User","site_admin":false},"assignees":[{"login":"vanatteveldt","id":1736240,"avatar_url":"https://avatars.githubusercontent.com/u/1736240?v=3","gravatar_id":"","url":"https://api.github.com/users/vanatteveldt","html_url":"https://github.com/vanatteveldt","followers_url":"https://api.github.com/users/vanatteveldt/followers","following_url":"https://api.github.com/users/vanatteveldt/following{/other_user}","gists_url":"https://api.github.com/users/vanatteveldt/gists{/gist_id}","starred_url":"https://api.github.com/users/vanatteveldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanatteveldt/subscriptions","organizations_url":"https://api.github.com/users/vanatteveldt/orgs","repos_url":"https://api.github.com/users/vanatteveldt/repos","events_url":"https://api.github.com/users/vanatteveldt/events{/privacy}","received_events_url":"https://api.github.com/users/vanatteveldt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-09-27T12:36:00Z","updated_at":"2016-09-30T19:45:57Z","closed_at":"2016-09-30T19:45:57Z","body":"Create the HTTP server.\r\n\r\nInternally, this should probably use the FSClient and map HTTP requests to FSClient functions 1:1. "},"comment":{"url":"https://api.github.com/repos/vanatteveldt/nlpipe/issues/comments/250835464","html_url":"https://github.com/vanatteveldt/nlpipe/issues/3#issuecomment-250835464","issue_url":"https://api.github.com/repos/vanatteveldt/nlpipe/issues/3","id":250835464,"user":{"login":"vanatteveldt","id":1736240,"avatar_url":"https://avatars.githubusercontent.com/u/1736240?v=3","gravatar_id":"","url":"https://api.github.com/users/vanatteveldt","html_url":"https://github.com/vanatteveldt","followers_url":"https://api.github.com/users/vanatteveldt/followers","following_url":"https://api.github.com/users/vanatteveldt/following{/other_user}","gists_url":"https://api.github.com/users/vanatteveldt/gists{/gist_id}","starred_url":"https://api.github.com/users/vanatteveldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanatteveldt/subscriptions","organizations_url":"https://api.github.com/users/vanatteveldt/orgs","repos_url":"https://api.github.com/users/vanatteveldt/repos","events_url":"https://api.github.com/users/vanatteveldt/events{/privacy}","received_events_url":"https://api.github.com/users/vanatteveldt/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T19:45:57Z","updated_at":"2016-09-30T19:45:57Z","body":"Added Flask-based HTTP server in a3b6b48fc684aad5c76061c5a9f1470425463614\r\n\r\nYou can run it with \r\n\r\n```{sh}\r\nenv/bin/python nlpipe/restserver.py /tmp/test\r\n```\r\n\r\nWhere /tmp/test is the root for the document storage (will be created automatically\r\n\r\nSee the [server test](tests/test_server.py) code for the workflow. You can also use curl from command line:\r\n\r\n```{sh}\r\n# client: post new task and store ID\r\nID=`curl -fs -XPOST -d 'just another test' http://localhost:5000/api/modules/bla/`\r\n\r\n# client: check task status (should be 202)\r\ncurl -fi -I http://localhost:5000/api/modules/bla/$ID\r\n\r\n# worker: get task\r\ncurl -fs http://localhost:5000/api/modules/bla/ > /tmp/task\r\n\r\n# do the task!\r\ntr '[:lower:]' '[:upper:]' < /tmp/task > /tmp/result\r\n\r\n# worker: post results\r\ncurl -fi -XPUT -d@/tmp/result http://localhost:5000/api/modules/bla/$ID\r\n\r\n# client: check task status and get result\r\ncurl -fi -I http://localhost:5000/api/modules/bla/$ID\r\ncurl -f http://localhost:5000/api/modules/bla/$ID\r\n```"}}
{"actor":{"display_login":"vanatteveldt"}}