Skip to main content
Skip table of contents

API Management REST API Reference

Contents

Fiorano REST API

Fiorano provides REST APIs to help manage and monitor the Fiorano API Management product externally using user-defined clients performing pre-defined API calls. Fiorano REST APIs are documented using the Swagger interface. 

How to access?

To access the Swagger UI from a remote machine, make the following changes before starting the server from the Profile Management perspective.

Go to AMS Profile > Fiorano > APIManager > APIJetty > APIManagerJetty and replace "localhost" with the IP address of the system in the SwaggerBasePath parameter.


Figure 1: Profile configuration to access REST APIs using swagger from a remote machine

In case of HA servers, the configuration needs to be updated for the Backup AMS server as well.

To access the Swagger JSON file for REST APIs of the API Management Server, use the following URL format:

Swagger JSON file URL

http://<IP Address>:<1981>/api/ams/swagger.json

Before attempting to access the Swagger, ensure that the API Management Server is running.

Testing the REST APIs using Swagger UI

Fiorano's REST APIs can be tested directly through Swagger UI on the installed service provider:

All the requests and responses are in JSON format.

  1. To access the SWAGGER UI, make sure that the API Management server is running and visit the following URL to access the Swagger UI page:

    Swagger UI URL

    http://<IP Address>:1981/swaggerui

    While accessing from a different machine, provide the IP Address in the JSON URL present in the Explore text field of the Swagger UI.


    Figure 2: Swagger UI Explore text field to change the machine IP address

  2. Generate an API Key to execute any call on the Swagger UI:

    1. In the Swagger UI, go to the Security tab for the server whose calls need to be tested and select the /security/apikey row. The row expands and shows an execution panel.

      Image1. Try it out

      Figure 3: Swagger UI testing screen

    2. Click Try it out and provide username and password for the server.

      Provide API as context for the API Management Server.

      Generate API Json Input

      Figure 4: JSON Input to generate API Key

    3. Click Execute, the response will return the API key.

Similarly, all the REST calls can be tested using this pre-generated API Key and the parameters mentioned in the self-explanatory execution panels of each call.

REST API Calls

API Analytics

These APIs help in managing the analytics of the API server. Using these APIs, the analytics data can be fetched, data that may not be needed can be deleted, reports and notifications can be created/removed/fetched etc.


Figure 5: List of API Analytics APIs

API Policy

API Policy refers to the various actions that can be performed when an API call reaches the server. These APIs can manage actions that needs to be performed on receipt of a new backend API call being managed by the product.


Figure 6: List of API Policy APIs

API Projects

These APIs help in managing the API Projects. Using these APIs, projects can be imported/exported/deployed/undeployed and details regarding the project like deployment status, environment, policies used, jetty access URL etc. can be fetched.


Figure 7: List of API Projects APIs

API Products, Client Developers, and Client Subscriptions (Developer Application)

These APIs help in managing API Products, Developers and Subscriptions. Users can add/remove/change products, developers or subscriptions, and get information like developer's email ID, product details, developer details, subscription details, etc.  


Figure 8: List of API Product APIs

API Trace

These APIs help in controlling trace modules of the product. Using these APIs, tracing can be started/stopped and get configuration of the module for a particular project in an environment. 


Figure 9: List of API Trace APIs

Servers

These APIs help in managing the servers of the API Management product, using these APIs, servers can be restarted/stopped and details such as system details, memory details, patches, logs etc can be fetched.


Figure 10: List of Servers APIs

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.