| title | Repo Deploy Keys | GitHub API |
|---|
GET /repos/:user/:repo/keys
<%= headers 200 %> <%= json(:public_key) { |h| [h] } %>
GET /repos/:user/:repo/keys/:id
<%= headers 200 %> <%= json :public_key %>
POST /repos/:user/:repo/keys
<%= json :title => "octocat@octomac", :key => "ssh-rsa AAA..." %>
<%= headers 201, :Location => "https://api.github.com/user/repo/keys/1" %> <%= json :public_key %>
PATCH /repos/:user/:repo/keys/:id
<%= json :title => "octocat@octomac", :key => "ssh-rsa AAA..." %>
<%= headers 200 %> <%= json :public_key %>
DELETE /repos/:user/:repo/keys/:id
<%= headers 204 %>