Skip to content

Commit 5ea7c06

Browse files
committed
update endpoint name
1 parent 6dadff4 commit 5ea7c06

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

coderd/apidoc/docs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ func New(options *Options) *API {
885885
r.Put("/extend", api.putExtendWorkspace)
886886
r.Put("/dormant", api.putWorkspaceDormant)
887887
r.Put("/autoupdates", api.putWorkspaceAutoupdates)
888-
r.Get("/resolve", api.resolveAutostart)
888+
r.Get("/resolve-autostart", api.resolveAutostart)
889889
})
890890
})
891891
r.Route("/workspacebuilds/{workspacebuild}", func(r chi.Router) {

coderd/workspaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ func (api *API) putWorkspaceAutoupdates(rw http.ResponseWriter, r *http.Request)
10671067
// @Tags Workspaces
10681068
// @Param workspace path string true "Workspace ID" format(uuid)
10691069
// @Success 200 {object} codersdk.ResolveAutostartResponse
1070-
// @Router /workspaces/{workspace}/resolve [get]
1070+
// @Router /workspaces/{workspace}/resolve-autostart [get]
10711071
func (api *API) resolveAutostart(rw http.ResponseWriter, r *http.Request) {
10721072
var (
10731073
ctx = r.Context()

codersdk/workspaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ type ResolveAutostartResponse struct {
454454
}
455455

456456
func (c *Client) ResolveAutostart(ctx context.Context, workspaceID string) (ResolveAutostartResponse, error) {
457-
res, err := c.Request(ctx, http.MethodGet, fmt.Sprintf("/api/v2/workspaces/%s/resolve", workspaceID), nil)
457+
res, err := c.Request(ctx, http.MethodGet, fmt.Sprintf("/api/v2/workspaces/%s/resolve-autostart", workspaceID), nil)
458458
if err != nil {
459459
return ResolveAutostartResponse{}, err
460460
}

docs/api/workspaces.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)