holoviz / lumen

Illuminate your data.
https://lumen.holoviz.org
BSD 3-Clause "New" or "Revised" License
167 stars 18 forks source link

Should RESTSource be renamed to LumenRESTSource? #510

Open ahuang11 opened 8 months ago

ahuang11 commented 8 months ago

I was trying to use it like this: https://docs.aviationapi.com/#tag/charts

sources:
  aviation_source:
    type: rest
    url: https://api.aviationapi.com/v1/charts?apt=KCMI

layouts:
  - title: Aviation
    source: aviation_source
    views:
      - type: hvplot_ui

But I realized it's specifically an endpoint for hosting Lumen specs """ RESTSource allows querying REST endpoints conforming to the Lumen REST specification.

The url must offer two endpoints, the /data endpoint must return data in a records format while the /schema endpoint must return a valid Lumen JSON schema. """

ahuang11 commented 8 months ago

For reference, this works to a point, but I need to figure out how to subset a key.

sources:
  aviation_source:
    type: json
    tables:
      kcmi_chart: https://api.aviationapi.com/v1/charts?apt=KCMI

layouts:
  - title: Aviation
    source: aviation_source
    views:
      - type: hvplot_ui
        table: kcmi_chart