diff --git a/web/src/components/Layout.astro b/web/src/components/Layout.astro index 94e41c5..d6cdf72 100644 --- a/web/src/components/Layout.astro +++ b/web/src/components/Layout.astro @@ -30,6 +30,7 @@ const hubUrl = 'https://jongio.github.io/azd-extensions/'; const navLinks = [ { label: 'Getting Started', href: `${base}getting-started` }, { label: 'Examples', href: `${base}examples` }, + { label: 'Builder', href: `${base}builder` }, { label: 'Reference', href: `${base}reference` }, ]; --- diff --git a/web/src/pages/builder.astro b/web/src/pages/builder.astro new file mode 100644 index 0000000..8c1bee4 --- /dev/null +++ b/web/src/pages/builder.astro @@ -0,0 +1,358 @@ +--- +import Layout from '../components/Layout.astro'; + +const description = 'Build an azd rest command by choosing method, URL, auth, body, query, output, and diagnostic flags.'; +--- + + + + + Command Builder + + Choose common options and copy a ready-to-run azd rest command. + + + + + + + Request + + + Method + + GET + POST + PUT + PATCH + DELETE + HEAD + OPTIONS + + + + + URL + + + + + API version + + + + + + + Authentication and output + + + Auth mode + + Auto-detect Azure scope + No auth + Custom scope + + + + + Custom scope + + + + + Format + + auto + json + raw + table + jsonl + yaml + csv + + + + + + + Body, headers, and query + + + JMESPath query + + + + + Output file + + + + + + Request body + + + + + Headers, one per line + + + + + + Common switches + + Paginate + Fail on HTTP errors + Verbose diagnostics + Include response headers + Compact JSON + Raw query output + + + + + + + + + + + + diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro index 069d0a4..cc18f15 100644 --- a/web/src/pages/index.astro +++ b/web/src/pages/index.astro @@ -59,6 +59,11 @@ const description = "azd rest - Make authenticated Azure REST API calls with aut title="Response Formatting" description="Pretty-printed JSON by default. Raw, compact JSON, or binary output modes. Save responses to file." /> + See more examples → + · + Build a command →
+ Choose common options and copy a ready-to-run azd rest command. +
azd rest