{"action":"created","issue":{"url":"https://api.github.com/repos/binder-project/binder/issues/8","labels_url":"https://api.github.com/repos/binder-project/binder/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/binder-project/binder/issues/8/comments","events_url":"https://api.github.com/repos/binder-project/binder/issues/8/events","html_url":"https://github.com/binder-project/binder/issues/8","id":103329438,"number":8,"title":"API Design for binder resources","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-26T17:51:29Z","updated_at":"2015-08-26T21:35:07Z","closed_at":null,"body":"In order to use binder with thebe and other javascript frontends that use kernels directly, we'll want to expose a provisioning API. I've been imagining a higher order kernels provisioning API but generally what we want is two resources to work with in any case:\r\n\r\n* Building a binder from a repository\r\n* Launching a binder"},"comment":{"url":"https://api.github.com/repos/binder-project/binder/issues/comments/135177309","html_url":"https://github.com/binder-project/binder/issues/8#issuecomment-135177309","issue_url":"https://api.github.com/repos/binder-project/binder/issues/8","id":135177309,"user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T21:35:07Z","updated_at":"2015-08-26T21:35:07Z","body":"Thinking about the pooling that tmpnb does (and that I would hope for in binder), I imagine we could have an endpoint at `/pool/` to set up capacities (and inspect allocations) for images:\r\n\r\n```\r\nGET /pool/{imageName} HTTP 1.1\r\n```\r\n\r\n```\r\nPOST /pool/{imageName}\r\nAuthorization: 9f66083738d8e8fa48e2f19d4bd3bdb4821fa2d3fdc7d84e4228ded5e219\r\n\r\n{\r\n  \"minPool\": 512\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n"}}