Would it be possible to modify this module to allow you to provide a local API endpoint for data retrieval? For example the query settings allow for a file path, or an absolute URL. Would it be possible that you could provide it a local route url and retrieve json data that way?

The example I am providing is this:

I have a Drupal website setup, and I also have a secondary non Drupal database configured and setup. I have a custom module and controller/routes to serve data from the secondary database to API endpoints. I would like to use this module to access those local endpoints to retrieve the data from the secondary database, so that I can use views with that data.

CommentFileSizeAuthor
#2 3279408_2.patch1.55 KBvenugopp

Comments

jfurnas created an issue. See original summary.

venugopp’s picture

Status: Active » Needs review
StatusFileSize
new1.55 KB

Here is a patch allowing to add drupal token to the URL.
EG: [site:url]modules/contrib/views_json_source/data/sample/example1.json

  • venugopp authored 910512e on 8.x-1.x
    Issue #3279408 by venugopp, jfurnas: Possibility to retrieve from self-...
venugopp’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.