Skip to content

Commit 588318c

Browse files
feat(api): server-side search on GET /projects
1 parent b3465f1 commit 588318c

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 112
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-718b49461ceaa1d6cac7854c29dfef9036a83f6632e756c9d1ecf31fd77c57f6.yml
3-
openapi_spec_hash: f3d12a3a0a5e9ce711fb1c571ee36f9c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-86e061884d273a27064593a0de3a4ba366a12a1001181741addb4f781be18ec9.yml
3+
openapi_spec_hash: e0a4ddf4a3302599376756127099488c
44
config_hash: 08d55086449943a8fec212b870061a3f

project.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ type ProjectListParams struct {
223223
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
224224
// Number of results to skip
225225
Offset param.Opt[int64] `query:"offset,omitzero" json:"-"`
226+
// Case-insensitive substring match against project name
227+
Query param.Opt[string] `query:"query,omitzero" json:"-"`
226228
paramObj
227229
}
228230

project_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ func TestProjectListWithOptionalParams(t *testing.T) {
111111
_, err := client.Projects.List(context.TODO(), kernel.ProjectListParams{
112112
Limit: kernel.Int(100),
113113
Offset: kernel.Int(0),
114+
Query: kernel.String("query"),
114115
})
115116
if err != nil {
116117
var apierr *kernel.Error

0 commit comments

Comments
 (0)