Introduction
When creating applications, you may need to associate various APIs with that application. It is convenient if APIs are stored in a central location, so that you can associate the APIs on demand. Therefore, WSO2 App Factory is shipped along with WSO2 API Manager, where you can store, maintain and publish APIs.
You can configure API Manager using the <ApiManager>
element in <AF_HOME>/repository/conf/appfactory/appfactory.xml
file.
Sample Configuration
Following sample code shows how to add a new API Manager to App Factory:
<ApiManager> <DefaultTier>Unlimited</DefaultTier> <Server> <Url>http://apimanager.appfactorypreview.wso2.com</Url> </Server> <Store> <Url>http://apimanager.appfactorypreview.wso2.com/store</Url> </Store> <Service> <Name>APIManagerIntegrationService</Name> <Namespace>http://integration.apiManager.appfactory.carbon.wso2.org</Namespace> </Service> <Keys> <Property name="Sandbox">Development</Property> <Property name="Sandbox">Testing</Property> <Property name="Sandbox">Staging</Property> <Property name="Prod">Production</Property> </Keys> </ApiManager>
The elements of the sample configuration are explained below. You can use this information to edit the file according to your requirements.
XML Elements of the Sample Code
Property Name | Description | Type | Default Value | Fixed Values | Mandatory/Optional | |
---|---|---|---|---|---|---|
<DefaultTier> | A tier defines the maximum number of requests per minute. The tiers are configured in API Manager as well. The default tier can be one of the defined tiers in API Manager. Generally, the tier value for the App Factory side should be greater than the tier value in the respective API. | |||||
<Server> | APIManager Endpoint service URL. | |||||
<Store> | Created APIs are hosted in this server. | |||||
<Service> | ||||||
<Name> | ||||||
<Namespace> | Target APIManager Integration Service URL. | |||||
<Keys> | Add different life cycle stages. |