All URIs are relative to https://api.bitbucket.org/2.0
Method | HTTP request | Description |
---|---|---|
searchAccount | GET /teams/{username}/search/code | Search for code in the repositories of the specified team. Searching across all repositories: ``` curl 'https://api.bitbucket.org/2.0/teams/team_name/search/code?search_query=foo' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 2, \"content_matches\": [ { \"lines\": [ { \"line\": 2, \"segments\": [] }, { \"line\": 3, \"segments\": [ { \"text\": \"def \" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \"():\" } ] }, { \"line\": 4, \"segments\": [ { \"text\": \" print(\\"snek\\")\" } ] }, { \"line\": 5, \"segments\": [] } ] } ], \"path_matches\": [ { \"text\": \"src/\" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \".py\" } ], \"file\": { \"path\": \"src/foo.py\", \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } } } } ] } ``` Note that searches can match in the file's text (`content_matches`), the path (`path_matches`), or both as in the example above. You can use the same syntax for the search query as in the UI, e.g. to only search within a specific repository: ``` curl 'https://api.bitbucket.org/2.0/teams/team_name/search/code?search_query=foo+repo:demo' # results from the \"demo\" repository ``` Similar to other APIs, you can request more fields using a `fields` query parameter. E.g. to get some more information about the repository of matched files (the `%2B` is a URL-encoded `+`): ``` curl 'https://api.bitbucket.org/2.0/teams/team_name/search/code'\ '?search_query=foo&fields=%2Bvalues.file.commit.repository' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 1, \"content_matches\": […], \"path_matches\": […], \"file\": { \"commit\": { \"type\": \"commit\", \"hash\": \"ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/commit/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo/commits/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" } }, \"repository\": { \"name\": \"demo\", \"type\": \"repository\", \"full_name\": \"my-workspace/demo\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo\" }, \"avatar\": { \"href\": \"https://bytebucket.org/ravatar/%7B850e1749-781a-4115-9316-df39d0600e7a%7D?ts=default\" } }, \"uuid\": \"{850e1749-781a-4115-9316-df39d0600e7a}\" } }, \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } }, \"path\": \"src/foo.py\" } } ] } ``` Try `fields=%2Bvalues....` to get an idea what's possible. |
searchAccount_0 | GET /users/{selected_user}/search/code | Search for code in the repositories of the specified user. Searching across all repositories: ``` curl 'https://api.bitbucket.org/2.0/users/{ed08f5e1-605b-4f4a-aee4-6c97628a673e}/search/code?search_query=foo' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 2, \"content_matches\": [ { \"lines\": [ { \"line\": 2, \"segments\": [] }, { \"line\": 3, \"segments\": [ { \"text\": \"def \" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \"():\" } ] }, { \"line\": 4, \"segments\": [ { \"text\": \" print(\\"snek\\")\" } ] }, { \"line\": 5, \"segments\": [] } ] } ], \"path_matches\": [ { \"text\": \"src/\" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \".py\" } ], \"file\": { \"path\": \"src/foo.py\", \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } } } } ] } ``` Note that searches can match in the file's text (`content_matches`), the path (`path_matches`), or both as in the example above. You can use the same syntax for the search query as in the UI, e.g. to only search within a specific repository: ``` curl 'https://api.bitbucket.org/2.0/users/{ed08f5e1-605b-4f4a-aee4-6c97628a673e}/search/code?search_query=foo+repo:demo' # results from the \"demo\" repository ``` Similar to other APIs, you can request more fields using a `fields` query parameter. E.g. to get some more information about the repository of matched files (the `%2B` is a URL-encoded `+`): ``` curl 'https://api.bitbucket.org/2.0/users/{ed08f5e1-605b-4f4a-aee4-6c97628a673e}/search/code'\ '?search_query=foo&fields=%2Bvalues.file.commit.repository' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 1, \"content_matches\": […], \"path_matches\": […], \"file\": { \"commit\": { \"type\": \"commit\", \"hash\": \"ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/commit/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo/commits/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" } }, \"repository\": { \"name\": \"demo\", \"type\": \"repository\", \"full_name\": \"my-workspace/demo\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo\" }, \"avatar\": { \"href\": \"https://bytebucket.org/ravatar/%7B850e1749-781a-4115-9316-df39d0600e7a%7D?ts=default\" } }, \"uuid\": \"{850e1749-781a-4115-9316-df39d0600e7a}\" } }, \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } }, \"path\": \"src/foo.py\" } } ] } ``` Try `fields=%2Bvalues....` to get an idea what's possible. |
searchAccount_1 | GET /workspaces/{workspace}/search/code | Search for code in the repositories of the specified workspace. Searching across all repositories: ``` curl 'https://api.bitbucket.org/2.0/workspaces/workspace_slug_or_uuid/search/code?search_query=foo' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 2, \"content_matches\": [ { \"lines\": [ { \"line\": 2, \"segments\": [] }, { \"line\": 3, \"segments\": [ { \"text\": \"def \" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \"():\" } ] }, { \"line\": 4, \"segments\": [ { \"text\": \" print(\\"snek\\")\" } ] }, { \"line\": 5, \"segments\": [] } ] } ], \"path_matches\": [ { \"text\": \"src/\" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \".py\" } ], \"file\": { \"path\": \"src/foo.py\", \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } } } } ] } ``` Note that searches can match in the file's text (`content_matches`), the path (`path_matches`), or both as in the example above. You can use the same syntax for the search query as in the UI, e.g. to only search within a specific repository: ``` curl 'https://api.bitbucket.org/2.0/workspaces/my-workspace/search/code?search_query=foo+repo:demo' # results from the \"demo\" repository ``` Similar to other APIs, you can request more fields using a `fields` query parameter. E.g. to get some more information about the repository of matched files (the `%2B` is a URL-encoded `+`): ``` curl 'https://api.bitbucket.org/2.0/workspaces/my-workspace/search/code'\ '?search_query=foo&fields=%2Bvalues.file.commit.repository' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 1, \"content_matches\": […], \"path_matches\": […], \"file\": { \"commit\": { \"type\": \"commit\", \"hash\": \"ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/commit/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo/commits/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" } }, \"repository\": { \"name\": \"demo\", \"type\": \"repository\", \"full_name\": \"my-workspace/demo\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo\" }, \"avatar\": { \"href\": \"https://bytebucket.org/ravatar/%7B850e1749-781a-4115-9316-df39d0600e7a%7D?ts=default\" } }, \"uuid\": \"{850e1749-781a-4115-9316-df39d0600e7a}\" } }, \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } }, \"path\": \"src/foo.py\" } } ] } ``` Try `fields=%2Bvalues....` to get an idea what's possible. |
SearchResultPage searchAccount(username, searchQuery, page, pagelen)
Search for code in the repositories of the specified team. Searching across all repositories: ``` curl 'https://api.bitbucket.org/2.0/teams/team_name/search/code?search_query=foo' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 2, \"content_matches\": [ { \"lines\": [ { \"line\": 2, \"segments\": [] }, { \"line\": 3, \"segments\": [ { \"text\": \"def \" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \"():\" } ] }, { \"line\": 4, \"segments\": [ { \"text\": \" print(\\"snek\\")\" } ] }, { \"line\": 5, \"segments\": [] } ] } ], \"path_matches\": [ { \"text\": \"src/\" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \".py\" } ], \"file\": { \"path\": \"src/foo.py\", \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } } } } ] } ``` Note that searches can match in the file's text (`content_matches`), the path (`path_matches`), or both as in the example above. You can use the same syntax for the search query as in the UI, e.g. to only search within a specific repository: ``` curl 'https://api.bitbucket.org/2.0/teams/team_name/search/code?search_query=foo+repo:demo' # results from the \"demo\" repository ``` Similar to other APIs, you can request more fields using a `fields` query parameter. E.g. to get some more information about the repository of matched files (the `%2B` is a URL-encoded `+`): ``` curl 'https://api.bitbucket.org/2.0/teams/team_name/search/code'\ '?search_query=foo&fields=%2Bvalues.file.commit.repository' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 1, \"content_matches\": […], \"path_matches\": […], \"file\": { \"commit\": { \"type\": \"commit\", \"hash\": \"ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/commit/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo/commits/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" } }, \"repository\": { \"name\": \"demo\", \"type\": \"repository\", \"full_name\": \"my-workspace/demo\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo\" }, \"avatar\": { \"href\": \"https://bytebucket.org/ravatar/%7B850e1749-781a-4115-9316-df39d0600e7a%7D?ts=default\" } }, \"uuid\": \"{850e1749-781a-4115-9316-df39d0600e7a}\" } }, \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } }, \"path\": \"src/foo.py\" } } ] } ``` Try `fields=%2Bvalues....` to get an idea what's possible.
// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.SearchApi;
SearchApi apiInstance = new SearchApi();
String username = "username_example"; // String | The account to search in; either the username or the UUID in curly braces
String searchQuery = "searchQuery_example"; // String | The search query
Integer page = 1; // Integer | Which page of the search results to retrieve
Integer pagelen = 10; // Integer | How many search results to retrieve per page
try {
SearchResultPage result = apiInstance.searchAccount(username, searchQuery, page, pagelen);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SearchApi#searchAccount");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
username | String | The account to search in; either the username or the UUID in curly braces | |
searchQuery | String | The search query | |
page | Integer | Which page of the search results to retrieve | [optional] [default to 1] |
pagelen | Integer | How many search results to retrieve per page | [optional] [default to 10] |
No authorization required
SearchResultPage searchAccount_0(selectedUser, searchQuery, page, pagelen)
Search for code in the repositories of the specified user. Searching across all repositories: ``` curl 'https://api.bitbucket.org/2.0/users/{ed08f5e1-605b-4f4a-aee4-6c97628a673e}/search/code?search_query=foo' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 2, \"content_matches\": [ { \"lines\": [ { \"line\": 2, \"segments\": [] }, { \"line\": 3, \"segments\": [ { \"text\": \"def \" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \"():\" } ] }, { \"line\": 4, \"segments\": [ { \"text\": \" print(\\"snek\\")\" } ] }, { \"line\": 5, \"segments\": [] } ] } ], \"path_matches\": [ { \"text\": \"src/\" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \".py\" } ], \"file\": { \"path\": \"src/foo.py\", \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } } } } ] } ``` Note that searches can match in the file's text (`content_matches`), the path (`path_matches`), or both as in the example above. You can use the same syntax for the search query as in the UI, e.g. to only search within a specific repository: ``` curl 'https://api.bitbucket.org/2.0/users/{ed08f5e1-605b-4f4a-aee4-6c97628a673e}/search/code?search_query=foo+repo:demo' # results from the \"demo\" repository ``` Similar to other APIs, you can request more fields using a `fields` query parameter. E.g. to get some more information about the repository of matched files (the `%2B` is a URL-encoded `+`): ``` curl 'https://api.bitbucket.org/2.0/users/{ed08f5e1-605b-4f4a-aee4-6c97628a673e}/search/code'\ '?search_query=foo&fields=%2Bvalues.file.commit.repository' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 1, \"content_matches\": […], \"path_matches\": […], \"file\": { \"commit\": { \"type\": \"commit\", \"hash\": \"ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/commit/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo/commits/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" } }, \"repository\": { \"name\": \"demo\", \"type\": \"repository\", \"full_name\": \"my-workspace/demo\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo\" }, \"avatar\": { \"href\": \"https://bytebucket.org/ravatar/%7B850e1749-781a-4115-9316-df39d0600e7a%7D?ts=default\" } }, \"uuid\": \"{850e1749-781a-4115-9316-df39d0600e7a}\" } }, \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } }, \"path\": \"src/foo.py\" } } ] } ``` Try `fields=%2Bvalues....` to get an idea what's possible.
// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.SearchApi;
SearchApi apiInstance = new SearchApi();
String selectedUser = "selectedUser_example"; // String | Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.
String searchQuery = "searchQuery_example"; // String | The search query
Integer page = 1; // Integer | Which page of the search results to retrieve
Integer pagelen = 10; // Integer | How many search results to retrieve per page
try {
SearchResultPage result = apiInstance.searchAccount_0(selectedUser, searchQuery, page, pagelen);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SearchApi#searchAccount_0");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
selectedUser | String | Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID. | |
searchQuery | String | The search query | |
page | Integer | Which page of the search results to retrieve | [optional] [default to 1] |
pagelen | Integer | How many search results to retrieve per page | [optional] [default to 10] |
No authorization required
SearchResultPage searchAccount_1(workspace, searchQuery, page, pagelen)
Search for code in the repositories of the specified workspace. Searching across all repositories: ``` curl 'https://api.bitbucket.org/2.0/workspaces/workspace_slug_or_uuid/search/code?search_query=foo' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 2, \"content_matches\": [ { \"lines\": [ { \"line\": 2, \"segments\": [] }, { \"line\": 3, \"segments\": [ { \"text\": \"def \" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \"():\" } ] }, { \"line\": 4, \"segments\": [ { \"text\": \" print(\\"snek\\")\" } ] }, { \"line\": 5, \"segments\": [] } ] } ], \"path_matches\": [ { \"text\": \"src/\" }, { \"text\": \"foo\", \"match\": true }, { \"text\": \".py\" } ], \"file\": { \"path\": \"src/foo.py\", \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } } } } ] } ``` Note that searches can match in the file's text (`content_matches`), the path (`path_matches`), or both as in the example above. You can use the same syntax for the search query as in the UI, e.g. to only search within a specific repository: ``` curl 'https://api.bitbucket.org/2.0/workspaces/my-workspace/search/code?search_query=foo+repo:demo' # results from the \"demo\" repository ``` Similar to other APIs, you can request more fields using a `fields` query parameter. E.g. to get some more information about the repository of matched files (the `%2B` is a URL-encoded `+`): ``` curl 'https://api.bitbucket.org/2.0/workspaces/my-workspace/search/code'\ '?search_query=foo&fields=%2Bvalues.file.commit.repository' { \"size\": 1, \"page\": 1, \"pagelen\": 10, \"query_substituted\": false, \"values\": [ { \"type\": \"code_search_result\", \"content_match_count\": 1, \"content_matches\": […], \"path_matches\": […], \"file\": { \"commit\": { \"type\": \"commit\", \"hash\": \"ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/commit/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo/commits/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b\" } }, \"repository\": { \"name\": \"demo\", \"type\": \"repository\", \"full_name\": \"my-workspace/demo\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo\" }, \"html\": { \"href\": \"https://bitbucket.org/my-workspace/demo\" }, \"avatar\": { \"href\": \"https://bytebucket.org/ravatar/%7B850e1749-781a-4115-9316-df39d0600e7a%7D?ts=default\" } }, \"uuid\": \"{850e1749-781a-4115-9316-df39d0600e7a}\" } }, \"type\": \"commit_file\", \"links\": { \"self\": { \"href\": \"https://api.bitbucket.org/2.0/repositories/my-workspace/demo/src/ad6964b5fe2880dbd9ddcad1c89000f1dbcbc24b/src/foo.py\" } }, \"path\": \"src/foo.py\" } } ] } ``` Try `fields=%2Bvalues....` to get an idea what's possible.
// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.SearchApi;
SearchApi apiInstance = new SearchApi();
String workspace = "workspace_example"; // String | The workspace to search in; either the slug or the UUID in curly braces
String searchQuery = "searchQuery_example"; // String | The search query
Integer page = 1; // Integer | Which page of the search results to retrieve
Integer pagelen = 10; // Integer | How many search results to retrieve per page
try {
SearchResultPage result = apiInstance.searchAccount_1(workspace, searchQuery, page, pagelen);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SearchApi#searchAccount_1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
workspace | String | The workspace to search in; either the slug or the UUID in curly braces | |
searchQuery | String | The search query | |
page | Integer | Which page of the search results to retrieve | [optional] [default to 1] |
pagelen | Integer | How many search results to retrieve per page | [optional] [default to 10] |
No authorization required