Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should RESTSource be renamed to LumenRESTSource? #510

Open
ahuang11 opened this issue Nov 2, 2023 · 1 comment
Open

Should RESTSource be renamed to LumenRESTSource? #510

ahuang11 opened this issue Nov 2, 2023 · 1 comment

Comments

@ahuang11
Copy link
Contributor

ahuang11 commented Nov 2, 2023

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
Copy link
Contributor Author

ahuang11 commented Nov 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant