Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 3.4 KB

SearchApi.md

File metadata and controls

86 lines (58 loc) · 3.4 KB

\SearchApi

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
SearchAccount_0 Get /users/{username}/search/code Search for code in the repositories of the specified user

SearchAccount

SearchResultPage SearchAccount(ctx, username, searchQuery, optional) Search for code in the repositories of the specified team

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
username string The account to search in; either the username or the UUID in curly braces
searchQuery string The search query
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

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 int32 Which page of the search results to retrieve [default to 1]
pagelen int32 How many search results to retrieve per page [default to 10]

Return type

SearchResultPage

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SearchAccount_0

SearchResultPage SearchAccount_0(ctx, username, searchQuery, optional) Search for code in the repositories of the specified user

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
username string The account to search in; either the username or the UUID in curly braces
searchQuery string The search query
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

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 int32 Which page of the search results to retrieve [default to 1]
pagelen int32 How many search results to retrieve per page [default to 10]

Return type

SearchResultPage

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]