diff --git a/api/swagger.yml b/api/swagger.yml
index e4e16d94b0f..01cc2f46177 100644
--- a/api/swagger.yml
+++ b/api/swagger.yml
@@ -70,6 +70,13 @@ components:
description: delimiter used to group common prefixes by
schema:
type: string
+
+ SearchString:
+ in: query
+ name: search
+ description: string for searching relevant entries
+ schema:
+ type: string
IfNoneMatch:
in: header
@@ -695,7 +702,7 @@ components:
default: false
hidden:
type: boolean
- description: When set, branch will not show up when listing branches by default. *EXPERIMENTAL*
+ description: When set, branch will not show up when listing branches by default. *EXPERIMENTAL*
default: false
TagCreation:
@@ -742,7 +749,7 @@ components:
error:
type: string
refs:
- $ref: "#/components/schemas/RefsDump"
+ $ref: "#/components/schemas/RefsDump"
RepositoryRestoreStatus:
type: object
@@ -1472,7 +1479,7 @@ components:
properties:
type:
type: string
- enum: [ common_prefix, object ]
+ enum: [common_prefix, object]
description: Path type, can either be 'common_prefix' or 'object'
path:
type: string
@@ -1705,7 +1712,7 @@ components:
- installation_id
- reports
- ExternalPrincipalList:
+ ExternalPrincipalList:
type: object
required:
- pagination
@@ -1752,7 +1759,7 @@ components:
properties:
status:
type: string
- enum: [ open, closed, merged ]
+ enum: [open, closed, merged]
title:
type: string
description:
@@ -1760,36 +1767,36 @@ components:
PullRequest:
allOf:
- - $ref: '#/components/schemas/PullRequestBasic'
- - required:
+ - $ref: '#/components/schemas/PullRequestBasic'
+ - required:
- status
- title
- description
- - type: object
- required:
- - id
- - creation_date
- - author
- - source_branch
- - destination_branch
- properties:
- id:
- type: string
- creation_date:
- type: string
- format: date-time
- author:
- type: string
- source_branch:
- type: string
- destination_branch:
- type: string
- merged_commit_id:
- type: string
- description: the commit id of merged PRs
- closed_date:
- type: string
- format: date-time
+ - type: object
+ required:
+ - id
+ - creation_date
+ - author
+ - source_branch
+ - destination_branch
+ properties:
+ id:
+ type: string
+ creation_date:
+ type: string
+ format: date-time
+ author:
+ type: string
+ source_branch:
+ type: string
+ destination_branch:
+ type: string
+ merged_commit_id:
+ type: string
+ description: the commit id of merged PRs
+ closed_date:
+ type: string
+ format: date-time
PullRequestsList:
type: object
@@ -2668,11 +2675,11 @@ paths:
- experimental
operationId: createUserExternalPrincipal
summary: attach external principal to user
- requestBody:
+ requestBody:
required: false
- content:
- application/json:
- schema:
+ content:
+ application/json:
+ schema:
$ref: "#/components/schemas/ExternalPrincipalCreation"
responses:
201:
@@ -2753,7 +2760,7 @@ paths:
- external
- experimental
operationId: getExternalPrincipal
- summary: describe external principal by id
+ summary: describe external principal by id
responses:
200:
description: external principal
@@ -2899,7 +2906,7 @@ paths:
description: too many requests
default:
$ref: "#/components/responses/ServerError"
-
+
/repositories:
get:
tags:
@@ -2908,6 +2915,7 @@ paths:
- $ref: "#/components/parameters/PaginationPrefix"
- $ref: "#/components/parameters/PaginationAfter"
- $ref: "#/components/parameters/PaginationAmount"
+ - $ref: "#/components/parameters/SearchString"
operationId: listRepositories
summary: list repositories
responses:
@@ -4564,10 +4572,10 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/StagingMetadata"
-
+
parameters:
- $ref: "#/components/parameters/IfNoneMatch"
-
+
responses:
200:
# This actually violates HTTP, which requires returning 201 if a new object was
@@ -5755,7 +5763,7 @@ paths:
name: status
schema:
type: string
- enum: [ open, closed, all ]
+ enum: [open, closed, all]
default: all
description: filter pull requests by status
responses:
diff --git a/clients/java/api/openapi.yaml b/clients/java/api/openapi.yaml
index 01b85b7b499..c2bfede9523 100644
--- a/clients/java/api/openapi.yaml
+++ b/clients/java/api/openapi.yaml
@@ -1965,6 +1965,14 @@ paths:
minimum: -1
type: integer
style: form
+ - description: string for searching relevant entries
+ explode: true
+ in: query
+ name: search
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
@@ -7387,6 +7395,15 @@ components:
schema:
type: string
style: form
+ SearchString:
+ description: string for searching relevant entries
+ explode: true
+ in: query
+ name: search
+ required: false
+ schema:
+ type: string
+ style: form
IfNoneMatch:
description: Set to "*" to atomically allow the upload only if the key has no
object yet. Other values are not supported.
diff --git a/clients/java/docs/RepositoriesApi.md b/clients/java/docs/RepositoriesApi.md
index 664fcc4ef43..6312770cd96 100644
--- a/clients/java/docs/RepositoriesApi.md
+++ b/clients/java/docs/RepositoriesApi.md
@@ -868,7 +868,7 @@ public class Example {
# **listRepositories**
-> RepositoryList listRepositories().prefix(prefix).after(after).amount(amount).execute();
+> RepositoryList listRepositories().prefix(prefix).after(after).amount(amount).search(search).execute();
list repositories
@@ -918,11 +918,13 @@ public class Example {
String prefix = "prefix_example"; // String | return items prefixed with this value
String after = "after_example"; // String | return items after this value
Integer amount = 100; // Integer | how many items to return
+ String search = "search_example"; // String | string for searching relevant entries
try {
RepositoryList result = apiInstance.listRepositories()
.prefix(prefix)
.after(after)
.amount(amount)
+ .search(search)
.execute();
System.out.println(result);
} catch (ApiException e) {
@@ -943,6 +945,7 @@ public class Example {
| **prefix** | **String**| return items prefixed with this value | [optional] |
| **after** | **String**| return items after this value | [optional] |
| **amount** | **Integer**| how many items to return | [optional] [default to 100] |
+| **search** | **String**| string for searching relevant entries | [optional] |
### Return type
diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/RepositoriesApi.java b/clients/java/src/main/java/io/lakefs/clients/sdk/RepositoriesApi.java
index 2b45a54a744..03277973622 100644
--- a/clients/java/src/main/java/io/lakefs/clients/sdk/RepositoriesApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/sdk/RepositoriesApi.java
@@ -1678,7 +1678,7 @@ public okhttp3.Call executeAsync(final ApiCallback