You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/refguide/modeling/integration/rest-services/consumed-rest-services/consumed-rest-service.md
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Download [Studio Pro](https://marketplace.mendix.com/link/studiopro/) and add th
43
43
44
44
1. Right-click the module you want to add the Consumed REST Service document to.
3. Select a constant or create a new one for your username and password. To create a new constant, follow these steps:
116
116
1. Next to **Username** or **Password**, click **Select** > **New**.
@@ -127,14 +127,14 @@ Parameters are not supported in the Authentication section.
127
127
128
128
Parameters are fully supported in the path and query part of the URL, in the header value, and in the body. They are defined within curly brackets. For example, in the URL, defining `number` as parameter would be `http://numbersapi.com/{number}`. The parameters that are configured for the URL, headers, or body within curly brackets are automatically added to the parameters grid.
2. In the **Key** field, click the drop-down and choose from the list of the most commonly used HTTP headers. You can also create a custom header by typing directly in the key field and adding a value in the **Value** field.
162
162
163
163
3. Click **OK**. To test the header, click **Send**.
164
164
165
165
You can also add a parameter as the test value of a header, as seen below. For example, you can define an Authorization header where the authentication token is dynamic.
When the text in the Body tab contains a parameter name surrounded by curly braces, it is interpreted as a parameter. These parameters can be used to change the body content dynamically.
For example, if your body content is `product_curr={currency}&product_price={price}`, the parameters `currency` and `price` can be used to change the body content.
186
186
@@ -196,7 +196,7 @@ Create body entities from a JSON snippet to your request by doing the following:
196
196
197
197
3. If you want to use the newly-created JSON string as an entity in your domain model, click **Use JSON Snippet**. The body string can be viewed in the **Body structure** tab.
If the response is in JSON format and you want to use the response to create an entity, open the **Response structure** tab, which displays a preview of the response data:
If you have defined parameters in the request, they will be added to the activity. Click **Edit** to change the parameter in the microflow. The parameter values in this activity are used by the runtime instead of the test value defined in the request.
0 commit comments