Skip to content
Snippets Groups Projects
Commit b1cbdc1d authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #945 from metabase/database_metadata_endpoint

new api endpoint for GET /api/meta/db/:id/metadata
parents 1f822bce cd44c2b8
No related branches found
No related tags found
No related merge requests found
......@@ -85,10 +85,11 @@
(defendpoint GET "/:id/metadata"
"Get metadata about a `Database`, including all of its `Tables` and `Fields`.
Returns DB, fields, field FKs, and field values."
Returns DB, fields, and field values."
[id]
(->404 (Database id)
read-check
;; TODO - this is a bit slow due to the nested hydration. needs some optimizing.
(hydrate [:tables [:fields :target :values]])))
(defendpoint GET "/:id/autocomplete_suggestions"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment