
com.blazebit.query.connector.kandji.api.SelfServiceApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blaze-query-connector-kandji-jersey3 Show documentation
Show all versions of blaze-query-connector-kandji-jersey3 Show documentation
A multi-platform querying library
The newest version!
package com.blazebit.query.connector.kandji.api;
import com.blazebit.query.connector.kandji.invoker.ApiException;
import com.blazebit.query.connector.kandji.invoker.ApiClient;
import com.blazebit.query.connector.kandji.invoker.ApiResponse;
import com.blazebit.query.connector.kandji.invoker.Configuration;
import com.blazebit.query.connector.kandji.invoker.Pair;
import jakarta.ws.rs.core.GenericType;
import com.blazebit.query.connector.kandji.model.ListSelfServiceCategories200ResponseInner;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-30T07:19:31.168100307Z[Etc/UTC]", comments = "Generator version: 7.10.0")
public class SelfServiceApi {
private ApiClient apiClient;
public SelfServiceApi() {
this(Configuration.getDefaultApiClient());
}
public SelfServiceApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Get the API client
*
* @return API client
*/
public ApiClient getApiClient() {
return apiClient;
}
/**
* Set the API client
*
* @param apiClient an instance of API client
*/
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* List Self Service Categories
* This endpoint retrieves a list of self-service categories and their associated IDs. If you are planning to make a Library item available in Self Service under a specific category, you can call this endpoint to get the category ID and then use that ID when creating or updating the library item via the Kandji API.
* @return List<ListSelfServiceCategories200ResponseInner>
* @throws ApiException if fails to make API call
* @http.response.details
Response Details
Status Code Description Response Headers
200 success * Allow -
* Content-Length -
* Content-Security-Policy -
* Cross-Origin-Opener-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
*/
public List listSelfServiceCategories() throws ApiException {
return listSelfServiceCategoriesWithHttpInfo().getData();
}
/**
* List Self Service Categories
* This endpoint retrieves a list of self-service categories and their associated IDs. If you are planning to make a Library item available in Self Service under a specific category, you can call this endpoint to get the category ID and then use that ID when creating or updating the library item via the Kandji API.
* @return ApiResponse<List<ListSelfServiceCategories200ResponseInner>>
* @throws ApiException if fails to make API call
* @http.response.details
Response Details
Status Code Description Response Headers
200 success * Allow -
* Content-Length -
* Content-Security-Policy -
* Cross-Origin-Opener-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
*/
public ApiResponse> listSelfServiceCategoriesWithHttpInfo() throws ApiException {
String localVarAccept = apiClient.selectHeaderAccept("application/json");
String localVarContentType = apiClient.selectHeaderContentType();
String[] localVarAuthNames = new String[] {"bearerAuth"};
GenericType> localVarReturnType = new GenericType>() {};
return apiClient.invokeAPI("SelfServiceApi.listSelfServiceCategories", "/api/v1/self-service/categories", "GET", new ArrayList<>(), null,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, localVarReturnType, false);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy