-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.5.0][FEATURE] Implement Labels Feature #12746
base: master
Are you sure you want to change the base?
Conversation
442a3c8
to
d95ce01
Compare
...imgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIAdminImpl.java
Outdated
Show resolved
Hide resolved
@@ -4339,7 +4338,7 @@ public DocumentationContent getDocumentationContent(String apiId, String docId, | |||
@Override | |||
public String getAsyncAPIDefinitionForLabel(Identifier apiId, String labelName) throws APIManagementException { | |||
|
|||
List<Label> gatewayLabels; | |||
// List<Label> gatewayLabels; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this
...mgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java
Show resolved
Hide resolved
d95ce01
to
5fb80a9
Compare
@@ -95,6 +95,8 @@ public enum ExceptionCodes implements ErrorHandler { | |||
409, "Cannot update API: %s:%s, due to the resources to remove are used by one or more API Products"), | |||
API_CATEGORY_INVALID( | |||
900345, "The API category is invalid.", 400, " The API category is invalid for API: %s"), | |||
API_LABEL_INVALID( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we use a different code here as labels and categories are used for two different purposes?
return hostsWithSchemes; | ||
} | ||
// /** | ||
// * Get gateway host names with transport scheme mapping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this commented code?
return null; | ||
} | ||
|
||
public Response labelsLabelIdDelete(String labelId, MessageContext messageContext) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we add operationId to the swagger definition and make the generated method names more readable?
Description
This PR implements the backend functionality to introduce a Labels Feature. The key features and enhancements included in this implementation are:
Label Management:
Extensibility:
Resolves Label Feature api-manager#3503