etl
etl copied to clipboard
Consuming and writing to JSON:API
trafficstars
Any suggestions on how to read and write to JSON:API webservices ?
XSLT 3.0 can transform JSON: https://www.w3.org/TR/xslt-30/#json
Specification is available here: https://jsonapi.org/
The Drupal community now seems to prefer these APIs to provide data.
There is no explicit support now. Nevertheless, you can always use a lower-level approach:
- HTTP Request for making arbitrary HTTP requests or HTTP Get for HTTP GET specifically
- JSON to JSON-LD for adding a JSON-LD context to the JSON response
- Files to RDF Single Graph to load the JSON-LD as RDF
- do some stuff with the data
- prepare data for response
- use Mustache to prepare JSON request
- HTTP Request for making arbitrary HTTP requests.
- repeat