Class RestAPIAdminImpl

java.lang.Object
org.wso2.am.integration.test.impl.RestAPIAdminImpl

public class RestAPIAdminImpl extends Object
This util class performs the actions related to APIDTOobjects.
  • Field Details

  • Constructor Details

  • Method Details

    • getThrottlePolicies

      public ThrottlePolicyDetailsListDTO getThrottlePolicies(String query) throws ApiException
      This method is used to get a list throttling policy details
      Parameters:
      query - Filters by throttling policy type
      Returns:
      Throttling Policy details list
      Throws:
      ApiException - Throws if an error occurred while getting throttling policy details
    • exportThrottlePolicy

      public ApiResponse<ExportThrottlePolicyDTO> exportThrottlePolicy(String policyName, String policyType) throws ApiException
      This method is used to export a Throttling Policy
      Parameters:
      policyName - Throttling Policy name to be exported
      policyType - Throttling Policy type
      Returns:
      ExportThrottlePolicyApi response returned by the API call
      Throws:
      ApiException - Throws if an error occurred while exporting Throttling policy
    • importThrottlePolicy

      public ApiResponse<Void> importThrottlePolicy(File file, Boolean overwrite) throws ApiException
      This method is used to import a Throttling Policy
      Parameters:
      file - Exported throttling policy file
      overwrite - overwrites already existing throttling policy
      Returns:
      ImportThrottlePolicyApi response returned by the API call
      Throws:
      ApiException - Throws if an error occurred while importing Throttling policy
    • addApiCategory

      public ApiResponse<APICategoryDTO> addApiCategory(APICategoryDTO apiCategoryDTO) throws ApiException
      This method is used to add an API category.
      Parameters:
      apiCategoryDTO - API category DTO to be added
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while adding the new API category.
    • updateApiCategory

      public ApiResponse<APICategoryDTO> updateApiCategory(String uuid, APICategoryDTO apiCategoryDTO) throws ApiException
      This method is used to update an API category
      Parameters:
      uuid - UUID of the API category to be updated
      apiCategoryDTO - API category DTO to be updated
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while updating the new API category.
    • getApiCategories

      public ApiResponse<APICategoryListDTO> getApiCategories() throws ApiException
      This method is used to retrieve all API categories.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while retrieving all API categories.
    • deleteApiCategory

      public ApiResponse<Void> deleteApiCategory(String uuid) throws ApiException
      This method is used to delete an API category.
      Parameters:
      uuid - uuid of the API category to be deleted.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while deleting the API category.
    • getLLMProviders

      Retrieves a list of LLM Providers.
      Returns:
      ApiResponse containing a list of LLMProviderSummaryResponseListDTO with details about available LLM providers.
      Throws:
      ApiException - if there is an error during the API call.
    • getLLMProvider

      public ApiResponse<LLMProviderResponseDTO> getLLMProvider(String llmProviderId) throws ApiException
      Retrieves details of a specific LLM Provider by its ID.
      Parameters:
      llmProviderId - The unique identifier of the LLM provider.
      Returns:
      ApiResponse containing LLMProviderResponseDTO with details of the specified LLM provider.
      Throws:
      ApiException - if there is an error during the API call.
    • addLLMProvider

      public ApiResponse<LLMProviderResponseDTO> addLLMProvider(String name, String apiVersion, String description, String configuration, File apiDefinition, String modelList) throws ApiException
      Add the details of a specific LLM Provider.
      Parameters:
      name - The new name of the LLM provider.
      apiVersion - The API version of the LLM provider.
      description - A brief description of the LLM provider.
      configuration - Configuration details for the LLM provider.
      apiDefinition - The API definition file for the LLM provider.
      modelList - The list of models for the LLM provider.
      Returns:
      ApiResponse containing LLMProviderResponseDTO with the updated details of the LLM provider.
      Throws:
      ApiException - if there is an error during the API call.
    • updateLLMProvider

      public ApiResponse<LLMProviderResponseDTO> updateLLMProvider(String llmProviderId, String name, String apiVersion, String description, String configuration, File apiDefinition, String modelList) throws ApiException
      Updates the details of a specific LLM Provider by its ID.
      Parameters:
      llmProviderId - The unique identifier of the LLM provider.
      name - The new name of the LLM provider.
      apiVersion - The API version of the LLM provider.
      description - A brief description of the LLM provider.
      configuration - Configuration details for the LLM provider.
      apiDefinition - The API definition file for the LLM provider.
      modelList - The list of models for the LLM provider.
      Returns:
      ApiResponse containing LLMProviderResponseDTO with the updated details of the LLM provider.
      Throws:
      ApiException - if there is an error during the API call.
    • deleteLLMProvider

      public ApiResponse<Void> deleteLLMProvider(String llmProviderId) throws ApiException
      Deletes a specific LLM Provider by its ID.
      Parameters:
      llmProviderId - The unique identifier of the LLM provider to be deleted.
      Returns:
      ApiResponse containing void, indicating successful deletion of the LLM provider.
      Throws:
      ApiException - if there is an error during the API call.
    • getAIServiceProviders

      public ApiResponse<AIServiceProviderSummaryResponseListDTO> getAIServiceProviders() throws ApiException
      Retrieves a list of AI Service Providers.
      Returns:
      ApiResponse containing a list of AIServiceProviderSummaryResponseListDTO with details about available AI service providers.
      Throws:
      ApiException - if there is an error during the API call.
    • getAIServiceProvider

      public ApiResponse<AIServiceProviderResponseDTO> getAIServiceProvider(String aiServiceProviderId) throws ApiException
      Retrieves details of a specific AI Service Provider by its ID.
      Parameters:
      aiServiceProviderId - The unique identifier of the AI service provider.
      Returns:
      ApiResponse containing AIServiceProviderResponseDTO with details of the specified AI service provider.
      Throws:
      ApiException - if there is an error during the API call.
    • addAIServiceProvider

      public ApiResponse<AIServiceProviderResponseDTO> addAIServiceProvider(String name, String apiVersion, String description, Boolean multipleModelProviderSupport, String configurations, File apiDefinition, String modelProviders) throws ApiException
      Add the details of a specific AI Service Provider.
      Parameters:
      name - The new name of the AI service provider.
      apiVersion - The API version of the AI service provider.
      description - A brief description of the AI service provider.
      multipleModelProviderSupport - Whether the provider supports multiple model providers.
      configurations - Configuration details for the AI service provider.
      apiDefinition - The API definition file for the AI service provider.
      modelProviders - The list of model providers for the AI service provider.
      Returns:
      ApiResponse containing AIServiceProviderResponseDTO with the created details of the AI service provider.
      Throws:
      ApiException - if there is an error during the API call.
    • updateAIServiceProvider

      public ApiResponse<AIServiceProviderResponseDTO> updateAIServiceProvider(String aiServiceProviderId, String name, String apiVersion, String description, Boolean multipleModelProviderSupport, String configurations, File apiDefinition, String modelProviders) throws ApiException
      Updates the details of a specific AI Service Provider by its ID.
      Parameters:
      aiServiceProviderId - The unique identifier of the AI service provider.
      name - The new name of the AI service provider.
      apiVersion - The API version of the AI service provider.
      description - A brief description of the AI service provider.
      multipleModelProviderSupport - Whether the provider supports multiple model providers.
      configurations - Configuration details for the AI service provider.
      apiDefinition - The API definition file for the AI service provider.
      modelProviders - The list of model providers for the AI service provider.
      Returns:
      ApiResponse containing AIServiceProviderResponseDTO with the updated details of the AI service provider.
      Throws:
      ApiException - if there is an error during the API call.
    • deleteAIServiceProvider

      public ApiResponse<Void> deleteAIServiceProvider(String aiServiceProviderId) throws ApiException
      Deletes a specific AI Service Provider by its ID.
      Parameters:
      aiServiceProviderId - The unique identifier of the AI service provider to be deleted.
      Returns:
      ApiResponse containing void, indicating successful deletion of the AI service provider.
      Throws:
      ApiException - if there is an error during the API call.
    • putRoleAliases

      public ApiResponse<RoleAliasListDTO> putRoleAliases(RoleAliasListDTO roleAliasListDTO) throws ApiException
      This method is used to put an system scopes mapping.
      Parameters:
      roleAliasListDTO - Role Alias DTO to be updated
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while adding the new API category.
    • getRoleAliases

      public ApiResponse<RoleAliasListDTO> getRoleAliases() throws ApiException
      This method is used to get role aliases.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while adding the new API category.
    • addKeyManager

      public ApiResponse<KeyManagerDTO> addKeyManager(KeyManagerDTO keyManagerDTO) throws ApiException
      Throws:
      ApiException
    • getKeyManagers

      public KeyManagerListDTO getKeyManagers() throws ApiException
      Throws:
      ApiException
    • getKeyManager

      public ApiResponse<KeyManagerDTO> getKeyManager(String uuid) throws ApiException
      Throws:
      ApiException
    • updateKeyManager

      public ApiResponse<KeyManagerDTO> updateKeyManager(String uuid, KeyManagerDTO keyManagerDTO) throws ApiException
      Throws:
      ApiException
    • deleteKeyManager

      public ApiResponse<Void> deleteKeyManager(String uuid) throws ApiException
      Throws:
      ApiException
    • getSettings

      public SettingsDTO getSettings() throws ApiException
      Throws:
      ApiException
    • addApplicationThrottlingPolicy

      public ApiResponse<ApplicationThrottlePolicyDTO> addApplicationThrottlingPolicy(ApplicationThrottlePolicyDTO applicationThrottlePolicyDTO) throws ApiException
      This method is used to create an application throttling policy.
      Parameters:
      applicationThrottlePolicyDTO - Application throttling policy DTO to be added.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - if an error occurs while creating the application throttling policy.
    • getApplicationThrottlingPolicy

      public ApiResponse<ApplicationThrottlePolicyDTO> getApplicationThrottlingPolicy(String policyId) throws ApiException
      This method is used to retrieve an application throttling policy.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - if an error occurs while retrieving the application throttling policy.
    • updateApplicationThrottlingPolicy

      public ApiResponse<ApplicationThrottlePolicyDTO> updateApplicationThrottlingPolicy(String policyId, ApplicationThrottlePolicyDTO applicationThrottlePolicyDTO) throws ApiException
      This method is used to update an application throttling policy.
      Parameters:
      policyId - Policy Id of the application throttling policy to be updated.
      applicationThrottlePolicyDTO - Application throttling policy DTO which contains the update content.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - if an error occurs while updating the application throttling policy.
    • deleteApplicationThrottlingPolicy

      public ApiResponse<Void> deleteApplicationThrottlingPolicy(String policyId) throws ApiException
      This method is used to delete an application throttling policy.
      Parameters:
      policyId - Policy Id of the application throttling policy to be deleted.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - if an error occurs while deleting the application throttling policy.
    • addSubscriptionThrottlingPolicy

      public ApiResponse<SubscriptionThrottlePolicyDTO> addSubscriptionThrottlingPolicy(SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO) throws ApiException
      This method is used to create a subscription throttling policy.
      Parameters:
      subscriptionThrottlePolicyDTO - Subscription throttling policy DTO to be added.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while creating the new subscription throttling policy.
    • getSubscriptionThrottlingPolicy

      public ApiResponse<SubscriptionThrottlePolicyDTO> getSubscriptionThrottlingPolicy(String policyId) throws ApiException
      This method is used to retrieve a subscription throttling policy.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while retrieving the subscription throttling policy.
    • updateSubscriptionThrottlingPolicy

      public ApiResponse<SubscriptionThrottlePolicyDTO> updateSubscriptionThrottlingPolicy(String policyId, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO) throws ApiException
      This method is used to update a subscription throttling policy.
      Parameters:
      policyId - Policy Id of the subscription throttling policy to be updated.
      subscriptionThrottlePolicyDTO - Subscription throttling policy DTO which contains the updated content.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while updating the subscription throttling policy.
    • deleteSubscriptionThrottlingPolicy

      public ApiResponse<Void> deleteSubscriptionThrottlingPolicy(String policyId) throws ApiException
      This method is used to delete a subscription throttling policy.
      Parameters:
      policyId - Subscription throttling policy Id.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while deleting the subscription throttling policy.
    • addCustomThrottlingPolicy

      public ApiResponse<CustomRuleDTO> addCustomThrottlingPolicy(CustomRuleDTO customRuleDTO) throws ApiException
      This method is used to create an custom throttling policy.
      Parameters:
      customRuleDTO - Custom throttling policy DTO to be added.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while creating the custom throttling policy.
    • getCustomThrottlingPolicy

      public ApiResponse<CustomRuleDTO> getCustomThrottlingPolicy(String policyId) throws ApiException
      This method is used to retrieve a custom throttling policy.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while retrieving the custom throttling policy.
    • updateCustomThrottlingPolicy

      public ApiResponse<CustomRuleDTO> updateCustomThrottlingPolicy(String policyId, CustomRuleDTO customRuleDTO) throws ApiException
      This method is used to update a custom throttling policy.
      Parameters:
      policyId - Policy Id of the custom throttling policy to be updated.
      customRuleDTO - Custom throttling policy DTO which contains the updated content.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while updating the custom throttling policy.
    • deleteCustomThrottlingPolicy

      public ApiResponse<Void> deleteCustomThrottlingPolicy(String policyId) throws ApiException
      This method is used to delete a custom throttling policy.
      Parameters:
      policyId - Policy Id of the custom throttling policy to be deleted.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while deleting the custom throttling policy.
    • addDenyThrottlingPolicy

      public ApiResponse<BlockingConditionDTO> addDenyThrottlingPolicy(BlockingConditionDTO denyPolicyDTO) throws ApiException
      Creates an deny throttling policy.
      Parameters:
      denyPolicyDTO - deny throttling policy DTO to be added.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while creating the deny throttling policy.
    • updateDenyThrottlingPolicy

      public ApiResponse<BlockingConditionDTO> updateDenyThrottlingPolicy(String conditionId, String conditionType, BlockingConditionStatusDTO blockingConditionStatusDTO) throws ApiException
      Updates an deny throttling policy.
      Parameters:
      conditionId - policy id of the deny throttling policy to be updated.
      conditionType - condition type of the deny throttling policy to be.
      blockingConditionStatusDTO - deny throttling policy status DTO to be updated.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while creating the deny throttling policy.
    • getDenyThrottlingPolicy

      public ApiResponse<BlockingConditionDTO> getDenyThrottlingPolicy(String policyId) throws ApiException
      Retrieves a deny throttling policy.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while retrieving the deny throttling policy.
    • getBlockingConditionsByConditionTypeAndValue

      public BlockingConditionListDTO getBlockingConditionsByConditionTypeAndValue(String query) throws ApiException
      This method is used to retrieve blocking conditions by condition type and condition value.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while retrieving the blocking conditions.
    • deleteDenyThrottlingPolicy

      public ApiResponse<Void> deleteDenyThrottlingPolicy(String policyId) throws ApiException
      Deletes a deny throttling policy.
      Parameters:
      policyId - policy id of the deny throttling policy to be deleted.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while deleting the deny throttling policy.
    • addAdvancedThrottlingPolicy

      public ApiResponse<AdvancedThrottlePolicyDTO> addAdvancedThrottlingPolicy(AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO) throws ApiException
      This method is used to create an advanced throttling policy.
      Parameters:
      advancedThrottlePolicyDTO - Advanced throttling policy DTO to be added.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while creating the new advanced policy.
    • getAdvancedThrottlingPolicy

      public ApiResponse<AdvancedThrottlePolicyDTO> getAdvancedThrottlingPolicy(String policyId) throws ApiException
      This method is used to retrieve an advanced throttling policy.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while retrieving the advanced throttling policy.
    • updateAdvancedThrottlingPolicy

      public ApiResponse<AdvancedThrottlePolicyDTO> updateAdvancedThrottlingPolicy(String policyId, AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO) throws ApiException
      This method is used to update an advanced throttling policy.
      Parameters:
      policyId - Policy Id of the advanced throttling policy to be updated.
      advancedThrottlePolicyDTO - Advanced throttling policy DTO which contains the updated content.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while updating the advanced throttling policy.
    • deleteAdvancedThrottlingPolicy

      public ApiResponse<Void> deleteAdvancedThrottlingPolicy(String policyId) throws ApiException
      This method is used to delete an advanced throttling policy.
      Parameters:
      policyId - Policy Id of the advanced throttling policy to be deleted.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while deleting the advanced throttling policy.
    • addLabel

      public ApiResponse<LabelDTO> addLabel(LabelDTO labelDTO) throws ApiException
      This method is used to add a label.
      Parameters:
      labelDTO - Label DTO to be added.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while adding the new label.
    • getLabels

      public ApiResponse<LabelListDTO> getLabels() throws ApiException
      This method is used to retrieve all labels.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while retrieving all labels.
    • updateLabel

      public ApiResponse<LabelDTO> updateLabel(String labelId, LabelDTO labelDTO) throws ApiException
      This method is used to update a label.
      Parameters:
      labelId - Label Id of the label to be updated.
      labelDTO - Label DTO which contains the updated content.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while updating the label.
    • deleteLabel

      public ApiResponse<Void> deleteLabel(String labelId) throws ApiException
      This method is used to delete a label.
      Parameters:
      labelId - Label Id of the label to be updated.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while deleting the label.
    • addEnvironment

      public ApiResponse<EnvironmentDTO> addEnvironment(EnvironmentDTO environmentDTO) throws ApiException
      This method is used to add an environment.
      Parameters:
      environmentDTO - Environment DTO to be added.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while adding the new environment.
    • getEnvironments

      public ApiResponse<EnvironmentListDTO> getEnvironments() throws ApiException
      This method is used to retrieve all environments.
      Returns:
      API response returned by the API call.
      Throws:
      ApiException - Throws if an error occurred while retrieving all environments of tenant.
    • updateEnvironment

      public ApiResponse<EnvironmentDTO> updateEnvironment(String environmentId, EnvironmentDTO environmentDTO) throws ApiException
      This method is used to update an environment.
      Parameters:
      environmentId - Environment Id of the label to be updated.
      environmentDTO - Environment DTO which contains the updated content.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while updating the environment.
    • deleteEnvironment

      public ApiResponse<Void> deleteEnvironment(String environmentId) throws ApiException
      This method is used to delete an environment.
      Parameters:
      environmentId - Environment Id of the label to be deleted.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while deleting the environment.
    • getApplications

      public ApiResponse<ApplicationListDTO> getApplications(String user, Integer limit, Integer offset, String appTenantDomain, String name) throws ApiException
      This method is used to retrieve applications.
      Parameters:
      user - Username of the application creator.
      limit - Maximum number of applications to return.
      offset - Starting point within the complete list of applications qualified.
      appTenantDomain - Tenant domain of the applications to get.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while retrieving applications.
    • changeApplicationOwner

      public ApiResponse<Void> changeApplicationOwner(String newOwner, String applicationId) throws ApiException
      This method is used to change the owner of an application.
      Parameters:
      newOwner - New owner of the application.
      applicationId - Application ID of the application.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while changing the owner of an application.
    • changeApiProvider

      public ApiResponse<Void> changeApiProvider(String newProvider, String apiId) throws ApiException
      Throws:
      ApiException
    • retrieveScopesForParticularUser

      public ScopeSettingsDTO retrieveScopesForParticularUser(String scopeName, String username) throws ApiException
      This method is used to retrieve scopes for a particular user.
      Parameters:
      scopeName - Scope name.
      username - Username of the user.
      Returns:
      ScopeSettingsDTO returned by API call.
      Throws:
      ApiException - if an error occurs while retrieving the scopes of a particular user.
    • addRoleAliasMappingForSystemScopeRoles

      public RoleAliasListDTO addRoleAliasMappingForSystemScopeRoles(int count, String role, String[] aliases) throws ApiException
      This method is used to add a new role alias mapping for system scope roles.
      Parameters:
      count - The number of role aliases.
      role - Name of the role.
      aliases - List of aliases.
      Returns:
      RoleAliasListDTO returned by API call.
      Throws:
      ApiException - if an error occurs while adding role aliases mappings for system scope roles.
    • getWorkflowByExternalWorkflowReference

      public HttpResponse getWorkflowByExternalWorkflowReference(String externalWorkflowRef) throws ApiException
      Throws:
      ApiException
    • getWorkflows

      public HttpResponse getWorkflows(String workflowType) throws ApiException
      Throws:
      ApiException
    • updateWorkflowStatus

      public HttpResponse updateWorkflowStatus(String workflowReferenceId) throws ApiException
      Throws:
      ApiException
    • rejectWorkflowStatus

      public HttpResponse rejectWorkflowStatus(String workflowReferenceId) throws ApiException
      This method is used to reject a workflow
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while rejecting a workflow
    • getTenantConfig

      public String getTenantConfig() throws ApiException
      This method is used to retrieve tenant Config.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while retrieving tenant Config.
    • updateTenantConfig

      public Object updateTenantConfig(Object tenantConf) throws ApiException
      This method is used to update tenant config.
      Parameters:
      tenantConf - Tenant Configuration.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs updating the tenant conf.
    • getTenantConfigSchema

      public Object getTenantConfigSchema() throws ApiException
      This method is used to retrieve tenant Config Schema.
      Returns:
      API response returned by API call.
      Throws:
      ApiException - if an error occurs while retrieving tenant Config schema.
    • getWorkflowsByWorkflowType

      public WorkflowListDTO getWorkflowsByWorkflowType(String workflowType) throws ApiException
      Throws:
      ApiException
    • addOrganization

      public ApiResponse<OrganizationDTO> addOrganization(OrganizationDTO organizationDto) throws ApiException
      This method is used to add an Organization.
      Parameters:
      organizationDto - organization
      Returns:
      created organization
      Throws:
      ApiException - Throws if an error occurred while adding the new organization.
    • getOrganizations

      public OrganizationListDTO getOrganizations() throws ApiException
      This method is used to add get Organization.
      Parameters:
      organizationDto - organization
      Returns:
      created organization
      Throws:
      ApiException - Throws if an error occurred while adding the new organization.
    • deleteOrganization

      public void deleteOrganization(String organizationId) throws ApiException
      This method is used to delete organizatoin
      Parameters:
      organizationId - id of the organization to delete
      Throws:
      ApiException