Reputation: 399
i have one problem when i try to publish an API on the wso's store. I have this message when i try to change the state of the API and publish it.
Failed to invoke aspect: An exception occurred while executing handler chain. APIManager endpoint URL or credentials are not definedAPI Publish might fail
The lifecycle of the API is > Development > Testing > Production but i can't publish it on the store.
I'm using the version 5.0.1 of Governance Registry and i don't use the API Manager.
Anyone has had this error? Thanks for help in advance :)
Upvotes: 2
Views: 881
Reputation: 94
It seems that you are using WSO2 Greg 5.0.1 and its inbuilt publisher and store components. When you want to publish an API, you can not use Greg Store for that purpose since it is not an API store. By default, WSO2 Greg has the capability to publish to WSO2 APIManager by using following inbuilt executors described in here:
For Soap Services:
execution forEvent="Publish" class="org.wso2.carbon.governance.registry.extensions.executors.apistore.ServiceToAPIExecutor"
For Rest Services:
execution forEvent="Publish" class="org.wso2.carbon.governance.registry.extensions.executors.apistore.RestServiceToAPIExecutor"
If you have some external API Store, you have to write a custom executor for that and then you will be able to publish an API. Refer below links for further information on custom executors:
Upvotes: 1