Last modified by Erik Bakker on 2024/08/23 11:32

From version 21.1
edited by Erik Bakker
on 2022/06/13 09:37
Change comment: Renamed from xwiki:Migrated Pages.Configure a backend operation
To version 27.1
edited by Eva Torken
on 2023/04/20 11:27
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +Configure A Backend Operation
Parent
... ... @@ -1,0 +1,1 @@
1 +WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ebakker
1 +XWiki.etorken
Default language
... ... @@ -1,0 +1,1 @@
1 +en
Content
... ... @@ -1,14 +1,9 @@
1 1  {{container}}{{container layoutStyle="columns"}}(((
2 -= Configure a backend operation =
3 -
4 4  In this microlearning, we will focus on learning about how you can correctly configure the backend operations.
5 5  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.
6 6  
7 7  Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]].
8 8  
9 -* Last update: April 14th, 2021
10 -* Required reading time: 6 minutes
11 -
12 12  == 1. Prerequisites ==
13 13  
14 14  * Basic knowledge of the eMagiz platform
... ... @@ -16,31 +16,29 @@
16 16  == 2. Key concepts ==
17 17  
18 18  This microlearning centers around configuring a backend operation with the API Gateway solution of eMagiz.
19 -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
20 -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 process
14 +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.
15 +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 process.
21 21  
22 22  When 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.
23 23  
24 -
25 -
26 26  == 3. Configure a backend operation ==
27 27  
28 -When you look at the conceptual idea of the API Gateway, exposing backend operations via a centralized location to the outside world
29 -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.
21 +When you look at the conceptual idea of the API Gateway, exposing backend operations via a centralized location to the outside world.
22 +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.
30 30  
31 -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
24 +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:
32 32  
33 33  [[image:Main.Images.Microlearning.WebHome@crashcourse-api-gateway-configure-backend-operations--system-edit.png]]
34 34  
35 35  In here you need to fill in the technical name, just as with any other system. Furthermore, you have two decisions to make:
36 36  
37 -* Does the system talk JSON or XML
30 +* Does the system talk JSON or XML (i.e. which message format)
38 38  * Can you specify the backend operations either via an import of the OpenAPI 3.0 spec or via a manual action
39 39  
40 40  If the answer to the above decisions is JSON and yes the default settings are correct you should continue to either import the OpenAPI 3.0 spec or manually configure at least one backend operation.
41 41  More on that later in this microlearning.
42 42  
43 -In case the answer to the first decision is XML you should switch the default format to XML and unselect the OpenAPI 3.0 spec. The result should be something like this.
36 +In case the answer to the first decision is XML you should switch the default format to XML and unselect the OpenAPI 3.0 spec. The result should be something like this:
44 44  
45 45  [[image:Main.Images.Microlearning.WebHome@crashcourse-api-gateway-configure-backend-operations--system-edit-xml-result.png]]
46 46  
... ... @@ -47,7 +47,7 @@
47 47  === 3.1 Importing a specification ===
48 48  
49 49  If the external party can provide you with an OpenAPI 3.0 specification you can manage your backend system by pressing the Import button
50 -when you are editing the system (double click on the system in question)
43 +when you are editing the system (double click on the system in question).
51 51  
52 52  [[image:Main.Images.Microlearning.WebHome@crashcourse-api-gateway-configure-backend-operations--system-edit-manage.png]]
53 53  
... ... @@ -56,7 +56,7 @@
56 56  [[image:Main.Images.Microlearning.WebHome@crashcourse-api-gateway-configure-backend-operations--import-open-api-pop-up.png]]
57 57  
58 58  Press Import and let eMagiz do the heavy lifting for you. eMagiz will now import all backend operations that are specified in the OpenAPI 3.0 JSON file you have selected.
59 -A result of such an import could be as follows.
52 +A result of such an import could be as follows:
60 60  
61 61  [[image:Main.Images.Microlearning.WebHome@crashcourse-api-gateway-configure-backend-operations--import-open-api-result.png]]
62 62  
... ... @@ -64,10 +64,10 @@
64 64  
65 65  === 3.2 Creating a specification ===
66 66  
67 -It can very well be that the external party has a swagger definition but not an OpenAPI 3.0 standard.
60 +It can very well be that the external party has a swagger definition, but not an OpenAPI 3.0 standard.
68 68  Or maybe they have other documentation that tells you the resource paths, parameters, and HTTP operations that you need.
69 69  
70 -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)
63 +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).
71 71  
72 72  [[image:Main.Images.Microlearning.WebHome@crashcourse-api-gateway-configure-backend-operations--system-edit-manage.png]]
73 73  
... ... @@ -75,16 +75,16 @@
75 75  
76 76  [[image:Main.Images.Microlearning.WebHome@crashcourse-api-gateway-configure-backend--manage-pop-up.png]]
77 77  
78 -Let us manually fill a simple GET call to retrieve all HTTP methods. So we start at the top left of the screen in the resource section and press New.
79 -In the pop-up that follows we enter the resource path that is defined in the specification and press Save. The result will be as follows.
71 +Let us manually fill a simple GET call to retrieve all HTTP methods. So, we start at the top left of the screen in the resource section and press New.
72 +In the pop-up that follows, we enter the resource path that is defined in the specification and press Save. The result will be as follows:
80 80  
81 81  [[image:Main.Images.Microlearning.WebHome@crashcourse-api-gateway-configure-backend--manage-pop-up-resource-filled-in.png]]
82 82  
83 -The next step will be to add an operation via the option New under Operations in the middle of your screen. The result of that action will be something as follows.
76 +The next step will be to add an operation via the option New under Operations in the middle of your screen. The result of that action will be something as follows:
84 84  
85 85  [[image:Main.Images.Microlearning.WebHome@crashcourse-api-gateway-configure-backend--manage-pop-up-operation-filled-in.png]]
86 86  
87 -As there are no parameters in this case you have now successfully configured your first backend operation. When you close this screen you will see the results on system level
80 +As there are no parameters in this case you have now successfully configured your first backend operation. When you close this screen you will see the results on system level.
88 88  
89 89  [[image:Main.Images.Microlearning.WebHome@crashcourse-api-gateway-configure-backend--pop-up-result.png]]
90 90  
... ... @@ -95,8 +95,6 @@
95 95  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.
96 96  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.
97 97  
98 -
99 -
100 100  == 4. Assignment ==
101 101  
102 102  Manually configure a GET operation with the resource path /httpmethods in an API Gateway system.
... ... @@ -110,8 +110,6 @@
110 110   * Manually configure based on other specification
111 111  * Other cases such as connecting to XML based systems will be discussed later on
112 112  
113 -
114 -
115 115  == 6. Suggested Additional Readings ==
116 116  
117 117  If you are interested in this topic and want more information on it please read the help text provided by eMagiz.