...
In Fiorano API Framework, data flows in the following manner from:
- App to Target
- Proxy Request: Request passes from App to API Proxy.
- Target Request: Request passes from API Proxy to Target.
- Target to App
- Target Response: Response passes from Target to API Proxy.
- Proxy Response: Response passes from API Proxy to App.
Every resource that gets added for various purposes will have has the above structure and policies can be attached to any part (endpoints) of this the flow, as per requirement.
...
New resource can be added by clicking the Add button. Attributes that need to be added are as described below.
Figure 2: Dialog box to add new resource
Attribute | Description |
---|---|
Resource ID | Provide a unique name of your choice. |
Path | Context path to the resource. |
Method | Choose from the methods: Get, Put, Post and Delete.
|
Adding policy to a resource
To After selecting the resource, to add a policy to a Request/Response flow in a resource , after selecting the resource, click the required flow in the resource editor on the right side of the screen.
Tip |
---|
Refer Attaching Policy to a Resource section for a step by step instruction. |
Note |
---|
When you select the Proxy Request is selected, it shows "Proxy Request Scope Policies" at the bottom part of the screen. |
...
Click the Edit button and use the left arrow to add policies from the Available policies section. Click the Save button after adding the policy to apply the changes. In the following figure, the policy 'IP' has been moved from Available Policies section to Policies, thus adding the thereby enabling the addition of the policy to the resource.
Figure 5: Adding policy from the available policies
...
A policy can be attached to a resource while creating the policy itselfit is being created. This can be done by moving to the next screen in the Add New Policy dialog box by clicking Next and then choosing the Next button. Choose the resource and scope as required in the Add New Policy dialog box.
Figure 6: Option to attach a policy to a resource while creating the policy
Attribute | Description |
---|---|
Select Resource | Select the resource to which the policy needs to be added. It will have the default resource and as well as the ones that are already added by you.
|
Scope | Select the endpoint in the data flow where you the policy need to set the policybe configured.
|
Configuring Context Variable on App
Refer Refer to the Configuring Rule section to attach a rule to App the application by setting the Identifier Type and variable and also add .
Tip |
---|
Add more elements to configure multiple conditions. |
Figure 9: Configuring rule on App
...
The targets that are configured in the Targets section appear here.
Figure 10: Configuring Load Balancing