crashcourse-api-gateway-configure-backend-operation
Version 1.1 by marijn on 2022/05/05 16:37
Configure a backend operation
In this microlearning, we will focus on learning about how you can correctly configure the backend operations. A crucial part of setting up your (API) Gateway with the help of RESTful services is knowing which backend operations you want to expose with the help of the API Gateway.Should you have any questions, please contact academy@emagiz.com.- Last update: April 14th, 2021
- Required reading time: 6 minutes
1. Prerequisites
- Basic knowledge of the eMagiz platform
2. Key concepts
This microlearning centers around configuring a backend operation with the API Gateway solution of eMagiz. With backend operation we mean: Any action that is available to be executed on an internal system that you want to make publicly available via the API Gateway With API Gateway we mean: A collection of RESTful API operations that can be published to the outside world to give them access to applications that are linked to your business processWhen setting up your API Gateway integration the process of doing things is to start at the backend operation and based on that expose an operation in the API Gateway.3. Configure a backend operation
When you look at the conceptual idea of the API Gateway, exposing backend operations via a centralized location to the outside world it stands to reason that when you set up your API Gateway (i.e. the front-end facing part) you start with the backend operation you want to expose.Configuring backend operations is done in the Design phase of eMagiz. When you are in the Design overview you can double click on the backend system that holds the operation(s). This action will show you the following pop-up
- Does the system talk JSON or XML
- Can you specify the backend operations either via an import of the OpenAPI 3.0 spec or via a manual action

3.1 Importing a specification
If the external party can provide you with an OpenAPI 3.0 specification you can manage your backend system by pressing the Import button when you are editing the system (double click on the system in question)


3.2 Creating a specification
It can very well be that the external party has a swagger definition but not an OpenAPI 3.0 standard. Or maybe they have other documentation that tells you the resource paths, parameters, and HTTP operations that you need.In all these cases you can manage your backend system by pressing the Manage button when you are editing the system (double click on the system in question)




3.3 Next steps
After you have correctly configured your backend operation you can start to think about how you can best expose the operations via the API Gateway. In the next three microlearnings, we will delve deeper into the various components and also learn how you can quickly expose these backend operations in your API Gateway.Practice
4. Assignment
Manually configure a GET operation with the resource path /httpmethods in an API Gateway system. This assignment can be completed with the help of the (Academy) project that you have created/used in the previous assignment.5. Key takeaways
- The starting point of setting up your API Gateway is configuring the backend operation(s)
- There are two ways to do so for JSON based systems
- Import OpenAPI 3.0 specification
- Manually configure based on other specification
- Other cases such as connecting to XML based systems will be discussed later on