From 304faa15f1e5d4c6b2ba2a4729f878ed4b1cccf7 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea Date: Tue, 29 Nov 2022 14:31:24 +0100 Subject: [PATCH] Remove forward slash in api cmd examples --- docs/auth0_api.md | 4 ++-- internal/cli/api.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/auth0_api.md b/docs/auth0_api.md index 79e67e750..29686f903 100644 --- a/docs/auth0_api.md +++ b/docs/auth0_api.md @@ -24,8 +24,8 @@ auth0 api [flags] ### Examples ``` -auth0 api "/stats/daily" -q "from=20221101" -q "to=20221118" -auth0 api get "/tenants/settings" +auth0 api "stats/daily" -q "from=20221101" -q "to=20221118" +auth0 api get "tenants/settings" auth0 api clients --data "{\"name\":\"ssoTest\",\"app_type\":\"sso_integration\"}" ``` diff --git a/internal/cli/api.go b/internal/cli/api.go index 312ba8596..f928152c4 100644 --- a/internal/cli/api.go +++ b/internal/cli/api.go @@ -81,8 +81,8 @@ The method argument is optional, and when you don’t specify it, the command de "Auth0 Management API Docs:\n", apiDocsURL, "Available Methods:\n", strings.ToLower(strings.Join(apiValidMethods, ", ")), ), - Example: `auth0 api "/stats/daily" -q "from=20221101" -q "to=20221118" -auth0 api get "/tenants/settings" + Example: `auth0 api "stats/daily" -q "from=20221101" -q "to=20221118" +auth0 api get "tenants/settings" auth0 api clients --data "{\"name\":\"ssoTest\",\"app_type\":\"sso_integration\"}" `, RunE: apiCmdRun(cli, &inputs),