public class APIValidator extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
apiId |
protected String |
apiName |
protected String |
apiType |
protected String |
apiVersion |
protected String |
provider |
protected org.wso2.carbon.registry.core.session.UserRegistry |
registry |
protected Utils |
utils |
Constructor and Description |
---|
APIValidator(Utils utils) |
Modifier and Type | Method and Description |
---|---|
void |
validate(org.wso2.carbon.registry.core.session.UserRegistry registry,
org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact,
String preMigrationStep) |
void |
validateApiAvailability() |
void |
validateAPIDefinition() |
void |
validateApiDeployedGatewayType(org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact apiArtifact) |
void |
validateApiResourceLevelAuthScheme() |
void |
validateOpenAPIDefinition() |
protected Utils utils
protected org.wso2.carbon.registry.core.session.UserRegistry registry
protected String apiName
protected String apiVersion
protected String provider
protected String apiType
protected String apiId
public APIValidator(Utils utils)
public void validate(org.wso2.carbon.registry.core.session.UserRegistry registry, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact, String preMigrationStep) throws org.wso2.carbon.governance.api.exception.GovernanceException
registry
- UserRegistryartifact
- Artifact corresponding to the APIpreMigrationStep
- Pre-validation step to runorg.wso2.carbon.governance.api.exception.GovernanceException
- if an error occurs while accessing artifact attributespublic void validateAPIDefinition()
public void validateApiAvailability()
public void validateOpenAPIDefinition()
public void validateApiResourceLevelAuthScheme()
public void validateApiDeployedGatewayType(org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact apiArtifact)
Copyright © 2024 WSO2. All rights reserved.