This documentation is for WSO2 App Factory 2.0.0. View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

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 has an instance of WSO2 API Manager integrated in it by default for you  to store, maintain and publish APIs. 

You do all the API Manager customizations 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="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 NameDescriptionTypeDefault ValueFixed ValuesMandatory/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.    
  • No labels