Products Module provides ways for developers to search for different API products (bundles) based on product details such as description and tag. The developer can check different APIs bundled as part of the product and add them to the application created. Click the API Products tab in the Home Page to navigate to this module.
Product Details
To view the Product details along with the projects under the product, click the Product name present in the API Products module.
Figure 1: Products Module
This section gives out the Product details which are comprised of:
- Product Name
- Product Id
- Subscription Status
APIs
Multiple APIs would have been added to a product in the API Management tool. In the Developer Portal, the APIs are available in the API Products page.
It includes the following details:
- Product name
- Description
- API Project Id
- Version number
- Environment
Environment indicates the Server Group in which the project is deployed, for example, Development, Production etc.
Figure 2: Products Details with the list of API Projects present under the product
Testing the App
The testing module allows the developer to test the API with different sample requests and parameters to understand different invocation options and availability.
Prerequisite
Before starting the testing, Cross-Origin Resource Sharing (CORS) needs to be enabled in API Manager profile.
- Stop the API Management Server.
- Open Profile Manager perspective in eStudio and launch the APIManager profile.
- Navigate to Fiorano > APIManager > APIProject > Controller > APIProjectController.
- Enable the following properties under the ComponentInstanceConfiguration section:
- EnableCors: To enable cors globally for all API projects.
- HandlePreFlightRequest: To handle preflight request globally for all API projects.
- Restart API Management and API Gateway Servers.
Figure 3: Configuring the API Management profile
Testing
To test the app, switch to the Developer Portal and click the Environment name present in the API Products section under the Product Details page (see the Figure 2 above).
Detailed documentation of the API with complete information about the parameters involved, sample requests and responses, and authentication mechanisms used can be viewed in the API Documentation section.
This section comprises of the same fields as present in the Overview section within Fiorano API Management.
Figure 4: API Documentation section with the GET method parameters and the option for testing
Provide the parameter values, for examples FromCurrency = USD and ToCurrency = INR, and click the Try it out button to test the App.
Figure 5: The Documentation section showing the response to testing