From c467d59a7eee5049b124c4841e45b1f7d15a15a9 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Tue, 15 Jun 2021 08:57:25 +0200 Subject: [PATCH] chore: update api index with note about content-type --- websitev2/docs/api/index.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/websitev2/docs/api/index.md b/websitev2/docs/api/index.md index 31777bf124..1ec201e210 100644 --- a/websitev2/docs/api/index.md +++ b/websitev2/docs/api/index.md @@ -20,7 +20,7 @@ With versions earlier than v4.0.0 and `insecure` authentication no authenticatio The internal API used by the Admin UI (unleash-frontend). Since v4.0.0 all operations require an [API token](/user_guide/api-token) with `Admin` level access: -With versions earlier than v4.0.0 and `insecure` authentication Basic Auth (with curl `-u myemail@test.com:`) is enough +With versions earlier than v4.0.0 and `insecure` authentication Basic Auth (with curl `-u myemail@test.com:`) is enough. - [Feature Toggles API](/api/admin/features) - [Strategies API](/api/admin/strategies) @@ -31,3 +31,11 @@ With versions earlier than v4.0.0 and `insecure` authentication Basic Auth (with ## System API's {#system-apis} - [Internal Backstage API](/api/internal/internal) + +### Content-Type {#contenttype} + +All endpoints require `application/json` as content type, so if you're using curl remember to add + +```bash +-H "Content-Type: application/json" +```