Allow API calls to URLS that are not Files

Created on 23 May 2024, 6 months ago
Updated 5 June 2024, 5 months ago

Problem/Motivation

fetchFile causes an issue when trying to load JSON from an API.

Steps to reproduce

Setup the source as a URL to a db query
See the fetchFile check fail and not find the URL.

Proposed resolution

Add ability to load from an API instead of just a file.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pelicani

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @pelicani
  • Status changed to Closed: works as designed 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States pelicani

    We had a chance to try this again and found that adding a host name to the URL allowed us to target views to get our JSON.
    The file requirement is only when referencing the URL without a host.
    Using a token for the host allows us to deploy to other servers and retain the functionality.
    [site:base-url]
    https://www.drupal.org/node/3092269 β†’

    Great job on this useful module.

Production build 0.71.5 2024