Skip to content

Commit

Permalink
SCALRCORE-20299 - Correct several API filter names according to standard
Browse files Browse the repository at this point in the history
[API_BRANCH]
  • Loading branch information
soltysss authored and petroprotsakh committed Oct 14, 2021
1 parent 9124de0 commit f5efdd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type WebhookListOptions struct {
Include *string `url:"include,omitempty"`

// Filter by enabled
Enabled *bool `url:"filter[webhook][enabled],omitempty"`
Enabled *bool `url:"filter[enabled],omitempty"`

// Event filter
Event *string `url:"filter[event],omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ type WorkspaceListOptions struct {
ListOptions

Environment *string `url:"filter[environment],omitempty"`
Name *string `url:"filter[workspace][name],omitempty"`
Name *string `url:"filter[name],omitempty"`
Include string `url:"include,omitempty"`
}

Expand Down

0 comments on commit f5efdd3

Please sign in to comment.