mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-20 03:44:25 +00:00
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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user