The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Remove `X-Metabase-Session` from autogenerated API docs in favor of `X-API-Key` (#71155)
Rodrigo López Dato198cd9a9a3eb
diff --git a/docs/installation-and-operation/serialization.md b/docs/installation-and-operation/serialization.mdindex ab3f5c36036..e3281b9c351 100644--- a/docs/installation-and-operation/serialization.md+++ b/docs/installation-and-operation/serialization.md@@ -635,7 +635,7 @@ tar -xvf metabase_data.tgz```shcurl \- -H 'x-api-key: YOUR_API_KEY' \+ -H 'X-API-Key: YOUR_API_KEY' \-X POST 'https://your-metabase-url/api/ee/serialization/export' \-o metabase_data.tgz```@@ -670,7 +670,7 @@ tar -xvf metabase_data.tgz```shcurl -X POST \- -H 'x-api-key: YOUR_API_KEY' \+ -H 'X-API-Key: YOUR_API_KEY' \-F 'file=@metabase_data.tgz' \'https://your-metabase-url/api/ee/serialization/import' \-o -diff --git a/docs/people-and-groups/api-keys.md b/docs/people-and-groups/api-keys.mdindex c8195058a93..7f5389be0d8 100644--- a/docs/people-and-groups/api-keys.md+++ b/docs/people-and-groups/api-keys.md@@ -77,7 +77,7 @@ Replace `YOUR_API_KEY` with the API key you generated above.```shcurl \--H 'x-api-key: YOUR_API_KEY' \+-H 'X-API-Key: YOUR_API_KEY' \-X GET 'http://localhost:3000/api/permissions/group'```@@ -99,7 +99,7 @@ const API_KEY = process.env.METABASE_API_KEY;const init = {headers: {"Content-Type": "application/json",- "X-API-KEY": API_KEY,+ "X-API-Key": API_KEY,},};diff --git a/docs/permissions/database-routing.md b/docs/permissions/database-routing.mdindex 7cd5e596fc0..5302851676b 100644--- a/docs/permissions/database-routing.md+++ b/docs/permissions/database-routing.md@@ -100,7 +100,7 @@ Here's a `curl` command to add a PostgreSQL database as a destination database.curl 'http://localhost:3000/api/ee/database-routing/mirror-database?check_connection_details=true' \--request POST \--header 'Content-Type: application/json' \- --header 'X-Api-Key: mb_CpkoZHvSB5R+P+WsuXWRbdT3WbVphFv/rgMX9UGux/4=' \+ --header 'X-API-Key: mb_CpkoZHvSB5R+P+WsuXWRbdT3WbVphFv/rgMX9UGux/4=' \--data '{"router_database_id": 2,"mirrors": [@@ -132,7 +132,7 @@ If you grab the payload from the browser's Network tab, you may see additional,curl 'http://localhost:3000/api/ee/database-routing/mirror-database?check_connection_details=true' \--request POST \--header 'Content-Type: application/json' \- --header 'X-Api-Key: mb_CpkoZHvSB5R+P+WsuXWRbdT3WbVphFv/rgMX9UGux/4=' \+ --header 'X-API-Key: mb_CpkoZHvSB5R+P+WsuXWRbdT3WbVphFv/rgMX9UGux/4=' \--data '{"router_database_id": 2,"mirrors": [diff --git a/src/metabase/api/open_api.clj b/src/metabase/api/open_api.cljindex da195941b00..822e75d310c 100644--- a/src/metabase/api/open_api.clj+++ b/src/metabase/api/open_api.clj@@ -349,13 +349,13 @@:version (:tag config/mb-version-info):license {:name "AGPL-3.0":url "https://www.gnu.org/licenses/agpl-3.0.html"}}- ;; Apply session auth to all endpoints by default+ ;; Apply API key authentication to all endpoints by default:security [{"ApiKeyAuth" []}])(assoc-in [:components :securitySchemes]{"ApiKeyAuth" {:type "apiKey":in "header"- :name "X-Metabase-Session"- :description "Session token obtained from /api/session endpoint"}}))))+ :name "X-API-Key"+ :description "API key for authentication"}}))))#_:clj-kondo/ignore(comment