Colleagues working at their screens

REST API: program it yourself or use an integration framework?

Well, for us that is not a difficult question. You can compare it with washing your clothes on a washboard and wringing them dry, or using the automatic wash cycle of a washing machine. But maybe this choice is not so clear to you yet. That is why we discuss three options for implementing REST API: programming everything yourself, using a framework with a programming language, or using an integration framework.

Programming a REST API yourself

Of course you can choose to develop a REST API yourself. You will then be busy with the technical side of it a lot. If you only want to consume REST, you can do that with an HTTP call. Calling REST is fairly simple: you perform a POST, GET or PUT, pass on the message and you get a response. Or not. But when you want to offer a REST service, a lot more is involved.

To receive an HTTP call, you need a lot of technical knowledge. It is more complex than sending an HTTP call. You also have to set up all the side issues properly yourself, such as OpenAPI documentation, security, message reliability and other specifications. Moreover, the world around us changes, which means you have to check and adapt your code yourself, for security reasons for example. In the end, you spend about 90% of your time on the technical realization and only 10% on the functionality.

Framework with a programming language

Nowadays almost nobody programs their own code from scratch anymore. You use a library such as an HTTP server to receive requests, or an application server. A well-known framework for developing Java software is Spring, which consists of a series of open-source libraries. Those Java libraries belong together and have been tested, which makes programming with them easier. It is an alternative to programming everything yourself, but the biggest drawback is still that the technical and functional sides are integrated with each other.

An integration framework for REST API

Yet another alternative to programming it yourself is the integration framework. Here the functional flow is decoupled from the technical implementation. It is a complete package in which all side issues and technical details, such as security, performance and documentation, are already taken care of. The focus is on the functional part: you know what a service should look like and what has to happen. All knowledge and updates are already in the integration framework, and you can reuse them.

With an integration framework, less technical knowledge is needed, and you can easily build integrations (with or without transactionality) yourself. When, for example, a new customer places an order in the web shop, you want to create this customer in the CRM system, handle the financial processing in the accounting software and update the stock in your ERP. That is almost impossible to program yourself. In an integration framework the technical side is already in place, so you only have to set up the functional things. In the end, a framework makes you much more productive.

The Frank!Framework

It will come as no surprise that we prefer to use an integration framework to develop REST APIs. Curious how to build, test and manage a REST API with our Frank!Framework? Watch the video. Want to know more? Then leave your question or schedule a time to chat with one of our API experts.

Questions about this case?
Get in touch
Portrait of Erwin Beets

Written by
Erwin Beets