1. Blog
  2. How to Expose MySQL ...

How to Expose MySQL Data as OData REST APIs in 5 Minutes with TransformZ

Turn your MySQL data into secure, fully functional OData REST APIs in just 5 minutes with TransformZ. No boilerplate, no endless coding; just instant data access for your apps, dashboards, and integrations.

Orléando Dassi

CEO & Founder

September 9, 2025

Introduction

Have you ever needed to turn your MySQL data into a REST API, fast, securely, and without writing boilerplate code? With TransformZ, you can go from your database to a fully functional REST API in just 5 minutes, just like a WordPress installation.

Other database management systems are supported, like PostgreSQL.

TranformZFeaturedImage

Why Expose MySQL as a REST API?

A MySQL REST API provides a stateless, scalable way for web and mobile applications to access database data via standard HTTP methods (GET, POST, PUT, DELETE). It’s perfect for:

  • Enabling real-time data access for dashboards and BI tools
  • Powering apps and microservices that rely on database connectivity
  • Streamlining integrations across systems and automating workflows

What’s the Cost-Effective Way? Let TransformZ Do the Heavy Lifting

Rather than hand-coding API endpoints or using general-purpose frameworks, TransformZ lets you instantly generate secure REST APIs from your MySQL data (tables and fields) like shown below.

The 5-Minute Guide to Generate a REST API from a MySQL Database with TransformZ

Here’s a quick 5-minute walkthrough:

Connect Your MySQL Database

Log in to TransformZ, from the left sidebar click on Data Sources, then on “Add New Data Source”.

In the first tab, provide your datastore details:

  • Name: its name, to quickly identify it in your dashboard.
  • Description: Some more information about your usage of this datastore to help you in the future.
  • Type: Choose “MySQL”, for the Database Type.

TranformZ MySQL Data Source details

Click on Next to access the second tab, fill in your database credentials:

  • Host: the database host.
  • Port: the database port.
  • Database name: the database name.
  • Schema: the database schema.
  • Username: the username of the user who has access to the database.
  • Password: the password of the user who has access to the database.

Once they are all in, the SAVE button will persist your information.

TranformZ MySQL Database Settings

Once saved, you’ll be redirected to the data sources listing, which display your newly created data source as Disconnected.

You can test it by clicking on the three dots at the top right of the data source, then click on Test.

Once the status is Connected, you are good to go to the next step, else you have to update your database settings.

Access the Generated OData REST API

From the data sources list, click on the data source to generate the REST API for.

As illustrated in the following screenshot, it’ll open its details page, which lists more information about how to use the generated REST API for your database.

TranformZ MySQL OData Details

By selecting a specific table, you have access to some possible endpoints that you can call on your entity, the related database schema that we fetched on real-time is available even down.

Note: your data source is secured using the JWT method by default, it ensures that only you can query your APIs. On a later article, we’ll come back on the available security options.

OData Metadata Endpoints

At this stage, you have a connected data source (database) and you are into its details page.

Now, scroll down to the Metadata Endpoints section, the “OData Endpoint URL” is the URL some applications need to have access to your OData REST API definition to know the available endpoints.

Still from that section, click on the OData Playground button to have a Postman-like experience to immediately test your auto-generated API endpoints and see the result.

TranformZ MySQL OData Details

On the top, you can generate a new JWT Token, plug it into the Authentication section and click on the SET button.

It simply logs you in, so that you can execute CRUD operations on the Rest Endpoints listed on the left sidebar.

Below you can see how I effortlessly list the records of my User table:

TranformZ MySQL OData Test

The TransformZ Advantages

TransformZ has immediate wins like: reducing cost and accelerating data integration projects, here are more elements:

  • APIs ready in minutes
  • Direct database connection, no migration
  • Automatic schema discovery and mapping
  • Real-time sync with databases
  • Visual, no-code interface

Conclusion

With TransformZ, exposing MySQL data as REST APIs isn’t a hassle, it’s a streamlined, secure, and efficient process that saves you time and effort. Ready to go from data to API in minutes?

Try it yourself, sign up on TransformZ and connect your first database today.

Follow me on LinkedIn for more content.

Thank you!

TransformZMySQLODataAPIData Integration
enfr