Created
December 11, 2024 18:10
-
-
Save mindspank/868d735205e665257bcd59e30907e981 to your computer and use it in GitHub Desktop.
Example API Endpoint in Rill
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sales_by_region.yaml | |
type: api | |
metrics_sql: > | |
select | |
total_sales, | |
sales_rep | |
from SalesMetricsView | |
where region = {{ .args.region }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full API documentation available at: https://docs.rilldata.com/integrate/custom-api