etl icon indicating copy to clipboard operation
etl copied to clipboard

Consuming and writing to JSON:API

Open akuckartz opened this issue 5 years ago • 3 comments
trafficstars

Any suggestions on how to read and write to JSON:API webservices ?

akuckartz avatar Oct 11 '20 07:10 akuckartz

XSLT 3.0 can transform JSON: https://www.w3.org/TR/xslt-30/#json

namedgraph avatar Oct 11 '20 07:10 namedgraph

Specification is available here: https://jsonapi.org/

The Drupal community now seems to prefer these APIs to provide data.

akuckartz avatar Oct 11 '20 07:10 akuckartz

There is no explicit support now. Nevertheless, you can always use a lower-level approach:

  1. HTTP Request for making arbitrary HTTP requests or HTTP Get for HTTP GET specifically
  2. JSON to JSON-LD for adding a JSON-LD context to the JSON response
  3. Files to RDF Single Graph to load the JSON-LD as RDF
  4. do some stuff with the data
  5. prepare data for response
  6. use Mustache to prepare JSON request
  7. HTTP Request for making arbitrary HTTP requests.
  8. repeat

jakubklimek avatar Oct 12 '20 05:10 jakubklimek