Question

Get all explores within a model via api?

  • 31 August 2018
  • 2 replies
  • 159 views

Hi - is there a way to retrieve all explores within a model via the api?


2 replies

Userlevel 4
Badge

GET /lookml_models/{lookml_model_name} returns an array of all the explores in the model.


Sample response body:


{
"name": "sandbox",
"project_name": "sandbox",
"unlimited_db_connections": false,
"has_content": true,
"label": "Sandbox",
"explores": [
{
"label": "Events",
"hidden": true,
"group_label": "Sandbox",
"name": "events",
"can": {}
},
{
"label": "Inventory Items",
"hidden": true,
"group_label": "Sandbox",
"name": "inventory_items",
"can": {}
},
{
"label": "Order Items",
"hidden": true,
"group_label": "Sandbox",
"name": "order_items",
"can": {}
},
{
"label": "Orders",
"hidden": true,
"group_label": "Sandbox",
"name": "orders",
"can": {}
},
{
"label": "Products",
"hidden": true,
"group_label": "Sandbox",
"name": "products",
"can": {}
},
{
"label": "Schema Migrations",
"hidden": true,
"group_label": "Sandbox",
"name": "schema_migrations",
"can": {}
},
{
"label": "User Data",
"hidden": true,
"group_label": "Sandbox",
"name": "user_data",
"can": {}
},
{
"label": "Users",
"hidden": true,
"group_label": "Sandbox",
"name": "users",
"can": {}
},
{
"label": "Users Nn",
"hidden": true,
"group_label": "Sandbox",
"name": "users_nn",
"can": {}
}
],
"allowed_db_connection_names": [
"thelook"
],
"can": {
"index": true,
"show": true,
"create": true,
"update": true,
"destroy": true
}
}

Thanks Brecht . Have a nice day.

Reply