SlideShare a Scribd company logo
lean . enterprise . middleware
      Apply API Governance
     to RESTful Service APIs
using WSO2 Governance Registry
     and WSO2 API Manager
                          Chris Haddad
       Technology evangelism, strategy, and roadmaps
            Follow me @cobiacomm on Twitter
             Read more about our API Story at
              blog.cobia.net/cobiacomm
       http://wso2.com/products/api-manager
             © WSO2 2011. Not for redistribution. Commercial in Confidence.
WSO2 Carbon Enterprise Middleware Platform




                                             *
Business APIs




  “APIs provide a way to make resources
  available for internal and external partners
     to access information and services.”
APIs All the Way…
API Architecture


An API is a business capability delivered over the Internet to
 internal or external consumers
  • Network accessible function
  • Available using standard web protocols
  • With well-defined interfaces
  • Designed for access by third-parties

A Managed API is:
  • Actively advertised and subscribe-able
  • Exhibits high Quality of Service (QoS)
  • Available with Service Level Agreements (SLAs)
  • Secured, authenticated, authorized and protected
  • Monitored and monetized with analytics
Resources
• Addressable Resources:
  • Every “object” on your network should have a unique ID.
  • An important aspect is that each “object” or resource has its
    own specific URI where it can be addressed
• A Uniform, Constrained Interface.
  • When applying REST over HTTP, stick to the methods
    provided by the protocol
     • GET, POST, PUT, and DELETE.
• These should be used properly
  • GET should have no side effects or change on state
  • PUT should update the resource “in-place”
• The content-type of the resource should be useful and
  meaningful
REST is full of subtleties
• Method Safety
  • GET, HEAD, OPTIONS, TRACE will not modify
    anything
• Idempotency
  • PUT, DELETE, GET, HEAD can be repeated and
    the side-effects remain the same
• Caching
  • Correct use of Last-Modified and ETag headers
• Content-negotiation
The benefits of a well-designed REST app
• Bookmarkability
  • Each URI really points to a unique entity
  • Every entity can be referenced
• Multiple representations are powerful
  • Allowing one view of a resource for users and one
    for systems makes application development simpler
    and more logical
• Having well defined links
  • Does improve the semantic richness of an
    application
  • By comparison WSDL is very flat and doesn’t show
    the links between operations and services
Hypertext as the Engine of Application State


               Resources are identified by URIs
                                ↓
   Clients communicate with resources via requests using a
                   standard set of methods
                                ↓
   Requests and responses contain resource representations
             in formats identified by media types
                                ↓
     Responses contain URIs that link to further resources
Heavy weight Governance
The REST Way
How to be successful?
Business Design of the APIs

• Know the consumer
  • Who will use the APIs (both developers and final end-user)?
  • What type of applications will use the APIs?
  • What business assets will be delivered?
• Maintain Operational Control
  • What Quality of Service is expected?
  • Who can access the assets?
• Remember Usability and Monetization
  • How will the API expose business assets?
  • How will you demonstrate business value via direct revenue,
    chargeback, or showback?
API Challenges
Often difficult to offer your business capabilities as an API

• Potential consumers do not trust API stability, reliability,
  availability, or performance
• Providers have scalability concerns and lack an ability to
  manage consumption
• Security risks prevent publishing and offering open access
• Difficult to manage requirements from multiple consumers and
  coordinate release schedule
• Inability to configure API per consumer
• Business return requires API metering usage rates, and billing
Use of Registries in RestFul Architecture


•   Registry/Repository Aspects:
    •   Structured Organization of Data
    •   Dependencies – Dependency Analysis
    •   Versioning of Assets (WADL/WSDL, Schema, Policies)
    •   Extensible meta-model (especially your custom configurations)
    •   Custom Properties/Meta-information

•   Integration/Governance Aspects:
    •   Impact, Notification, and Change Management
    •   Broader Lifecycle Integration
    •   API-access to resources
    •   Endpoint discovery
Building an Approval Model: SCXML


•   State Chart XML: State Machine Notation for Control
    Abstraction
•   An OASIS Standard
•   Embedded Apache Commons SCXML library
•   GUI/Tooling
    •    IBM Rational Software Architect
    •    SCXMLgui
    •    WSO2 Carbon Studio – Future
API Governance Roadmap
• Design Time Governance
• Run-time Operational Governance
API Design Time Governance Roadmap
REST Design Contract Review

•   Stateless
•   Resource-oriented URL Convention
•   Xlinks
•   Security
API Design Time Governance Roadmap
Consumer / Subscriber Relationships

• API Manager
   • Promotes available APIs
   • Tracks subscriptions
API Design Time Governance Roadmap
API Versioning

• REST URL convention
• API Payload versioning
• Associating API to Service
Operational Governance




                         21
Operational Governance




                         22
Operational Governance




                         23
Operational Governance




                         24
Operational Governance




                         25
Operational Governance




                         26
Operational Governance




                         27
Operational Governance




                         28
Operational Governance




                         29
Operational Governance




                         30
Follow us:
                            http://twitter.com/#!/wso2

                                                         Follow us:
Contact us:
                                                         http://twitter.com/#!/wso2
http://wso2.com/contact/
lean . enterprise . middleware

More Related Content

PPTX
API Branding Strategy
PDF
API Management Building Blocks and Business value
PDF
Understanding the WSO2 Platform and Technology
PDF
Building Sustainable Ecosystems: The Economics of Collaboration
PPTX
Why WSO2 for Digital Transformation
PDF
Message based microservices architectures driven with docker
PDF
Building a SaaS using WSO2 Stratos
PDF
[WSO2Con EU 2017] How API Management at Suva is Helping in Reducing Costs to ...
API Branding Strategy
API Management Building Blocks and Business value
Understanding the WSO2 Platform and Technology
Building Sustainable Ecosystems: The Economics of Collaboration
Why WSO2 for Digital Transformation
Message based microservices architectures driven with docker
Building a SaaS using WSO2 Stratos
[WSO2Con EU 2017] How API Management at Suva is Helping in Reducing Costs to ...

What's hot (20)

PDF
WSO2 & AAA Ohio Automobile Club
PDF
API strategy with IBM API connect
PDF
Partner Webinar: Why Is Open Source the Smartest Choice for Hybrid Integration?
PDF
Solving born mobile generation challenges with WSO2 Enterprise Mobile Platform
PDF
Architecting the Digital Enterprise
PDF
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
PDF
Open Banking - Moving Banks Beyond the Norm
PDF
Governance and Security Solution Patterns
PDF
WSO2 - Forrester Guest Webinar: API Management is not Enough: You Need an API...
PDF
How to Effectively Build Web APIs for Microservices
PDF
Role of API Management in an API led Digital Economy
PDF
WSO2 Cloud Platform: Vision and Roadmap
PPTX
Open api in enterprise
PDF
Which APIs? which business models - A real-world guide for African banks.
PDF
[WSO2Con EU 2017] Cloud-Native API Management
PPTX
Role of integration in Digital Transformation
PPTX
API Management Demystified
PPTX
Confronting API Security in the Brave New Open Banking Era
PPTX
Building Business Platforms Using an API Driven Marketplace
PDF
Best Practices for API Management
WSO2 & AAA Ohio Automobile Club
API strategy with IBM API connect
Partner Webinar: Why Is Open Source the Smartest Choice for Hybrid Integration?
Solving born mobile generation challenges with WSO2 Enterprise Mobile Platform
Architecting the Digital Enterprise
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
Open Banking - Moving Banks Beyond the Norm
Governance and Security Solution Patterns
WSO2 - Forrester Guest Webinar: API Management is not Enough: You Need an API...
How to Effectively Build Web APIs for Microservices
Role of API Management in an API led Digital Economy
WSO2 Cloud Platform: Vision and Roadmap
Open api in enterprise
Which APIs? which business models - A real-world guide for African banks.
[WSO2Con EU 2017] Cloud-Native API Management
Role of integration in Digital Transformation
API Management Demystified
Confronting API Security in the Brave New Open Banking Era
Building Business Platforms Using an API Driven Marketplace
Best Practices for API Management
Ad

Similar to Apply API Governance to RESTful Service APIs using WSO2 Governance Registry and WSO2 API Manager (20)

PDF
Role of Rest vs. Web Services and EI
PDF
REST API Recommendations
PDF
Designing Usable APIs featuring Forrester Research, Inc.
PDF
MuleSoft Surat Meetup#39 - Pragmatic API Led Connectivity
PDF
REST & API Management with the WSO2 ESB
PDF
Rest api webinar(3)
PDF
Be My API How to Implement an API Strategy Everyone will Love
PPT
Six Steps To Build A Successful API
PPT
Six Steps to Build Successful APIs
PDF
Modern REST API design principles and rules.pdf
PDF
APIs and Beyond
PDF
GlueCon 2018: Are REST APIs Still Relevant Today?
PPTX
Cloud Side: REST APIs - Best practices
PDF
Getting Started with API Management
PDF
Api design best practice
PDF
PDF
What is REST?
PDF
Practical guide to building public APIs
PDF
What are restful web services?
PDF
Exploring REST Purity and Pragmatism
Role of Rest vs. Web Services and EI
REST API Recommendations
Designing Usable APIs featuring Forrester Research, Inc.
MuleSoft Surat Meetup#39 - Pragmatic API Led Connectivity
REST & API Management with the WSO2 ESB
Rest api webinar(3)
Be My API How to Implement an API Strategy Everyone will Love
Six Steps To Build A Successful API
Six Steps to Build Successful APIs
Modern REST API design principles and rules.pdf
APIs and Beyond
GlueCon 2018: Are REST APIs Still Relevant Today?
Cloud Side: REST APIs - Best practices
Getting Started with API Management
Api design best practice
What is REST?
Practical guide to building public APIs
What are restful web services?
Exploring REST Purity and Pragmatism
Ad

More from WSO2 (20)

PDF
Demystifying CMS-0057-F - Compliance Made Seamless with WSO2
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
PDF
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
PDF
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
PDF
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
PDF
Platformless Modernization with Choreo.pdf
PDF
Application Modernization with Choreo for the BFSI Sector
PDF
Choreo - The AI-Native Internal Developer Platform as a Service: Overview
PDF
[Roundtable] Choreo - The AI-Native Internal Developer Platform as a Service
PPTX
WSO2Con 2025 - Building AI Applications in the Enterprise (Part 1)
PPTX
WSO2Con 2025 - Building Secure Business Customer and Partner Experience (B2B)...
PPTX
WSO2Con 2025 - Building Secure Customer Experience Apps
PPTX
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
PPTX
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
PPTX
WSO2Con 2025 - Unified Management of Ingress and Egress Across Multiple API G...
PPTX
WSO2Con 2025 - How an Internal Developer Platform Lets Developers Focus on Code
PPTX
WSO2Con 2025 - Architecting Cloud-Native Applications
PDF
Mastering Intelligent Digital Experiences with Platformless Modernization
PDF
Accelerate Enterprise Software Engineering with Platformless
PDF
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
Demystifying CMS-0057-F - Compliance Made Seamless with WSO2
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
Platformless Modernization with Choreo.pdf
Application Modernization with Choreo for the BFSI Sector
Choreo - The AI-Native Internal Developer Platform as a Service: Overview
[Roundtable] Choreo - The AI-Native Internal Developer Platform as a Service
WSO2Con 2025 - Building AI Applications in the Enterprise (Part 1)
WSO2Con 2025 - Building Secure Business Customer and Partner Experience (B2B)...
WSO2Con 2025 - Building Secure Customer Experience Apps
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
WSO2Con 2025 - Unified Management of Ingress and Egress Across Multiple API G...
WSO2Con 2025 - How an Internal Developer Platform Lets Developers Focus on Code
WSO2Con 2025 - Architecting Cloud-Native Applications
Mastering Intelligent Digital Experiences with Platformless Modernization
Accelerate Enterprise Software Engineering with Platformless
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
A Presentation on Artificial Intelligence
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
KodekX | Application Modernization Development
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Modernizing your data center with Dell and AMD
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Big Data Technologies - Introduction.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine learning based COVID-19 study performance prediction
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Monthly Chronicles - July 2025
A Presentation on Artificial Intelligence
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KodekX | Application Modernization Development
Encapsulation_ Review paper, used for researhc scholars
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Modernizing your data center with Dell and AMD
“AI and Expert System Decision Support & Business Intelligence Systems”
Big Data Technologies - Introduction.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Diabetes mellitus diagnosis method based random forest with bat algorithm
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation theory and applications.pdf

Apply API Governance to RESTful Service APIs using WSO2 Governance Registry and WSO2 API Manager

  • 1. lean . enterprise . middleware Apply API Governance to RESTful Service APIs using WSO2 Governance Registry and WSO2 API Manager Chris Haddad Technology evangelism, strategy, and roadmaps Follow me @cobiacomm on Twitter Read more about our API Story at blog.cobia.net/cobiacomm http://wso2.com/products/api-manager © WSO2 2011. Not for redistribution. Commercial in Confidence.
  • 2. WSO2 Carbon Enterprise Middleware Platform *
  • 3. Business APIs “APIs provide a way to make resources available for internal and external partners to access information and services.”
  • 4. APIs All the Way…
  • 5. API Architecture An API is a business capability delivered over the Internet to internal or external consumers • Network accessible function • Available using standard web protocols • With well-defined interfaces • Designed for access by third-parties A Managed API is: • Actively advertised and subscribe-able • Exhibits high Quality of Service (QoS) • Available with Service Level Agreements (SLAs) • Secured, authenticated, authorized and protected • Monitored and monetized with analytics
  • 6. Resources • Addressable Resources: • Every “object” on your network should have a unique ID. • An important aspect is that each “object” or resource has its own specific URI where it can be addressed • A Uniform, Constrained Interface. • When applying REST over HTTP, stick to the methods provided by the protocol • GET, POST, PUT, and DELETE. • These should be used properly • GET should have no side effects or change on state • PUT should update the resource “in-place” • The content-type of the resource should be useful and meaningful
  • 7. REST is full of subtleties • Method Safety • GET, HEAD, OPTIONS, TRACE will not modify anything • Idempotency • PUT, DELETE, GET, HEAD can be repeated and the side-effects remain the same • Caching • Correct use of Last-Modified and ETag headers • Content-negotiation
  • 8. The benefits of a well-designed REST app • Bookmarkability • Each URI really points to a unique entity • Every entity can be referenced • Multiple representations are powerful • Allowing one view of a resource for users and one for systems makes application development simpler and more logical • Having well defined links • Does improve the semantic richness of an application • By comparison WSDL is very flat and doesn’t show the links between operations and services
  • 9. Hypertext as the Engine of Application State Resources are identified by URIs ↓ Clients communicate with resources via requests using a standard set of methods ↓ Requests and responses contain resource representations in formats identified by media types ↓ Responses contain URIs that link to further resources
  • 12. How to be successful?
  • 13. Business Design of the APIs • Know the consumer • Who will use the APIs (both developers and final end-user)? • What type of applications will use the APIs? • What business assets will be delivered? • Maintain Operational Control • What Quality of Service is expected? • Who can access the assets? • Remember Usability and Monetization • How will the API expose business assets? • How will you demonstrate business value via direct revenue, chargeback, or showback?
  • 14. API Challenges Often difficult to offer your business capabilities as an API • Potential consumers do not trust API stability, reliability, availability, or performance • Providers have scalability concerns and lack an ability to manage consumption • Security risks prevent publishing and offering open access • Difficult to manage requirements from multiple consumers and coordinate release schedule • Inability to configure API per consumer • Business return requires API metering usage rates, and billing
  • 15. Use of Registries in RestFul Architecture • Registry/Repository Aspects: • Structured Organization of Data • Dependencies – Dependency Analysis • Versioning of Assets (WADL/WSDL, Schema, Policies) • Extensible meta-model (especially your custom configurations) • Custom Properties/Meta-information • Integration/Governance Aspects: • Impact, Notification, and Change Management • Broader Lifecycle Integration • API-access to resources • Endpoint discovery
  • 16. Building an Approval Model: SCXML • State Chart XML: State Machine Notation for Control Abstraction • An OASIS Standard • Embedded Apache Commons SCXML library • GUI/Tooling • IBM Rational Software Architect • SCXMLgui • WSO2 Carbon Studio – Future
  • 17. API Governance Roadmap • Design Time Governance • Run-time Operational Governance
  • 18. API Design Time Governance Roadmap REST Design Contract Review • Stateless • Resource-oriented URL Convention • Xlinks • Security
  • 19. API Design Time Governance Roadmap Consumer / Subscriber Relationships • API Manager • Promotes available APIs • Tracks subscriptions
  • 20. API Design Time Governance Roadmap API Versioning • REST URL convention • API Payload versioning • Associating API to Service
  • 31. Follow us: http://twitter.com/#!/wso2 Follow us: Contact us: http://twitter.com/#!/wso2 http://wso2.com/contact/
  • 32. lean . enterprise . middleware