Changes for page Changing the default message format
Last modified by Danniar Firdausy on 2024/09/18 13:34
From version 2.3
edited by Bouke Reitsma
on 2023/02/28 16:35
on 2023/02/28 16:35
Change comment:
There is no comment for this version
To version 9.1
edited by Bouke Reitsma
on 2023/03/03 13:07
on 2023/03/03 13:07
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,6 +1,6 @@ 1 1 {{container}}{{container layoutStyle="columns"}}((( 2 2 3 -In our crash course on the API Gateway pattern, we have learned about setting up the API Gateway. By default, the messaging format chosen for your gateway is json. However, in some instances XML is more appropriate as default message format. In this microlearning, we focus on changing the default message format and show the impact this has on flows in Create.3 +In our crash course on the API Gateway pattern, we have learned about setting up the API Gateway. By default, the messaging format chosen for your gateway is JSON. However, in some instances, XML is more appropriate as default message format. In this microlearning, we focus on changing the default message format and show the impact this has on flows in Create. 4 4 5 5 Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]]. 6 6 ... ... @@ -14,38 +14,32 @@ 14 14 15 15 == 3. Changing the default messaging format == 16 16 17 -In our crash course on the API Gateway pattern, we have learned about setting up the API Gateway. However, we did notyetdelve intothespecificsofhowtoupdate yourexistingAPI Gatewaysolution. In thismicrolearning,we will focusonupdating theDesignphaseofyourAPIGateway(andthesubsequentsteps) andwewill focusonupdating theCreatephase ofyourAPIGateway(andthe subsequentsteps).Thistolearntheimpact ofupdatesandtolearn how wecanachievethis.17 +In our crash course on the API Gateway pattern, we have learned about setting up the API Gateway. By default, the messaging format selected for your gateway is JSON. However, you can change the default messaging format to XML in your project. This change can be made in Design -> Settings -> API Management. On the right side of this overview are the gateway settings. The last entry of this overview is the Default Format. By clicking on the Edit settings button, you enter the following overview 18 18 19 - {{info}}~* Note Changingthedefault messagingformat doesnotaffectexistingoperationsincreate. Migratingtheseflowsrequirearesetofthe exit flow.{{/info}}19 +[[image:Main.Images.Microlearning.WebHome@intermediate-api-management-changing-default-messaging-format--edit-settings.png]] 20 20 21 +The last option allows you to switch between JSON or XML as your default messaging format in the gateway. In order to apply your new default to your project, you must press "Apply settings" in Design -> Architecture to confirm your change~*. 21 21 23 +{{info}}~* Note Changing the default messaging format does not affect existing operations in Create. Migrating these flows requires a reset of the exit flow. Additionally, the default response in Catalog has to be changed to application/xml. 24 + {{/info}} 25 + 22 22 == 4. Impact in Create == 23 23 24 - ApartfromupdatingyourAPI Gateway solution in Create,you canonlyupdatepartsoftheAPI GatewaysolutioninCreate.Here wemainlytalkabout changingthe gatewaymessages.Any otherchangeson the'exit gate'level havenospecialimpactcompared tochangingpartsofotherflows.Wediscerntwopartsofupdatinga(gateway)messagethatyou canexecuteintheCreatephase:28 +The automatic flow creation in the Create phase is adapted to the new default setting. When changing the messaging format to XML, the components of newly generated flows are created with different names and settings. The image below shows an example of an API GET operation with XML as the default messaging format. Besides the changed naming of the transformation, no support objects are required for this GET operation, since your gateway does not require a JSON response any more. 25 25 26 -* Changing the dataType (i.e. from dateTime to date) 27 -* Adding valid enum values 30 +[[image:Main.Images.Microlearning.WebHome@intermediate-api-management-changing-default-messaging-format--get-operation.png]] 28 28 29 -In both cases, eMagiz will automatically update your Swagger definition and all-entry flow by recreating the swagger definition to reflect these changes and executing a version bump of the all-entry. 30 - 31 -As is the case with all new versions in Create the changes will only be effectuated when you deploy your solution via the Deploy phase of eMagiz. 32 - 33 33 == 4. Assignment == 34 34 35 - Thinkofthreechanges you want to applytoan API Gatewaysolution andsee if you can determinewhichflow in Createneeds an update.34 +Change the default messaging format to XML. 36 36 This assignment can be completed with the help of the (Academy) project that you have created/used in the previous assignment. 37 37 38 38 == 5. Key takeaways == 39 39 40 -* Updating can happen from Design 41 -* Updating can happen from Create 42 -* Both situations have a different impact 43 -* Adding a new operation to an existing solution does not involve a reset 44 -* Updating from Create does not involve a reset 45 -* Updating from Design involves a reset 39 +* The default messaging format can be changed to XML 40 +* Updating this only affects new flows 41 +* Migrating existing operations can be done by resetting the exit flow 46 46 47 - 48 - 49 49 == 6. Suggested Additional Readings == 50 50 51 51 If you are interested in this topic and want more information on it please read the help text provided by eMagiz. ... ... @@ -52,6 +52,6 @@ 52 52 53 53 == 7. Silent demonstration video == 54 54 55 - As this is a moretheoretical microlearning wedid not providea video for this one.49 +To be recorded. 56 56 57 57 )))((({{toc/}}))){{/container}}{{/container}}