Skip to content

Commit

Permalink
Merge pull request #144 from vanntile/master
Browse files Browse the repository at this point in the history
PX-6348: add restart_required endpoint
  • Loading branch information
iljaSL committed Jan 22, 2024
2 parents bb8fd4e + 9ef8872 commit 60980ce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions api/settings/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,14 @@ func (store *Settings) SectionSchema(scope, section string) (*json.RawMessage, e

return schema, err
}

// RestartRequired get restart required information for given settings and scope
func (store *Settings) RestartRequired(settings *json.RawMessage, scope string) (*json.RawMessage, error) {
isRestartRequiredResponse := &json.RawMessage{}

_, err := store.api.
URL("/settings/api/v1/restart_required/%s", url.PathEscape(scope)).
Post(settings, isRestartRequiredResponse)

return isRestartRequiredResponse, err
}

0 comments on commit 60980ce

Please sign in to comment.