-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip max_docs query string params (#4075)
This commit skips max_docs as query string params on DeleteByQuery,UpdateByQuery and ReindexOnServer. The parameter can also be defined in the request body, so prefer this.
- Loading branch information
Showing
7 changed files
with
30 additions
and
48 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/CodeGeneration/ApiGenerator/Configuration/Overrides/Endpoints/DeleteByQueryOverrides.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ApiGenerator.Configuration.Overrides.Endpoints | ||
{ | ||
public class DeleteByQueryOverrides : EndpointOverridesBase | ||
{ | ||
public override IEnumerable<string> SkipQueryStringParams => new[] { "max_docs", }; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...CodeGeneration/ApiGenerator/Configuration/Overrides/Endpoints/ReindexOnServerOverrides.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ApiGenerator.Configuration.Overrides.Endpoints | ||
{ | ||
public class ReindexOnServerOverrides : EndpointOverridesBase | ||
{ | ||
public override IEnumerable<string> SkipQueryStringParams => new[] { "max_docs", }; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/CodeGeneration/ApiGenerator/Configuration/Overrides/Endpoints/UpdateByQueryOverrides.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ApiGenerator.Configuration.Overrides.Endpoints | ||
{ | ||
public class UpdateByQueryOverrides : EndpointOverridesBase | ||
{ | ||
public override IEnumerable<string> SkipQueryStringParams => new[] { "max_docs", }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters