[go: up one dir, main page]

0% found this document useful (0 votes)
20 views27 pages

4 - APIM - Development - Policy Studio - Lab - From Policy To API

The document outlines a lab presentation on integrating billing services into API Manager using Policy Studio. It details the steps to define a REST Business Service, expose it in API Manager, and test the service. The goal is to achieve management simplicity while leveraging both Policy Studio and API Manager functionalities.

Uploaded by

Lauro Ramazzini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views27 pages

4 - APIM - Development - Policy Studio - Lab - From Policy To API

The document outlines a lab presentation on integrating billing services into API Manager using Policy Studio. It details the steps to define a REST Business Service, expose it in API Manager, and test the service. The goal is to achieve management simplicity while leveraging both Policy Studio and API Manager functionalities.

Uploaded by

Lauro Ramazzini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

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

You might also like