Changes for page Changing the default message format
Last modified by Danniar Firdausy on 2024/09/18 13:34
From version 7.1
edited by Bouke Reitsma
on 2023/03/02 08:48
on 2023/03/02 08:48
Change comment:
There is no comment for this version
To version 7.2
edited by Bouke Reitsma
on 2023/03/02 15:18
on 2023/03/02 15:18
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -15,9 +15,9 @@ 15 15 == 3. Changing the default messaging format == 16 16 17 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 - 19 - AFBEELDING 1 TOEVOEGEN 20 20 19 +[[image:Main.Images.Microlearning.WebHome@intermediate-api-management-changing-default-messaging-format--edit-settings.png]] 20 + 21 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~*. 22 22 23 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.{{/info}} ... ... @@ -25,9 +25,9 @@ 25 25 == 4. Impact in Create == 26 26 27 27 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. 28 - 29 - AFBEELDING 2 TOEVOEGEN 30 30 29 +[[image:Main.Images.Microlearning.WebHome@intermediate-api-management-changing-default-messaging-format--get-operation.png]] 30 + 31 31 == 4. Assignment == 32 32 33 33 Change the default messaging format to XML.