Create an IBM Db2 REST API with DreamFactory

Integrations » Databases » IBM Db2

IBM Db2 is a trailblazer in the database world, with its origins intertwined with the very definition of relational database theory back in the early 1970s. Given the history it is no wonder the database is used by thousands of enterprises around the globe, with many of these companies relying upon DreamFactory to create and manage IBM Db2-backed REST APIs.

Figure 1. Db2 is one of 19 supported databases

Full CRUD Capabilities

DreamFactory's Db2 connector allows developers and database administrators can instantaneously generate a full featured, fully documented, and secure Db2 REST API. Exposing more than 30 endpoints, developers can immediately begin executing CRUD (create - retrieve - update - delete) operations via the API, and can even inspect and interact with the schema.

Stored Procedure Support

Beyond CRUD capabilities, Db2 administrators will appreciate DreamFactory's support for executing stored procedures and functions. This feature allows your team to reuse existing database logic rather than implement it anew.

Role-based Access Controls

DreamFactory users can define highly specific role-based access controls (RBAC) capable of limiting access to specific tables or stored procedures, and even determining what actions a client can take (GET, POST, PUT, PATCH, DELETE). It's also possible to define row-based limits, further restricting client access.

Multiple Databases, One API Response

Another popular DreamFactory feature used in conjunction with Db2 APIs is Data Mesh. Data Mesh allows you to create virtual relationships between Db2 and other databases such as Oracle or Microsoft SQL Server, even when these databases reside in different clouds. To learn more about data mesh, DreamFactory Academy offers a detailed video titled "Merging Multiple Database API Calls with Data Mesh". We've also recently published a blog post titled Easier Data Marts with Data Mesh.

Real Time Analytics

Because performance and analytics are crucial to modern devops, your Db2 API performance and behavior can be closely monitored through DreamFactory's Elastic Stack integration. Kibana dashboards provide up-to-the-second insights into API key usage, HTTP response codes, data consumption, and much more.


So how easy is it to generate a IBM DB2-backed REST API using DreamFactory? With a set of database credentials in hand, you can complete the entire process in less than 5 minutes. Check out Chapter 3 of our "Getting Started with DreamFactory" guide to learn how to generate the API, apply role-based access controls, generate an API key, and begin querying your API in no time.

Learn More

If you'd like to build powerful API-driven applications, get in touch, or start a hosted trial today! We can quickly set you up with a hosted or on-premise trial so you can experience the power of the DreamFactory Platform.

Need API Advice?

Our team has advised thousands of companies around the world on API projects. Go to market faster by talking to the API experts.


Ready to get started?