{"comment":{"url":"https://api.github.com/repos/knowrob/docker/comments/10939457","html_url":"https://github.com/knowrob/docker/commit/0a21dfbc1c0cb5fb2e4e2192daf5a104656562f6#commitcomment-10939457","id":10939457,"user":{"login":"mh0rst","id":2272767,"avatar_url":"https://avatars.githubusercontent.com/u/2272767?v=3","gravatar_id":"","url":"https://api.github.com/users/mh0rst","html_url":"https://github.com/mh0rst","followers_url":"https://api.github.com/users/mh0rst/followers","following_url":"https://api.github.com/users/mh0rst/following{/other_user}","gists_url":"https://api.github.com/users/mh0rst/gists{/gist_id}","starred_url":"https://api.github.com/users/mh0rst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mh0rst/subscriptions","organizations_url":"https://api.github.com/users/mh0rst/orgs","repos_url":"https://api.github.com/users/mh0rst/repos","events_url":"https://api.github.com/users/mh0rst/events{/privacy}","received_events_url":"https://api.github.com/users/mh0rst/received_events","type":"User","site_admin":false},"position":22,"line":62,"path":"webapps/login/webrob/pages/api.py","commit_id":"0a21dfbc1c0cb5fb2e4e2192daf5a104656562f6","created_at":"2015-04-28T12:21:46Z","updated_at":"2015-04-28T12:21:46Z","body":"This API call should not access the session, because flask-sessions depend on cookies being available, which might not be the case (and is not recommended for a RESTful API).\r\nThis API method was originally designed to start the knowrob/hydro-knowrob-daemon user container, so it should be hardcoded to that. For a more general approach, another API method could be introduced where the client can choose the application himself (e.g. /api/v1.0/start_container/<string:token>/<string:application>). The retrieval of available applications could be done by another API method (e.g. /api/v1.0/get_applications/<string:token>/)."}}