diff --git a/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/APIAdmin.java b/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/APIAdmin.java index 8d06ba4e1ed2..1358f452c217 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/APIAdmin.java +++ b/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/APIAdmin.java @@ -20,10 +20,12 @@ import org.wso2.carbon.apimgt.api.dto.KeyManagerConfigurationDTO; import org.wso2.carbon.apimgt.api.dto.KeyManagerPermissionConfigurationDTO; import org.wso2.carbon.apimgt.api.model.APICategory; +import org.wso2.carbon.apimgt.api.model.ApiResult; import org.wso2.carbon.apimgt.api.model.Application; import org.wso2.carbon.apimgt.api.model.ApplicationInfo; import org.wso2.carbon.apimgt.api.model.Environment; import org.wso2.carbon.apimgt.api.model.LLMProvider; +import org.wso2.carbon.apimgt.api.model.Label; import org.wso2.carbon.apimgt.api.model.Monetization; import org.wso2.carbon.apimgt.api.model.MonetizationUsagePublishInfo; import org.wso2.carbon.apimgt.api.model.Workflow; @@ -266,6 +268,53 @@ void updateMonetizationUsagePublishInfo(MonetizationUsagePublishInfo monetizatio */ APICategory getAPICategoryByID(String apiCategoryId) throws APIManagementException; + /** + * Adds a new label for the tenant + * + * @param label label to add + * @param tenantDomain tenant domain + * @throws APIManagementException if failed add label + */ + Label addLabel(Label label, String tenantDomain) throws APIManagementException; + + /** + * Updates a label + * + * @param labelID label ID to update + * @param updateLabelBody label data to update + * @param tenantDomain tenant domain + * @throws APIManagementException if failed update label + */ + Label updateLabel(String labelID, Label updateLabelBody, String tenantDomain) throws APIManagementException; + + /** + * Delete a label + * + * @param labelID label ID to delete + * @param tenantDomain tenant domain + * @throws APIManagementException if failed delete label + */ + void deleteLabel(String labelID, String tenantDomain) throws APIManagementException; + + /** + * Returns all labels of the tenant + * + * @param tenantDomain tenant domain + * @return List