Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save allgood2386/5c1f3b2cb3e4dbb48320f433038a63eb to your computer and use it in GitHub Desktop.
Save allgood2386/5c1f3b2cb3e4dbb48320f433038a63eb to your computer and use it in GitHub Desktop.
source:
plugin: url
data_fetcher_plugin: http
data_parser_plugin: json
urls: http://sourcesite.com/jsonapi/node/article
ids:
nid:
type: integer
item_selector: data/
fields:
-
name: nid
label: 'Nid'
selector: /attributes/nid
-
name: vid
label: 'Vid'
selector: /attributes/vid
-
name: uuid
label: 'Uuid'
selector: /attributes/uuid
-
name: title
label: 'Title'
selector: /attributes/title
-
name: created
label: 'Created'
selector: /attributes/created
-
name: changed
label: 'Changed'
selector: /attributes/changed
-
name: status
label: 'Status'
selector: /attributes/status
-
name: sticky
label: 'Sticky'
selector: /attributes/sticky
-
name: promote
label: 'Promote'
selector: /attributes/promote
-
name: default_langcode
label: 'Default Langcode'
selector: /attributes/default_langcode
-
name: path
label: 'Path'
selector: /attributes/path
-
name: body
label: 'Body'
selector: /attributes/body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment