Skip to content

Commit

Permalink
Updating RestResource: ds_donorsearch_REST_test
Browse files Browse the repository at this point in the history
Updating pipeline: pl_donorsearch_http_test
Updating Json: ds_donorsearch_sink_REST_test
  • Loading branch information
abhishekanand10 committed May 20, 2024
1 parent 7233fde commit 689bc35
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 43 deletions.
16 changes: 15 additions & 1 deletion dataset/ds_donorsearch_REST_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,24 @@
"referenceName": "ls_donorsearch_REST_test",
"type": "LinkedServiceReference"
},
"parameters": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"homeState": {
"type": "string"
}
},
"annotations": [],
"type": "RestResource",
"typeProperties": {
"relativeUrl": "?key=5d95e4d6342b5&firstName=@{pipeline().parameters.firstName}&lastName=@{pipeline().parameters.lastName}&homeState=@{pipeline().parameters.homeState}"
"relativeUrl": {
"value": "?key=5d95e4d6342b5&firstName=@{dataset().firstName}&lastName=@{dataset().lastName}&homeState=@{dataset().homeState}",
"type": "Expression"
}
},
"schema": []
}
Expand Down
12 changes: 10 additions & 2 deletions dataset/ds_donorsearch_sink_REST_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@
"referenceName": "ls_ablob_cvidreportingsa",
"type": "LinkedServiceReference"
},
"parameters": {
"id": {
"type": "string"
}
},
"annotations": [],
"type": "Json",
"typeProperties": {
"location": {
"type": "AzureBlobStorageLocation",
"fileName": "donor.json",
"folderPath": "test",
"fileName": {
"value": "@concat('donor',dataset().id,'.json')",
"type": "Expression"
},
"folderPath": "test/temp/",
"container": "donorsearchhttpblob"
}
},
Expand Down
133 changes: 93 additions & 40 deletions pipeline/pl_donorsearch_http_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"properties": {
"activities": [
{
"name": "Copy donorsearch http data",
"type": "Copy",
"name": "Lookup List of constituents",
"type": "Lookup",
"dependsOn": [],
"policy": {
"timeout": "0.12:00:00",
Expand All @@ -16,51 +16,104 @@
"userProperties": [],
"typeProperties": {
"source": {
"type": "RestSource",
"httpRequestTimeout": "00:01:40",
"requestInterval": "00.00:00:00.010",
"requestMethod": "GET",
"paginationRules": {
"supportRFC5988": "true"
}
"type": "AzureSqlSource",
"queryTimeout": "02:00:00",
"partitionOption": "None"
},
"sink": {
"type": "JsonSink",
"storeSettings": {
"type": "AzureBlobStorageWriteSettings",
"copyBehavior": "MergeFiles"
},
"formatSettings": {
"type": "JsonWriteSettings"
}
"dataset": {
"referenceName": "ds_mock_constituents_test",
"type": "DatasetReference"
},
"enableStaging": false
},
"inputs": [
"firstRowOnly": false
}
},
{
"name": "ForEach constituent",
"type": "ForEach",
"dependsOn": [
{
"referenceName": "ds_donorsearch_REST_test",
"type": "DatasetReference"
"activity": "Lookup List of constituents",
"dependencyConditions": [
"Succeeded"
]
}
],
"outputs": [
{
"referenceName": "ds_donorsearch_sink_REST_test",
"type": "DatasetReference"
}
]
"userProperties": [],
"typeProperties": {
"items": {
"value": "@activity('Lookup List of constituents').output.value",
"type": "Expression"
},
"isSequential": false,
"activities": [
{
"name": "Copy donorsearch http data",
"type": "Copy",
"dependsOn": [],
"policy": {
"timeout": "0.12:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"source": {
"type": "RestSource",
"httpRequestTimeout": "00:01:40",
"requestInterval": "00.00:00:00.010",
"requestMethod": "GET",
"paginationRules": {
"supportRFC5988": "true"
}
},
"sink": {
"type": "JsonSink",
"storeSettings": {
"type": "AzureBlobStorageWriteSettings",
"copyBehavior": "MergeFiles"
},
"formatSettings": {
"type": "JsonWriteSettings"
}
},
"enableStaging": false
},
"inputs": [
{
"referenceName": "ds_donorsearch_REST_test",
"type": "DatasetReference",
"parameters": {
"firstName": {
"value": "@item().firstName",
"type": "Expression"
},
"lastName": {
"value": "@item().lastName",
"type": "Expression"
},
"homeState": "@item().homeState"
}
}
],
"outputs": [
{
"referenceName": "ds_donorsearch_sink_REST_test",
"type": "DatasetReference",
"parameters": {
"id": {
"value": "@item().id",
"type": "Expression"
}
}
}
]
}
]
}
}
],
"parameters": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"homeState": {
"type": "string"
}
},
"annotations": []
}
}

0 comments on commit 689bc35

Please sign in to comment.