Metabase API endpoints for viewing publicly-accessible Cards and Dashboards.
Metabase API endpoints for viewing publicly-accessible Cards and Dashboards.
(card-and-field-id->values card-id field-id)
Return the FieldValues for a Field with field-id
that is referenced by Card with card-id
.
Return the FieldValues for a Field with `field-id` that is referenced by Card with `card-id`.
(card-field-remapped-values card-id field-id remapped-field-id value-str)
Return the reampped Field values for a Field referenced by a Card. This explanation is almost useless, so see the
one in metabase.api.field/remapped-value
if you would actually like to understand what is going on here.
Return the reampped Field values for a Field referenced by a *Card*. This explanation is almost useless, so see the one in `metabase.api.field/remapped-value` if you would actually like to understand what is going on here.
(dashboard-and-field-id->values dashboard-id field-id)
Return the FieldValues for a Field with field-id
that is referenced by Card with card-id
which itself is present
in Dashboard with dashboard-id
.
Return the FieldValues for a Field with `field-id` that is referenced by Card with `card-id` which itself is present in Dashboard with `dashboard-id`.
(dashboard-field-remapped-values dashboard-id
field-id
remapped-field-id
value-str)
Return the reampped Field values for a Field referenced by a Dashboard. This explanation is almost useless, so see
the one in metabase.api.field/remapped-value
if you would actually like to understand what is going on here.
Return the reampped Field values for a Field referenced by a *Dashboard*. This explanation is almost useless, so see the one in `metabase.api.field/remapped-value` if you would actually like to understand what is going on here.
GET /api/public/card/:uuid
Fetch a publicly-accessible Card an return query results as well as :card
information. Does not require auth
credentials. Public sharing must be enabled.
uuid
## `GET /api/public/card/:uuid` Fetch a publicly-accessible Card an return query results as well as `:card` information. Does not require auth credentials. Public sharing must be enabled. ##### PARAMS: * **`uuid`**
GET /api/public/card/:uuid/field/:field-id/remapping/:remapped-id
Fetch remapped Field values. This is the same as GET /api/field/:id/remapping/:remapped-id
, but for use with public
Cards.
uuid
field-id
remapped-id
value
value must be a non-blank string.
## `GET /api/public/card/:uuid/field/:field-id/remapping/:remapped-id` Fetch remapped Field values. This is the same as `GET /api/field/:id/remapping/:remapped-id`, but for use with public Cards. ##### PARAMS: * **`uuid`** * **`field-id`** * **`remapped-id`** * **`value`** value must be a non-blank string.
GET /api/public/card/:uuid/field/:field-id/search/:search-field-id
Search for values of a Field that is referenced by a public Card.
uuid
field-id
search-field-id
value
value must be a non-blank string.
limit
value may be nil, or if non-nil, value must be a valid integer greater than zero.
## `GET /api/public/card/:uuid/field/:field-id/search/:search-field-id` Search for values of a Field that is referenced by a public Card. ##### PARAMS: * **`uuid`** * **`field-id`** * **`search-field-id`** * **`value`** value must be a non-blank string. * **`limit`** value may be nil, or if non-nil, value must be a valid integer greater than zero.
GET /api/public/card/:uuid/field/:field-id/values
Fetch FieldValues for a Field that is referenced by a public Card.
uuid
field-id
## `GET /api/public/card/:uuid/field/:field-id/values` Fetch FieldValues for a Field that is referenced by a public Card. ##### PARAMS: * **`uuid`** * **`field-id`**
GET /api/public/card/:uuid/query
Fetch a publicly-accessible Card an return query results as well as :card
information. Does not require auth
credentials. Public sharing must be enabled.
uuid
parameters
value may be nil, or if non-nil, value must be a valid JSON string.
## `GET /api/public/card/:uuid/query` Fetch a publicly-accessible Card an return query results as well as `:card` information. Does not require auth credentials. Public sharing must be enabled. ##### PARAMS: * **`uuid`** * **`parameters`** value may be nil, or if non-nil, value must be a valid JSON string.
GET /api/public/card/:uuid/query/:export-format
Fetch a publicly-accessible Card and return query results in the specified format. Does not require auth credentials. Public sharing must be enabled.
uuid
export-format
value must be one of: csv
, json
, xlsx
.
parameters
value may be nil, or if non-nil, value must be a valid JSON string.
respond
raise
## `GET /api/public/card/:uuid/query/:export-format` Fetch a publicly-accessible Card and return query results in the specified format. Does not require auth credentials. Public sharing must be enabled. ##### PARAMS: * **`uuid`** * **`export-format`** value must be one of: `csv`, `json`, `xlsx`. * **`parameters`** value may be nil, or if non-nil, value must be a valid JSON string. * **`respond`** * **`raise`**
GET /api/public/dashboard/:uuid
Fetch a publicly-accessible Dashboard. Does not require auth credentials. Public sharing must be enabled.
uuid
## `GET /api/public/dashboard/:uuid` Fetch a publicly-accessible Dashboard. Does not require auth credentials. Public sharing must be enabled. ##### PARAMS: * **`uuid`**
GET /api/public/dashboard/:uuid/card/:card-id
Fetch the results for a Card in a publicly-accessible Dashboard. Does not require auth credentials. Public sharing must be enabled.
uuid
card-id
parameters
value may be nil, or if non-nil, value must be a valid JSON string.
## `GET /api/public/dashboard/:uuid/card/:card-id` Fetch the results for a Card in a publicly-accessible Dashboard. Does not require auth credentials. Public sharing must be enabled. ##### PARAMS: * **`uuid`** * **`card-id`** * **`parameters`** value may be nil, or if non-nil, value must be a valid JSON string.
GET /api/public/dashboard/:uuid/field/:field-id/remapping/:remapped-id
Fetch remapped Field values. This is the same as GET /api/field/:id/remapping/:remapped-id
, but for use with public
Dashboards.
uuid
field-id
remapped-id
value
value must be a non-blank string.
## `GET /api/public/dashboard/:uuid/field/:field-id/remapping/:remapped-id` Fetch remapped Field values. This is the same as `GET /api/field/:id/remapping/:remapped-id`, but for use with public Dashboards. ##### PARAMS: * **`uuid`** * **`field-id`** * **`remapped-id`** * **`value`** value must be a non-blank string.
GET /api/public/dashboard/:uuid/field/:field-id/search/:search-field-id
Search for values of a Field that is referenced by a Card in a public Dashboard.
uuid
field-id
search-field-id
value
value must be a non-blank string.
limit
value may be nil, or if non-nil, value must be a valid integer greater than zero.
## `GET /api/public/dashboard/:uuid/field/:field-id/search/:search-field-id` Search for values of a Field that is referenced by a Card in a public Dashboard. ##### PARAMS: * **`uuid`** * **`field-id`** * **`search-field-id`** * **`value`** value must be a non-blank string. * **`limit`** value may be nil, or if non-nil, value must be a valid integer greater than zero.
GET /api/public/dashboard/:uuid/field/:field-id/values
Fetch FieldValues for a Field that is referenced by a Card in a public Dashboard.
uuid
field-id
## `GET /api/public/dashboard/:uuid/field/:field-id/values` Fetch FieldValues for a Field that is referenced by a Card in a public Dashboard. ##### PARAMS: * **`uuid`** * **`field-id`**
GET /api/public/oembed
oEmbed endpoint used to retreive embed code and metadata for a (public) Metabase URL.
url
value must be a non-blank string.
format
value may be nil, or if non-nil, value must be one of: json
.
maxheight
value may be nil, or if non-nil, value must be a valid integer.
maxwidth
value may be nil, or if non-nil, value must be a valid integer.
## `GET /api/public/oembed` oEmbed endpoint used to retreive embed code and metadata for a (public) Metabase URL. ##### PARAMS: * **`url`** value must be a non-blank string. * **`format`** value may be nil, or if non-nil, value must be one of: `json`. * **`maxheight`** value may be nil, or if non-nil, value must be a valid integer. * **`maxwidth`** value may be nil, or if non-nil, value must be a valid integer.
(public-card & conditions)
Return a public Card matching key-value CONDITIONS, removing all columns that should not be visible to the general public. Throws a 404 if the Card doesn't exist.
Return a public Card matching key-value CONDITIONS, removing all columns that should not be visible to the general public. Throws a 404 if the Card doesn't exist.
(public-dashboard & conditions)
Return a public Dashboard matching key-value CONDITIONS, removing all columns that should not be visible to the general public. Throws a 404 if the Dashboard doesn't exist.
Return a public Dashboard matching key-value CONDITIONS, removing all columns that should not be visible to the general public. Throws a 404 if the Dashboard doesn't exist.
(public-dashcard-results-async dashboard-id
card-id
parameters
&
{:keys [context]
:or {context :public-dashboard}})
Return the results of running a query with parameters
for Card with card-id
belonging to Dashboard with
dashboard-id
. Throws a 404 immediately if the Card isn't part of the Dashboard.
Otherwise returns channel for fetching results.
Return the results of running a query with `parameters` for Card with `card-id` belonging to Dashboard with `dashboard-id`. Throws a 404 immediately if the Card isn't part of the Dashboard. Otherwise returns channel for fetching results.
Ring routes for api/public: (GET_card_:uuid GET_card_:uuid_field_:field-id_values GET_dashboard_:uuid_field_:field-id_remapping_:remapped-id GET_dashboard_:uuid_field_:field-id_values GET_card_:uuid_field_:field-id_remapping_:remapped-id GET_card_:uuid_query_:export-format GET_card_:uuid_query GET_dashboard_:uuid_field_:field-id_search_:search-field-id GET_dashboard_:uuid GET_dashboard_:uuid_card_:card-id GET_oembed GET_card_:uuid_field_:field-id_search_:search-field-id)
Ring routes for api/public: (GET_card_:uuid GET_card_:uuid_field_:field-id_values GET_dashboard_:uuid_field_:field-id_remapping_:remapped-id GET_dashboard_:uuid_field_:field-id_values GET_card_:uuid_field_:field-id_remapping_:remapped-id GET_card_:uuid_query_:export-format GET_card_:uuid_query GET_dashboard_:uuid_field_:field-id_search_:search-field-id GET_dashboard_:uuid GET_dashboard_:uuid_card_:card-id GET_oembed GET_card_:uuid_field_:field-id_search_:search-field-id)
(run-query-for-card-with-id-async card-id parameters & options)
Run the query belonging to Card with card-id
with parameters
and other query options (e.g. :constraints
).
Returns core.async channel to fetch the results.
Run the query belonging to Card with `card-id` with `parameters` and other query options (e.g. `:constraints`). Returns core.async channel to fetch the results.
(search-card-fields card-id field-id search-id value limit)
Wrapper for metabase.api.field/search-values
for use with public/embedded Cards. See that functions
documentation for a more detailed explanation of exactly what this does.
Wrapper for `metabase.api.field/search-values` for use with public/embedded Cards. See that functions documentation for a more detailed explanation of exactly what this does.
(search-dashboard-fields dashboard-id field-id search-id value limit)
Wrapper for metabase.api.field/search-values
for use with public/embedded Dashboards. See that functions
documentation for a more detailed explanation of exactly what this does.
Wrapper for `metabase.api.field/search-values` for use with public/embedded Dashboards. See that functions documentation for a more detailed explanation of exactly what this does.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close