AMPLIFY API MANAGEMENT
Policy Studio – Lab
From policy to API
#axway
Welcome To Our Presentation
Policy Studio - Lab - From policy to API
Our Goals • Put theory into practice after “API Manager and Policy
Studio” module
• Expose a policy on API Manager using REST Business
Services
2
Welcome To Our Presentation
Policy Studio - Lab - From policy to API
Practice
Agenda Integrate Billing services in API Manager
Solution Part 1
Define REST Business Service
Solution Part 2
Expose Business Service
3
Practice
Integrate Billing services in
API Manager
4
Target
• We want to have same management simplicity we had with OMS using API
Manager
➢ Integrate Billing services in API Manager
• 2 versions of exercise:
• SOAP: Business Service already exist
• REST: Create Business Service.
➢ We will create a REST business service
5
Billing SOAP Service
Offering REST services to partners
Company boundaries
Shipping Shipping
Partner Mockup
SOAP Billing
Consumers Exposed by
API Manager
OMS
REST
API Management Developer
Infrastructure
6
Instructions
1. First, define Billing REST Business Service in Policy Studio
• Delete the existing execution path
• Add a Business Service
• Add a method
• Add a parameter
• Test the service
2. Then, expose Billing Business Service in API Manager
• Import Business Service from Topology
• Test the service
7
Expected result Business service in Policy Studio
• A Business service
for Billing in Policy
Studio
API Billing imported in API Manager
• Billing business
service imported
and manageable
from API Manager
8
Solution Part 1
Define REST Business
Service
9
Delete the existing execution path
• First delete existing path
• Go on Default Services, Paths
• Select /bill/status and delete it
10
Add a Business Service
• Go APIs, REST API
Repository
• Click Add
• Create an API
• Name: Billing
• Summary: Billing API
• Description : Billing API
• Click Next
11
Add a Business Service
• Expose on
• Listener: Default
Services
• Base Path: /bill
• Click Finish
12
Add a method
• On new Billing API, create a
new method by clicking on Add
• Name: get status
• Summary: get status
• Description: get status
• Click on Next
13
Add a parameter
• Keep GET method
• Using path: /status
• Add a parameter: order
14
Select the policy
• Select BillingRest policy
• Use the filter above to quickly find it
• Click Next
15
Monitoring
• This page is for monitoring
• Keep default and click Finish
16
Deploy configuration
• Deploy configuration at the top of Policy Studio or press “F6”
17
Test the service
• Test the service!
http://api-env:8080/bill/status?order=123123
18
Solution Part 2
Expose Business Service
19
Import Business Service from Topology
• Same operation can be done for
SOAP and REST
➢ Import Billing REST Service
from topology
• In API Manager, go to Backend API
> New API> Import API from
topology
• Use admin/changeme to connect
to configuration
20
Import Business Service from Topology
• Select all values on the screenshot
• Click Import
• A backend Service is created
21
Import Business Service from Topology
• Create a new Frontend from Backend
22
Import Business Service from Topology
• Set inbound security to Pass Through
• Save
23
Test the service
• Test the newly virtualized API
https://api-env.demo.axway.com:8065/bill/status?order=123123
24
Wrap-up
25
Wrap-up
• API Management solution allows to virtualize services
• From API Manager, with a simple management interface
• From Policy Studio for a lot of flexibility
• To benefit from advantages of both products, create Business services from
Policy Studio and import them in API Manager
26
Thank you!
27