mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
docs: API workspace agents and builds (#5538)
This commit is contained in:
@ -100,6 +100,14 @@ func (api *API) gitSSHKey(rw http.ResponseWriter, r *http.Request) {
|
||||
})
|
||||
}
|
||||
|
||||
// @Summary Get workspace agent Git SSH key
|
||||
// @ID get-workspace-agent-git-ssh-key
|
||||
// @Security CoderSessionToken
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Tags Agents
|
||||
// @Success 200 {object} codersdk.AgentGitSSHKey
|
||||
// @Router /workspaceagents/me/gitsshkey [get]
|
||||
func (api *API) agentGitSSHKey(rw http.ResponseWriter, r *http.Request) {
|
||||
ctx := r.Context()
|
||||
agent := httpmw.WorkspaceAgent(r)
|
||||
|
Reference in New Issue
Block a user