🛠️ Unlock the power of programmable API Gateways - customize your APIs with JavaScript Modules

CTO & Co-Founder @ Cloud APIM, dev @Serli, Open source enthusiast, I created Otoroshi, an opensource http reverse proxy and API Management plateform
Search for a command to run...

CTO & Co-Founder @ Cloud APIM, dev @Serli, Open source enthusiast, I created Otoroshi, an opensource http reverse proxy and API Management plateform
No comments yet. Be the first to comment.
There's a certain feeling you get when you've just finished setting up a new piece of infrastructure and it actually works. The kind of satisfaction that makes you reach for your coffee, lean back in

How I spent my Christmas holidays building a SecLang-compatible Web Application Firewall (almost) from scratch

Le monde des agents IA Depuis quelques mois, tout le monde parle d’agents IA, à toutes les sauces ! Une sorte de machine à tout faire et une super intelligence interconnectée à tous nos outils du quotidien. Ces intelligences capables non seulement de...

Dans le monde de l’architecture cloud moderne, deux termes reviennent souvent lorsqu’il s’agit de gestion du trafic applicatif : API Gateway et Load Balancer. Bien qu’ils puissent sembler similaires, leurs rôles sont bien distincts. Savoir faire la d...

L’intelligence artificielle générative (IA générative) révolutionne l’entreprise : assistants intelligents, automatisation, génération de contenus… les cas d’usage explosent. Mais avec cette adoption croissante vient une problématique majeure : la ge...

Sometimes existing APIs are well thought out and designed, sometimes clients are flexibles and can adapt to the API responses.
And sometimes everything goes wrong ...
In such cases, it can be really helpful to be able to customize things in a central place to keep everyone happy.
🚀 That's why we're thrilled to introduce our new feature : JavaScript Modules
This new feature in Cloud APIM Serverless empowers developers to tailor their APIs to their exact specifications.
🔄 JavaScript Modules are reusable blocks of code written in JavaScript that can be easily integrated into your APIs.
These modules encapsulate specific functionality, such as data validation, transformation, or custom business logic, allowing you to enhance and extend the capabilities of your APIs.
With JavaScript Modules, you have the freedom to customize every aspect of your API.
Whether you need to implement complex validation rules, transform data formats, or integrate with external services, JavaScript Modules provide a flexible and powerful solution.
By leveraging existing modules or creating your own, you can accelerate development and streamline maintenance, all while maintaining the scalability and reliability of your APIs.
Flexibility: JavaScript Modules enable you to adapt your APIs to meet the unique requirements of your applications and users.
Reusability: Reuse existing modules across multiple APIs to save time and effort in development.
Scalability: Scale your APIs effortlessly by leveraging modular architecture and distributed computing.
Maintainability: Simplify maintenance and updates by encapsulating logic in self-contained modules.
Innovation : Experiment with new features and functionality without disrupting existing APIs, fostering a culture of innovation and continuous improvement. 🚀
Getting started with JavaScript Modules in Cloud APIM Serverless is easy.
Simply browse our library of pre-built modules or create your own using your favorite JavaScript framework.
💻 Integrate modules seamlessly into your APIs using our intuitive interface, and start unlocking the full potential of customization today.
Sign Up on Cloud APIM Serverless :
Before setting up a Javascript Module, ensure you have created a project on Cloud APIM Serverless.
If you haven't created one yet, follow these steps:
Log in to your Cloud APIM Serverless dashboard.
Click on "New project" and fill in your project name.
Create your first Module :
Navigate to the " modules" folder and create a new one.
Your filename must ends by '.js'
For example you can create a new file named 'first-module.js'
Copy and paste the following code and edit it as you wish
exports.on_backend_call = function (ctx) {
return fetch(`https://jsonplaceholder.typicode.com/todos`)
.then(response => response.json())
.then(json => {
return {
status: 200,
headers: {
'Content-Type': 'application/json'
},
body_json: {
size: json.length,
data: json
}
}
})
};
Link your module to your route :
Select the "openapi.json" file
Choose the route you want to add the plugin or create a new route if you don't have one yet
In the ' plugins ' section let's choose Javascript Module Plugin
And now you just have to link the filename of your module
{
"module": "/modules/first-module.js"
}
JavaScript Modules are a game-changer for API customization, offering unparalleled flexibility, reusability, and scalability.
With Cloud APIM Serverless, you have the tools you need to take your APIs to the next level and deliver exceptional experiences to your users.
Embrace the power of JavaScript Modules and transform the way you build APIs forever.
Ready to get started with Cloud APIM Serverless ?
Sign up now and take the first step towards secure and efficient API management !
Follow our blog for the latest updates, tips, and best practices for Cloud APIM Serverless and API management.
Cloud APIM provides cutting-edge, managed solutions for API management, enabling businesses to leverage the full power of their APIs with ease and efficiency. Our commitment to innovation and excellence drives us to offer the most advanced tools and services to our customers, empowering them to achieve their digital transformation goals.
