src/main/java/net/leanix/api/BookmarksApi.java
public BookmarkListResponse getBookmarks(String bookmarkType, String groupKey, String sharingType) throws ApiException {
    Object localVarPostBody = null;
    
    // verify the required parameter 'bookmarkType' is set
    if (bookmarkType == null) {
      throw new ApiException(400, "Missing the required parameter 'bookmarkType' when calling getBookmarks");
    }
    
    // create path and map variables
    String localVarPath = "/bookmarks".replaceAll("\\{format\\}","json");

    // query params
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    localVarQueryParams.addAll(apiClient.parameterToPairs("", "bookmarkType", bookmarkType));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "groupKey", groupKey));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "sharingType", sharingType));

    
    
    final String[] localVarAccepts = {
      "application/json"
    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

    final String[] localVarContentTypes = {
      "application/json"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

    String[] localVarAuthNames = new String[] { "token" };

    GenericType<BookmarkListResponse> localVarReturnType = new GenericType<BookmarkListResponse>() {};
    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
      }
public BookmarkListResponse getBookmarks(String bookmarkType, String groupKey, String sharingType) throws ApiException {
    Object localVarPostBody = null;
    
    // verify the required parameter 'bookmarkType' is set
    if (bookmarkType == null) {
      throw new ApiException(400, "Missing the required parameter 'bookmarkType' when calling getBookmarks");
    }
    
    // create path and map variables
    String localVarPath = "/bookmarks".replaceAll("\\{format\\}","json");

    // query params
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();

    localVarQueryParams.addAll(apiClient.parameterToPairs("", "bookmarkType", bookmarkType));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "groupKey", groupKey));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "sharingType", sharingType));

    
    
    final String[] localVarAccepts = {
      "application/json"
    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

    final String[] localVarContentTypes = {
      "application/json"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

    String[] localVarAuthNames = new String[] { "token" };

    GenericType<BookmarkListResponse> localVarReturnType = new GenericType<BookmarkListResponse>() {};
    return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
      }
getBookmarks
Retrieves all stored bookmarks a user can read.
@param bookmarkType Specifies the bookmark type (required)
@param groupKey A key used to separate bookmarks within the same query type (optional)
@param sharingType Specifies the sharing type which the returned bookmarks need to have (optional)
@return BookmarkListResponse
@throws ApiException if fails to make API call