feat: request snippets plugin (#6910)
This commit is contained in:
@@ -65,6 +65,8 @@ Parameter name | Docker variable | Description
|
||||
<a name="syntaxHighlight.activate"></a>`syntaxHighlight.activate` | _Unavailable_ | `Boolean=true`. Whether syntax highlighting should be activated or not.
|
||||
<a name="syntaxHighlight.theme"></a>`syntaxHighlight.theme` | _Unavailable_ | `String=["agate"*, "arta", "monokai", "nord", "obsidian", "tomorrow-night"]`. [Highlight.js](https://highlightjs.org/static/demo/) syntax coloring theme to use. (Only these 6 styles are available.)
|
||||
<a name="tryItOutEnabled"></a>`tryItOutEnabled` | `TRY_IT_OUT_ENABLED` | `Boolean=false`. Controls whether the "Try it out" section should be enabled by default.
|
||||
<a name="requestSnippets"></a>`requestSnippets` | _Unavailable_ | `Object`. This is the default configuration section for the the requestSnippets plugin.<br>requestSnippets: {<br> generators: {<br> "curl_bash": {<br> title: "cURL (bash)",<br> syntax: "bash"<br> },<br> "curl_powershell": {<br> title: "cURL (PowerShell)",<br> syntax: "powershell"<br> },<br> "curl_cmd": {<br> title: "cURL (CMD)",<br> syntax: "bash"<br> },<br> "node_native": {<br> title: "Node.js (Native)",<br> syntax: "javascript"<br> },<br> },<br> defaultExpanded: true,<br> languagesMask: null, // e.g. only show curl bash = \["curl_bash"\]<br>},
|
||||
|
||||
|
||||
##### Network
|
||||
|
||||
@@ -168,4 +170,4 @@ SPEC="{ \"openapi\": \"3.0.0\" }"
|
||||
```sh
|
||||
SUPPORTED_SUBMIT_METHODS=['get', 'post']
|
||||
URLS=[ { url: 'http://petstore.swagger.io/v2/swagger.json', name: 'Petstore' } ]
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user