DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Revolutionizing Financial Monitoring: Building a Team Dashboard With OpenObserve
  • Unlocking the Benefits of a Private API in AWS API Gateway
  • APIs for Logistics Orchestration: Designing for Compliance, Exceptions, and Edge Cases
  • Building Data Pipelines With Jira API

Trending

  • Recurrent Workflows With Cloud Native Dapr Jobs
  • AI, ML, and Data Science: Shaping the Future of Automation
  • Rethinking Recruitment: A Journey Through Hiring Practices
  • Microsoft Azure Synapse Analytics: Scaling Hurdles and Limitations
  1. DZone
  2. Data Engineering
  3. Databases
  4. API Groups in Anypoint Platform

API Groups in Anypoint Platform

API Group is an Anypoint platform feature that enables us to bundle our APIs and resources into a single package. API groups can be versioned like APIs.

By 
Abhay Yadav user avatar
Abhay Yadav
·
Jul. 13, 21 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
13.9K Views

Join the DZone community and get the full member experience.

Join For Free

Introduction

API Group is an Anypoint platform feature that enables us to bundle our APIs and resources into a single package. We can customize the instances of that group with different SLAs and rate limit conditions based on the requirement and publish the API Group to Anypoint Exchange so that users can subscribe to the package. 

API groups can be versioned like APIs, published to exchange, and can include more than one instance of a single API.

To understand it better let’s consider an online food delivery service like UberEats or Zomato, the service can have many different APIs like

  • User API
  • Restaurant location API
  • Payments API
  • Transaction API
  • Rewards API and many more

These can be grouped into different packages like user-centric group which can have User and Rewards API, and Financial group which will include Payments and Transactions API.

Before we delve into and see how to create and manage an API group, there are a few prerequisites like

  • At least two APIs are deployed in the API manager.
  • Permissions to create API Groups 

Creating API Groups

Navigate to API Manager > API Groups > click Create API groupCreate API Group screen

Provide the group name and version. Add API to the group created.


Add an API to the group you've created

SLA (Service Level Agreement) can be applied to the API instances inside a group to limit the number of requests an application/user can make to the API.

To add an SLA tier to the API group, navigate to the API group instance > SLA Tiers > click Add SLA Tier

Add SLA Tier

On the next screen, define the limit for SLA:

Define the limit for the SLA

There are two SLA Tier types defined: 

  1. Default SLA: The default limit is applicable to all API instances, existing or new. This means that the same SLA limit is applicable to every API instance in that API Group.

  2. Individual SLA: Individual SLA is defined for each API within an API group. If defined, Individual SLA overrides the default SLA 

Once the SLA tier is created, we need to apply SLA based policy at the API level. For that, head over to the API Administration page for the API which is part of the API group > Policies > Click Apply New Policy > Rate Limiting- SLA Based.

Note: Applying Policy at API instance level is mandatory otherwise SLA tier will affect the API calls.

Once the policy is applied to the API, publish the API group to Exchange and request Access for the group.

Request access to the API group

Testing Out the SLA Tier

Hit the API from the postman and observe the responses. After 5 hits, it will return 429 status, too many requests.Testing out the SLA Tier

API

Opinions expressed by DZone contributors are their own.

Related

  • Revolutionizing Financial Monitoring: Building a Team Dashboard With OpenObserve
  • Unlocking the Benefits of a Private API in AWS API Gateway
  • APIs for Logistics Orchestration: Designing for Compliance, Exceptions, and Edge Cases
  • Building Data Pipelines With Jira API

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!