From 5e70eac501dde53e01a0b59822fd329460dc5b15 Mon Sep 17 00:00:00 2001 From: nutcas3 Date: Fri, 17 Apr 2026 16:21:27 +0300 Subject: [PATCH] feat: Add PostRestart method to API client for service restart operations - Add PostRestart to request service restart via /api/v1/services/{name}/restart endpoint - Add godoc comment describing restart functionality --- apps/cli/internal/api/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/cli/internal/api/client.go b/apps/cli/internal/api/client.go index 7439cd8..2a3f8f4 100644 --- a/apps/cli/internal/api/client.go +++ b/apps/cli/internal/api/client.go @@ -163,6 +163,11 @@ type Service struct { Memory string `json:"memory"` } +// PostRestart requests the API to restart the named service. +func (c *Client) PostRestart(name string) error { + return c.doPostJSON("/api/v1/services/"+name+"/restart", nil, nil) +} + // ListServices returns platform services func (c *Client) ListServices() ([]Service, error) { var resp struct {