Skip to content

Commit a09e7af

Browse files
committed
Update text and style
1 parent 6717c55 commit a09e7af

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

articles/data-factory/connector-rest.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -663,12 +663,12 @@ BaseUrl/api/now/table/t100
663663
This example provides the configuration steps to send multiple requests whose variables are in Headers.
664664
665665
**Multiple requests:**<br/>
666-
RequestUrl: https://example/table<br/>
667-
Request 1: Header(id->0)<br/>
668-
Request 2: Header(id->10)<br/>
669-
Request 2: Header(id->20)<br/>
666+
RequestUrl: *https://example/table*<br/>
667+
Request 1: `Header(id->0)`<br/>
668+
Request 2: `Header(id->10)`<br/>
669+
Request 2: `Header(id->20)`<br/>
670670
......<br/>
671-
Request 100: Header(id->100)<br/>
671+
Request 100: `Header(id->100)`<br/>
672672
673673
*Step 1*: Input `{id}` in **Additional headers**.
674674
@@ -718,32 +718,32 @@ Data: [
718718
719719
- **Example 4.1: The pagination will end when the value of the specific node in response is empty**
720720
721-
Last response:
721+
The REST API returns the last response in the following structure:
722722
723723
```
724724
{
725725
Data: []
726726
}
727727
```
728-
Set the end condition rule as **"EndCondition:$.data": "Empty"**.
728+
Set the end condition rule as **"EndCondition:$.data": "Empty"** to end the pagination when the value of the specific node in response is empty.
729729
730730
:::image type="content" source="media/connector-rest/pagination-example-4-1.png" alt-text="Screenshot showing the EndCondition setting for Example 4.1.":::
731731
732732
- **Example 4.2: The pagination will end when the value of the specific node in response dose not exist**
733733
734-
Last response:
734+
The REST API returns the last response in the following structure:
735735
736736
```
737737
{
738738
}
739739
```
740-
Set the end condition rule as **"EndCondition:$.data": "NonExist"**.
740+
Set the end condition rule as **"EndCondition:$.data": "NonExist"** to end the pagination when the value of the specific node in response dose not exist.
741741
742742
:::image type="content" source="media/connector-rest/pagination-example-4-2.png" alt-text="Screenshot showing the EndCondition setting for Example 4.2.":::
743743
744744
- **Example 4.3: The pagination will end when the value of the specific node in response exists**
745745
746-
Last response:
746+
The REST API returns the last response in the following structure:
747747
748748
```
749749
{
@@ -754,14 +754,13 @@ Data: [
754754
Complete: true
755755
}
756756
```
757-
Set the end condition rule as **"EndCondition:$.Complete": "Exist"**.
757+
Set the end condition rule as **"EndCondition:$.Complete": "Exist"** to end the pagination when the value of the specific node in response exists.
758758
759759
:::image type="content" source="media/connector-rest/pagination-example-4-3.png" alt-text="Screenshot showing the EndCondition setting for Example 4.3.":::
760760
761761
- **Example 4.4: The pagination will end when the value of the specific node in response is a user-defined const value**
762762
763-
Last response:
764-
763+
The REST API returns the response in the following structure:
765764
```
766765
{
767766
Data: [
@@ -771,8 +770,9 @@ Data: [
771770
Complete: false
772771
}
773772
```
774-
775-
or
773+
......
774+
775+
And the last response is in the following structure:
776776
777777
```
778778
{
@@ -783,27 +783,31 @@ Data: [
783783
Complete: true
784784
}
785785
```
786-
Set the end condition rule as **"EndCondition:$.Complete": "Const:true"**.
786+
Set the end condition rule as **"EndCondition:$.Complete": "Const:true"** to end the pagination when the value of the specific node in response is a user-defined const value.
787787
788788
:::image type="content" source="media/connector-rest/pagination-example-4-4.png" alt-text="Screenshot showing the EndCondition setting for Example 4.4.":::
789789
790790
- **Example 4.5: The pagination will end when the value of the header key in response is equal to user-defined const value**
791791
792-
Response header 1: header(Complete->0)<br/>
792+
The header keys in REST API responses are shown in the structure below:
793+
794+
Response header 1: `header(Complete->0)`<br/>
793795
......<br/>
794-
Last Response header: header(Complete->1)<br/>
796+
Last Response header: `header(Complete->1)`<br/>
795797
796-
Set the end condition rule as **"EndCondition:headers.Complete": "Const:1"**.
798+
Set the end condition rule as **"EndCondition:headers.Complete": "Const:1"** to end the pagination when the value of the header key in response is equal to user-defined const value.
797799
798800
:::image type="content" source="media/connector-rest/pagination-example-4-5.png" alt-text="Screenshot showing the EndCondition setting for Example 4.5.":::
799801
800802
- **Example 4.6: The pagination will end when the key exists in the response header**
801803
802-
Response header 1: header()<br/>
804+
The header keys in REST API responses are shown in the structure below:
805+
806+
Response header 1: `header()`<br/>
803807
......<br/>
804-
Last Response header: header(CompleteTime->20220920)<br/>
808+
Last Response header: `header(CompleteTime->20220920)`<br/>
805809
806-
Set the end condition rule as **"EndCondition:headers.CompleteTime": "Exist"**.
810+
Set the end condition rule as **"EndCondition:headers.CompleteTime": "Exist"** to end the pagination when the key exists in the response header.
807811
808812
:::image type="content" source="media/connector-rest/pagination-example-4-6.png" alt-text="Screenshot showing the EndCondition setting for Example 4.6.":::
809813

0 commit comments

Comments
 (0)