mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
[htmlDoc2] curl sample - conditionally add 'apiKey'. (#3561)
This commit is contained in:
parent
d2d5553a45
commit
eefb2152e9
@ -266,7 +266,7 @@ function loadGoogleFontCss() {
|
|||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-{{baseName}}-{{nickname}}-0-curl">
|
<div class="tab-pane active" id="examples-{{baseName}}-{{nickname}}-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">
|
<pre class="prettyprint"><code class="language-bsh">
|
||||||
curl -X <span style="text-transform: uppercase;">{{httpMethod}}</span> -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "{{basePath}}{{path}}{{#hasQueryParams}}?{{#queryParams}}{{^-first}}&{{/-first}}{{paramName}}={{vendorExtensions.x-eg}}{{/queryParams}}{{/hasQueryParams}}"
|
curl -X <span style="text-transform: uppercase;">{{httpMethod}}</span>{{#isApiKey}} -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]"{{/isApiKey}} "{{basePath}}{{path}}{{#hasQueryParams}}?{{#queryParams}}{{^-first}}&{{/-first}}{{paramName}}={{vendorExtensions.x-eg}}{{/queryParams}}{{/hasQueryParams}}"
|
||||||
|
|
||||||
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user