Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sgassmann-skedulo/68c860e74f13dd14011db892935cbf02 to your computer and use it in GitHub Desktop.
Save sgassmann-skedulo/68c860e74f13dd14011db892935cbf02 to your computer and use it in GitHub Desktop.
curl --request PUT \
--url https://platform.prod.skl.io/ui/v1/resource/$Resource_ID \
--header 'Authorization: bearer $API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"resource": {
"uid": "$Resource_ID",
"name": "launchers",
"userId": "",
"tenantId": "$TenantId",
"domainId": "",
"resource": "launchers",
"datasource": "CUSTOM",
"datasourceParamsCustom": {
"getObjects": {
"request": {
"request": {
"url": "{{\"https://ll.thespacedevs.com/2.2.0/config/launcher/\" | add_query_param (\"limit\",limit,\"mode\",\"detailed\") | add_conditional_query_param(\"offset\", (cursor | to_number - 1) * limit | to_number, cursor) }}",
"method": "GET",
"body": "",
"headers": [
"Accept: application/json",
"Content-Type: application/json"
]
},
"luceneQueryKey": "",
"cursorQueryKey": "",
"order": [],
"filterMapping": {
}
},
"jsonpathResponse": {
"results": "$.results",
"total": "$.count"
},
"recordMappings": {
"outgoing": [],
"incoming":[]
}
},
"deleteObject": null,
"updateObject": null,
"createObject": null,
"getDataSchema": {
"static": {
"resourceId": "",
"fields": [],
"relationships": [
]
}
},
"getObject": null
},
"datasourceCapabilities": {
"paging": {
"method": "PAGE"
},
"definer": ""
},
"definer": "",
"isSystemGenerated": false
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment