APIM manage workflow with multiple roles APIM 3.0.0 per API based subscription workflow Logging internal HTTP requests Log APIM analytics events to a file Monetization and sample with WSO2 API Manager 2.6.0 Share application and subscription among a set of specific groups or roles WSO2 APIM Correlating analytics event with correlationID APIM analytics distinguish production and sandbox traffic APIM 2.x.x analytics internal and analytics tuneup Configure APIM(Next release) Key Manager User stores APIM(Next release) working with key manager DAS 3.x Parse system variables to Spark Context Revoke OAuth application In APIM 2.1.0 Next WSO2 APIM powered by WSO2 Ballerina Configure WSO2 APIM Analytics on Cluster environment Configure WSO2 DAS 3.1.0 for WSO2 APIM 2.0.0 Analytics WSO2 APIM publishing custom statistics WSO2 APIM Error codes Working with WSO2 message tracer Use DAS admin service to query using Spark SQL Configure WSO2 APIM Analytics using XML WSO2 APIM Generating and Retrieving Custom Statistics Understanding WSO2 APIM Statistics Model Publishing WSO2 APIM 1.10.x Runtime Statistics to DAS with RDBMS Publishing_APIM_1100_Runtime_Statistics_to_DAS Aggregate functions with WSO2 DAS REST API Create a cApp for WSO2 DAS Debugging WSO2 Products using OSGI console. Publishing APIM Runtime Statistics to DAS Deploy cApp on WSO2 DAS How to configure and start the Accumulo minicluster How to setup DNS server on Ubuntu and Ubuntu server How to use Java Reflection how to install apache web server on ubuntu and ubuntu server How to install Mail server on Ubuntu and Ubuntu server How to install squirrelmail webmail client on Ubuntu and Ubuntu Server Pass and return String value to JNI method Pass and return numeric value to JNI method Calling a C Function from the Java Programming Language using JNI AXIS 2 Sample web service Client with maven and eclipse How to setup AXIS 2 with Apache Tomcat AXIS 2 Sample web service with maven and eclipse Robot framework Sample with Selenium Robot framework Custom Library Sample Behaviour-Driven Development with JBehave and Eclipse Play Audio with Netbeans and linking with LibVLC Implement LibVLC based player with QT-part2 Simple Audio playing sample with LibVLC How to install LibVLC on Ubuntu Implement LibVLC based player with QT-part1
Monetization and sample with WSO2 API Manager 2.6.0
  1. Introduction

    Simple billing engine is a sample project to demonstrate the capabilities of the wso2 API-manager monetization. And also the capabilities of extending and customization of APIM and APIM analyzer features to support billing engine.

  2. Key Features

    Ability to demonstrate APIM analytics feature to support API monetization:

    • Integrate with a billing engine
    • Ability to extend subscription workflow to support billing
    • Data retrieval model for billing
    • Usage of analytics data for billing
    • Custom analytics rules to support billing
  3. Prerequisites
    • WSO2 API Manager 2.6.0
    • WSO2 API Manager Analytics 2.6.0
    • Billing Engine and Extensions from releases
    • Apache Tomcat 7/8
    • Mysql Database
  4. Configure APIM and APIM analytics for analytics
  5. Configure APIM
    1. Deploy custom workflow extension
      • Copy and paste subs-workflow-1.4.0.jar to APIM_HOME/repository/components/dropins
      • Edit /_system/governance/apimgt/applicationdata/workflow-extensions.xml and register custom workflow extension
        <SubscriptionCreation executor="org.wso2.sample.apimgt.workflow.SubscriptionBillingWorkflow"/>
        						
    2. Define billing engine configurations
      • Edit <AM_HOME>/repository/conf/api-manager.xml and the following config
        <APIManager>
         .......
        	<BillingEngine>
        		<BillingEngineUrl>http://localhost:8080/apim-billing-engine-1.4.0/</BillingEngineUrl>
        		<ApimStoreUrl>https://localhost:9443/store/</ApimStoreUrl>
        	</BillingEngine>
        </APIManager>
        						
  6. Configure APIM analytics
    • Deploy custom siddhi app use for billing data
    • Copy APIM_BILLING_INFO_SUMMARY.siddhi to <ANALYTICS_HOME>/wso2/worker/deployment/siddhi-files/
  7. Configure Billing Engine
    • Deploy Billing Engine
    • Deploy apim-billing-engine-1.4.0 to tomcat container
    • Configure <TOMCAT_HOME>/webapps/apim-billing-engine-1.4.0/WEB-INF/classes/datasource.properties as appropriate
      #datasource
      url=jdbc:mysql://localhost:3306/billing?autoReconnect=true&verifyServerCertificate=false&useSSL=false&requireSSL=false
      username=root
      password=pass
      driverClassName=com.mysql.jdbc.Driver
      dialect=org.hibernate.dialect.MySQL5InnoDBDialect
      
      #SP
      dasUrl=https://localhost:7444
      dasUserName=admin
      dasPassword=admin
      spTrustStore=/home/rukshan/apim/2.6.0/billingEngine/wso2am-analytics-2.6.0/resources/security/wso2carbon.jks
      spTrustStorePassword=wso2carbon
      
      #apim
      apimUserName=admin
      apimPassword=admin
      publisherUrl=https://localhost:9443/api/am/publisher/v0.14/apis
      tokenUrl=https://localhost:9443/oauth2/token
      dcrUrl=https://localhost:9443/client-registration/v0.14/register
      introspectUrl=https://localhost:9443/oauth2/introspect
      apimTrustStore=/home/rukshan/apim/2.6.0/billingEngine/wso2am-2.6.0/repository/resources/security/client-truststore.jks
      apimTrustStorePassword=wso2carbon
      
      #Billing engine
      adminUser=admin
      adminPass=admin
      adminRole=ROLE_ADMIN
      userRole=ROLE_USER
      				
  8. Issue Tracker

Add Comment

* Required information
1000
Powered by Commentics

Comments (0)

No comments yet. Be the first!