docusaurus-theme-openapi-docs 2.0.0-beta.2 → 2.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/lib/index.d.ts +2 -0
  2. package/lib/index.js +53 -55
  3. package/lib/markdown/createDescription.d.ts +1 -0
  4. package/lib/markdown/createDescription.js +8 -11
  5. package/lib/markdown/schema.d.ts +3 -0
  6. package/lib/markdown/schema.js +138 -139
  7. package/lib/markdown/utils.d.ts +8 -0
  8. package/lib/markdown/utils.js +36 -42
  9. package/lib/theme/ApiDemoPanel/Accept/index.d.ts +3 -0
  10. package/lib/theme/ApiDemoPanel/Accept/index.js +26 -20
  11. package/lib/theme/ApiDemoPanel/Accept/slice.d.ts +11 -0
  12. package/lib/theme/ApiDemoPanel/Accept/slice.js +8 -17
  13. package/lib/theme/ApiDemoPanel/ApiCodeBlock/Container/_Container.scss +7 -0
  14. package/lib/theme/ApiDemoPanel/ApiCodeBlock/Container/index.js +29 -0
  15. package/lib/theme/ApiDemoPanel/ApiCodeBlock/Content/Element.js +30 -0
  16. package/lib/theme/ApiDemoPanel/ApiCodeBlock/Content/String.js +131 -0
  17. package/lib/theme/ApiDemoPanel/ApiCodeBlock/Content/_Content.scss +91 -0
  18. package/lib/theme/ApiDemoPanel/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
  19. package/lib/theme/ApiDemoPanel/ApiCodeBlock/CopyButton/index.js +74 -0
  20. package/lib/theme/ApiDemoPanel/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
  21. package/lib/theme/ApiDemoPanel/ApiCodeBlock/ExitButton/index.js +47 -0
  22. package/lib/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
  23. package/lib/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js +165 -0
  24. package/lib/theme/ApiDemoPanel/ApiCodeBlock/Line/_Line.scss +46 -0
  25. package/lib/theme/ApiDemoPanel/ApiCodeBlock/Line/index.js +47 -0
  26. package/lib/theme/ApiDemoPanel/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
  27. package/lib/theme/ApiDemoPanel/ApiCodeBlock/WordWrapButton/index.js +44 -0
  28. package/lib/theme/ApiDemoPanel/ApiCodeBlock/index.js +40 -0
  29. package/lib/theme/ApiDemoPanel/Authorization/auth-types.d.ts +3 -0
  30. package/lib/theme/ApiDemoPanel/Authorization/auth-types.js +4 -10
  31. package/lib/theme/ApiDemoPanel/Authorization/index.d.ts +3 -0
  32. package/lib/theme/ApiDemoPanel/Authorization/index.js +134 -84
  33. package/lib/theme/ApiDemoPanel/Authorization/slice.d.ts +40 -0
  34. package/lib/theme/ApiDemoPanel/Authorization/slice.js +30 -47
  35. package/lib/theme/ApiDemoPanel/Body/index.d.ts +10 -0
  36. package/lib/theme/ApiDemoPanel/Body/index.js +250 -158
  37. package/lib/theme/ApiDemoPanel/Body/slice.d.ts +82 -0
  38. package/lib/theme/ApiDemoPanel/Body/slice.js +39 -44
  39. package/lib/theme/ApiDemoPanel/CodeTabs/_CodeTabs.scss +158 -105
  40. package/lib/theme/ApiDemoPanel/CodeTabs/index.js +25 -7
  41. package/lib/theme/ApiDemoPanel/ContentType/index.d.ts +3 -0
  42. package/lib/theme/ApiDemoPanel/ContentType/index.js +28 -20
  43. package/lib/theme/ApiDemoPanel/ContentType/slice.d.ts +11 -0
  44. package/lib/theme/ApiDemoPanel/ContentType/slice.js +8 -17
  45. package/lib/theme/ApiDemoPanel/Curl/index.d.ts +20 -0
  46. package/lib/theme/ApiDemoPanel/Curl/index.js +340 -172
  47. package/lib/theme/ApiDemoPanel/Export/index.d.ts +3 -0
  48. package/lib/theme/ApiDemoPanel/Export/index.js +44 -34
  49. package/lib/theme/ApiDemoPanel/FloatingButton/index.d.ts +8 -0
  50. package/lib/theme/ApiDemoPanel/FloatingButton/index.js +20 -21
  51. package/lib/theme/ApiDemoPanel/FormFileUpload/index.d.ts +7 -0
  52. package/lib/theme/ApiDemoPanel/FormFileUpload/index.js +137 -58
  53. package/lib/theme/ApiDemoPanel/FormItem/_FormItem.scss +11 -2
  54. package/lib/theme/ApiDemoPanel/FormItem/index.d.ts +10 -0
  55. package/lib/theme/ApiDemoPanel/FormItem/index.js +34 -29
  56. package/lib/theme/ApiDemoPanel/FormMultiSelect/_FormMultiSelect.scss +8 -4
  57. package/lib/theme/ApiDemoPanel/FormMultiSelect/index.d.ts +9 -0
  58. package/lib/theme/ApiDemoPanel/FormMultiSelect/index.js +32 -25
  59. package/lib/theme/ApiDemoPanel/FormSelect/_FormSelect.scss +3 -3
  60. package/lib/theme/ApiDemoPanel/FormSelect/index.d.ts +8 -0
  61. package/lib/theme/ApiDemoPanel/FormSelect/index.js +24 -22
  62. package/lib/theme/ApiDemoPanel/FormTextInput/_FormTextInput.scss +24 -5
  63. package/lib/theme/ApiDemoPanel/FormTextInput/index.d.ts +9 -0
  64. package/lib/theme/ApiDemoPanel/FormTextInput/index.js +60 -14
  65. package/lib/theme/ApiDemoPanel/LiveEditor/index.d.ts +6 -0
  66. package/lib/theme/ApiDemoPanel/LiveEditor/index.js +135 -42
  67. package/lib/theme/ApiDemoPanel/MethodEndpoint/_MethodEndpoint.scss +16 -0
  68. package/lib/theme/ApiDemoPanel/MethodEndpoint/index.d.ts +7 -0
  69. package/lib/theme/ApiDemoPanel/MethodEndpoint/index.js +47 -38
  70. package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamArrayFormItem.d.ts +6 -0
  71. package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamArrayFormItem.js +194 -0
  72. package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamBooleanFormItem.d.ts +6 -0
  73. package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +63 -0
  74. package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.d.ts +6 -0
  75. package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +89 -0
  76. package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamSelectFormItem.d.ts +6 -0
  77. package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamSelectFormItem.js +63 -0
  78. package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamTextFormItem.d.ts +6 -0
  79. package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamTextFormItem.js +38 -0
  80. package/lib/theme/ApiDemoPanel/ParamOptions/_ParamOptions.scss +9 -28
  81. package/lib/theme/ApiDemoPanel/ParamOptions/index.d.ts +7 -0
  82. package/lib/theme/ApiDemoPanel/ParamOptions/index.js +193 -198
  83. package/lib/theme/ApiDemoPanel/ParamOptions/slice.d.ts +17 -0
  84. package/lib/theme/ApiDemoPanel/ParamOptions/slice.js +9 -18
  85. package/lib/theme/ApiDemoPanel/Request/_Request.scss +93 -20
  86. package/lib/theme/ApiDemoPanel/Request/index.d.ts +6 -0
  87. package/lib/theme/ApiDemoPanel/Request/index.js +342 -51
  88. package/lib/theme/ApiDemoPanel/Request/makeRequest.d.ts +4 -0
  89. package/{lib-next/theme/ApiDemoPanel/Execute → lib/theme/ApiDemoPanel/Request}/makeRequest.js +3 -4
  90. package/lib/theme/ApiDemoPanel/Response/_Response.scss +54 -0
  91. package/lib/theme/ApiDemoPanel/Response/index.d.ts +6 -0
  92. package/lib/theme/ApiDemoPanel/Response/index.js +151 -70
  93. package/lib/theme/ApiDemoPanel/Response/slice.d.ts +17 -0
  94. package/lib/theme/ApiDemoPanel/Response/slice.js +25 -30
  95. package/lib/theme/ApiDemoPanel/SecuritySchemes/index.d.ts +3 -0
  96. package/lib/theme/ApiDemoPanel/SecuritySchemes/index.js +349 -226
  97. package/lib/theme/ApiDemoPanel/Server/_Server.scss +10 -0
  98. package/lib/theme/ApiDemoPanel/Server/index.d.ts +3 -0
  99. package/lib/theme/ApiDemoPanel/Server/index.js +155 -71
  100. package/lib/theme/ApiDemoPanel/Server/slice.d.ts +13 -0
  101. package/lib/theme/ApiDemoPanel/Server/slice.js +15 -22
  102. package/lib/theme/ApiDemoPanel/buildPostmanRequest.d.ts +20 -0
  103. package/lib/theme/ApiDemoPanel/buildPostmanRequest.js +136 -154
  104. package/lib/theme/ApiDemoPanel/index.d.ts +7 -0
  105. package/lib/theme/ApiDemoPanel/index.js +26 -27
  106. package/lib/theme/ApiDemoPanel/persistanceMiddleware.d.ts +3 -0
  107. package/lib/theme/ApiDemoPanel/persistanceMiddleware.js +15 -19
  108. package/lib/theme/ApiDemoPanel/storage-utils.d.ts +4 -0
  109. package/lib/theme/ApiDemoPanel/storage-utils.js +14 -13
  110. package/lib/theme/ApiItem/Layout/index.d.ts +4 -0
  111. package/lib/theme/ApiItem/Layout/index.js +78 -56
  112. package/lib/theme/ApiItem/hooks.d.ts +12 -0
  113. package/lib/theme/ApiItem/hooks.js +5 -10
  114. package/lib/theme/ApiItem/index.d.ts +4 -0
  115. package/lib/theme/ApiItem/index.js +136 -115
  116. package/lib/theme/ApiItem/store.d.ts +46 -0
  117. package/lib/theme/ApiItem/store.js +44 -34
  118. package/lib/theme/ApiLogo/index.d.ts +2 -0
  119. package/lib/theme/ApiLogo/index.js +34 -32
  120. package/lib/theme/ApiTabs/_ApiTabs.scss +29 -22
  121. package/lib/theme/ApiTabs/index.js +4 -3
  122. package/lib/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +16 -13
  123. package/lib/theme/Markdown/Details/_Details.scss +82 -3
  124. package/lib/theme/MimeTabs/_MimeTabs.scss +13 -8
  125. package/lib/theme/ParamsItem/_ParamsItem.scss +23 -8
  126. package/lib/theme/ParamsItem/index.js +9 -6
  127. package/lib/theme/SchemaItem/_SchemaItem.scss +46 -11
  128. package/lib/theme/SchemaItem/index.js +23 -12
  129. package/lib/theme/SchemaTabs/_SchemaTabs.scss +23 -17
  130. package/lib/theme/SchemaTabs/index.js +50 -54
  131. package/lib/theme/styles.scss +41 -4
  132. package/lib/types.d.ts +157 -0
  133. package/lib/types.js +8 -1
  134. package/package.json +13 -21
  135. package/src/index.ts +31 -40
  136. package/src/theme/ApiDemoPanel/ApiCodeBlock/Container/_Container.scss +7 -0
  137. package/src/theme/ApiDemoPanel/ApiCodeBlock/Container/index.js +29 -0
  138. package/src/theme/ApiDemoPanel/ApiCodeBlock/Content/Element.js +30 -0
  139. package/src/theme/ApiDemoPanel/ApiCodeBlock/Content/String.js +131 -0
  140. package/src/theme/ApiDemoPanel/ApiCodeBlock/Content/_Content.scss +91 -0
  141. package/src/theme/ApiDemoPanel/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
  142. package/src/theme/ApiDemoPanel/ApiCodeBlock/CopyButton/index.js +74 -0
  143. package/src/theme/ApiDemoPanel/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
  144. package/src/theme/ApiDemoPanel/ApiCodeBlock/ExitButton/index.js +47 -0
  145. package/src/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
  146. package/src/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js +165 -0
  147. package/src/theme/ApiDemoPanel/ApiCodeBlock/Line/_Line.scss +46 -0
  148. package/src/theme/ApiDemoPanel/ApiCodeBlock/Line/index.js +47 -0
  149. package/src/theme/ApiDemoPanel/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
  150. package/src/theme/ApiDemoPanel/ApiCodeBlock/WordWrapButton/index.js +44 -0
  151. package/src/theme/ApiDemoPanel/ApiCodeBlock/index.js +40 -0
  152. package/src/theme/ApiDemoPanel/Body/index.tsx +38 -29
  153. package/src/theme/ApiDemoPanel/CodeTabs/_CodeTabs.scss +158 -105
  154. package/src/theme/ApiDemoPanel/CodeTabs/index.js +25 -7
  155. package/src/theme/ApiDemoPanel/Curl/index.tsx +86 -21
  156. package/src/theme/ApiDemoPanel/FormItem/_FormItem.scss +11 -2
  157. package/src/theme/ApiDemoPanel/FormItem/index.tsx +9 -11
  158. package/src/theme/ApiDemoPanel/FormMultiSelect/_FormMultiSelect.scss +8 -4
  159. package/src/theme/ApiDemoPanel/FormMultiSelect/index.tsx +7 -2
  160. package/src/theme/ApiDemoPanel/FormSelect/_FormSelect.scss +3 -3
  161. package/src/theme/ApiDemoPanel/FormTextInput/_FormTextInput.scss +24 -5
  162. package/src/theme/ApiDemoPanel/FormTextInput/index.tsx +58 -10
  163. package/src/theme/ApiDemoPanel/LiveEditor/index.tsx +53 -14
  164. package/src/theme/ApiDemoPanel/MethodEndpoint/_MethodEndpoint.scss +16 -0
  165. package/src/theme/ApiDemoPanel/MethodEndpoint/index.tsx +12 -9
  166. package/src/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx +153 -0
  167. package/src/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +64 -0
  168. package/src/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +86 -0
  169. package/src/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +65 -0
  170. package/src/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamTextFormItem.tsx +38 -0
  171. package/src/theme/ApiDemoPanel/ParamOptions/_ParamOptions.scss +9 -28
  172. package/src/theme/ApiDemoPanel/ParamOptions/index.tsx +8 -196
  173. package/src/theme/ApiDemoPanel/Request/_Request.scss +93 -20
  174. package/src/theme/ApiDemoPanel/Request/index.tsx +245 -28
  175. package/src/theme/ApiDemoPanel/Response/_Response.scss +54 -0
  176. package/src/theme/ApiDemoPanel/Response/index.tsx +51 -31
  177. package/src/theme/ApiDemoPanel/SecuritySchemes/index.tsx +5 -3
  178. package/src/theme/ApiDemoPanel/Server/_Server.scss +10 -0
  179. package/src/theme/ApiDemoPanel/Server/index.tsx +8 -11
  180. package/src/theme/ApiDemoPanel/index.tsx +4 -6
  181. package/src/theme/ApiItem/index.tsx +2 -2
  182. package/src/theme/ApiTabs/_ApiTabs.scss +29 -22
  183. package/src/theme/ApiTabs/index.js +4 -3
  184. package/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +16 -13
  185. package/src/theme/Markdown/Details/_Details.scss +82 -3
  186. package/src/theme/MimeTabs/_MimeTabs.scss +13 -8
  187. package/src/theme/ParamsItem/_ParamsItem.scss +23 -8
  188. package/src/theme/ParamsItem/index.js +9 -6
  189. package/src/theme/SchemaItem/_SchemaItem.scss +46 -11
  190. package/src/theme/SchemaItem/index.js +23 -12
  191. package/src/theme/SchemaTabs/_SchemaTabs.scss +23 -17
  192. package/src/theme/SchemaTabs/index.js +50 -54
  193. package/src/theme/styles.scss +41 -4
  194. package/src/theme-openapi.d.ts +44 -1
  195. package/tsconfig.json +6 -3
  196. package/lib/postman-code-generators.d.ts +0 -9
  197. package/lib/react-magic-dropzone.d.ts +0 -9
  198. package/lib/theme/ApiDemoPanel/Execute/index.js +0 -155
  199. package/lib/theme/ApiDemoPanel/Execute/makeRequest.js +0 -181
  200. package/lib/theme/ApiDemoPanel/postman-collection.d.ts +0 -10
  201. package/lib/theme/ApiDemoPanel/react-modal.d.ts +0 -8
  202. package/lib/theme-classic.d.ts +0 -13
  203. package/lib/theme-openapi.d.ts +0 -234
  204. package/lib/theme-translations.d.ts +0 -9
  205. package/lib-next/index.js +0 -68
  206. package/lib-next/markdown/createDescription.js +0 -13
  207. package/lib-next/markdown/schema.js +0 -153
  208. package/lib-next/markdown/utils.js +0 -44
  209. package/lib-next/postman-code-generators.d.ts +0 -9
  210. package/lib-next/react-magic-dropzone.d.ts +0 -9
  211. package/lib-next/theme/ApiDemoPanel/Accept/index.js +0 -30
  212. package/lib-next/theme/ApiDemoPanel/Accept/slice.js +0 -20
  213. package/lib-next/theme/ApiDemoPanel/Authorization/auth-types.js +0 -29
  214. package/lib-next/theme/ApiDemoPanel/Authorization/index.js +0 -142
  215. package/lib-next/theme/ApiDemoPanel/Authorization/slice.js +0 -99
  216. package/lib-next/theme/ApiDemoPanel/Body/index.js +0 -328
  217. package/lib-next/theme/ApiDemoPanel/Body/json2xml.js +0 -43
  218. package/lib-next/theme/ApiDemoPanel/Body/slice.js +0 -88
  219. package/lib-next/theme/ApiDemoPanel/CodeTabs/_CodeTabs.scss +0 -238
  220. package/lib-next/theme/ApiDemoPanel/CodeTabs/index.js +0 -156
  221. package/lib-next/theme/ApiDemoPanel/ContentType/index.js +0 -30
  222. package/lib-next/theme/ApiDemoPanel/ContentType/slice.js +0 -20
  223. package/lib-next/theme/ApiDemoPanel/Curl/index.js +0 -281
  224. package/lib-next/theme/ApiDemoPanel/Curl/languages.json +0 -1386
  225. package/lib-next/theme/ApiDemoPanel/Execute/index.js +0 -178
  226. package/lib-next/theme/ApiDemoPanel/Export/index.js +0 -45
  227. package/lib-next/theme/ApiDemoPanel/FloatingButton/_FloatingButton.scss +0 -25
  228. package/lib-next/theme/ApiDemoPanel/FloatingButton/index.js +0 -21
  229. package/lib-next/theme/ApiDemoPanel/FormFileUpload/_FormFileUpload.scss +0 -72
  230. package/lib-next/theme/ApiDemoPanel/FormFileUpload/index.js +0 -107
  231. package/lib-next/theme/ApiDemoPanel/FormItem/_FormItem.scss +0 -12
  232. package/lib-next/theme/ApiDemoPanel/FormItem/index.js +0 -35
  233. package/lib-next/theme/ApiDemoPanel/FormMultiSelect/_FormMultiSelect.scss +0 -26
  234. package/lib-next/theme/ApiDemoPanel/FormMultiSelect/index.js +0 -44
  235. package/lib-next/theme/ApiDemoPanel/FormSelect/_FormSelect.scss +0 -43
  236. package/lib-next/theme/ApiDemoPanel/FormSelect/index.js +0 -29
  237. package/lib-next/theme/ApiDemoPanel/FormTextInput/_FormTextInput.scss +0 -15
  238. package/lib-next/theme/ApiDemoPanel/FormTextInput/index.js +0 -23
  239. package/lib-next/theme/ApiDemoPanel/LiveEditor/_LiveEditor.scss +0 -15
  240. package/lib-next/theme/ApiDemoPanel/LiveEditor/index.js +0 -58
  241. package/lib-next/theme/ApiDemoPanel/MethodEndpoint/_MethodEndpoint.scss +0 -6
  242. package/lib-next/theme/ApiDemoPanel/MethodEndpoint/index.js +0 -68
  243. package/lib-next/theme/ApiDemoPanel/ParamOptions/_ParamOptions.scss +0 -141
  244. package/lib-next/theme/ApiDemoPanel/ParamOptions/index.js +0 -299
  245. package/lib-next/theme/ApiDemoPanel/ParamOptions/slice.js +0 -23
  246. package/lib-next/theme/ApiDemoPanel/Request/_Request.scss +0 -48
  247. package/lib-next/theme/ApiDemoPanel/Request/index.js +0 -59
  248. package/lib-next/theme/ApiDemoPanel/Response/_Response.scss +0 -27
  249. package/lib-next/theme/ApiDemoPanel/Response/index.js +0 -122
  250. package/lib-next/theme/ApiDemoPanel/Response/slice.js +0 -42
  251. package/lib-next/theme/ApiDemoPanel/SecuritySchemes/index.js +0 -274
  252. package/lib-next/theme/ApiDemoPanel/Server/_Server.scss +0 -16
  253. package/lib-next/theme/ApiDemoPanel/Server/index.js +0 -131
  254. package/lib-next/theme/ApiDemoPanel/Server/slice.js +0 -28
  255. package/lib-next/theme/ApiDemoPanel/buildPostmanRequest.js +0 -298
  256. package/lib-next/theme/ApiDemoPanel/index.js +0 -25
  257. package/lib-next/theme/ApiDemoPanel/persistanceMiddleware.js +0 -58
  258. package/lib-next/theme/ApiDemoPanel/postman-collection.d.ts +0 -10
  259. package/lib-next/theme/ApiDemoPanel/react-modal.d.ts +0 -8
  260. package/lib-next/theme/ApiDemoPanel/storage-utils.js +0 -33
  261. package/lib-next/theme/ApiItem/Layout/index.js +0 -68
  262. package/lib-next/theme/ApiItem/Layout/styles.module.css +0 -17
  263. package/lib-next/theme/ApiItem/hooks.js +0 -10
  264. package/lib-next/theme/ApiItem/index.js +0 -150
  265. package/lib-next/theme/ApiItem/store.js +0 -38
  266. package/lib-next/theme/ApiLogo/index.js +0 -48
  267. package/lib-next/theme/ApiTabs/_ApiTabs.scss +0 -133
  268. package/lib-next/theme/ApiTabs/index.js +0 -191
  269. package/lib-next/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +0 -94
  270. package/lib-next/theme/DiscriminatorTabs/index.js +0 -185
  271. package/lib-next/theme/Markdown/Details/_Details.scss +0 -40
  272. package/lib-next/theme/MimeTabs/_MimeTabs.scss +0 -64
  273. package/lib-next/theme/MimeTabs/index.js +0 -221
  274. package/lib-next/theme/ParamsItem/_ParamsItem.scss +0 -39
  275. package/lib-next/theme/ParamsItem/index.js +0 -133
  276. package/lib-next/theme/ResponseSamples/_ResponseSamples.scss +0 -3
  277. package/lib-next/theme/ResponseSamples/index.js +0 -22
  278. package/lib-next/theme/SchemaItem/_SchemaItem.scss +0 -53
  279. package/lib-next/theme/SchemaItem/index.js +0 -112
  280. package/lib-next/theme/SchemaTabs/_SchemaTabs.scss +0 -58
  281. package/lib-next/theme/SchemaTabs/index.js +0 -186
  282. package/lib-next/theme/styles.scss +0 -123
  283. package/lib-next/theme-classic.d.ts +0 -13
  284. package/lib-next/theme-openapi.d.ts +0 -234
  285. package/lib-next/theme-translations.d.ts +0 -9
  286. package/lib-next/types.js +0 -1
  287. package/src/theme/ApiDemoPanel/Execute/index.tsx +0 -200
  288. /package/src/theme/ApiDemoPanel/{Execute → Request}/makeRequest.ts +0 -0
@@ -1,1386 +0,0 @@
1
- [
2
- {
3
- "key": "csharp",
4
- "label": "C#",
5
- "syntax_mode": "csharp",
6
- "variants": [
7
- {
8
- "key": "RestSharp",
9
- "options": [
10
- {
11
- "name": "Include boilerplate",
12
- "id": "includeBoilerplate",
13
- "type": "boolean",
14
- "default": false,
15
- "description": "Include class definition and import statements in snippet"
16
- },
17
- {
18
- "name": "Set indentation count",
19
- "id": "indentCount",
20
- "type": "positiveInteger",
21
- "default": 2,
22
- "description": "Set the number of indentation characters to add per code level"
23
- },
24
- {
25
- "name": "Set indentation type",
26
- "id": "indentType",
27
- "type": "enum",
28
- "availableOptions": ["Tab", "Space"],
29
- "default": "Space",
30
- "description": "Select the character used to indent lines of code"
31
- },
32
- {
33
- "name": "Set request timeout",
34
- "id": "requestTimeout",
35
- "type": "positiveInteger",
36
- "default": 0,
37
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
38
- },
39
- {
40
- "name": "Follow redirects",
41
- "id": "followRedirect",
42
- "type": "boolean",
43
- "default": true,
44
- "description": "Automatically follow HTTP redirects"
45
- },
46
- {
47
- "name": "Trim request body fields",
48
- "id": "trimRequestBody",
49
- "type": "boolean",
50
- "default": false,
51
- "description": "Remove white space and additional lines that may affect the server's response"
52
- }
53
- ]
54
- }
55
- ]
56
- },
57
- {
58
- "key": "curl",
59
- "label": "cURL",
60
- "syntax_mode": "powershell",
61
- "variants": [
62
- {
63
- "key": "cURL",
64
- "options": [
65
- {
66
- "name": "Generate multiline snippet",
67
- "id": "multiLine",
68
- "type": "boolean",
69
- "default": true,
70
- "description": "Split cURL command across multiple lines"
71
- },
72
- {
73
- "name": "Use long form options",
74
- "id": "longFormat",
75
- "type": "boolean",
76
- "default": true,
77
- "description": "Use the long form for cURL options (--header instead of -H)"
78
- },
79
- {
80
- "name": "Line continuation character",
81
- "id": "lineContinuationCharacter",
82
- "availableOptions": ["\\", "^", "`"],
83
- "type": "enum",
84
- "default": "\\",
85
- "description": "Set a character used to mark the continuation of a statement on the next line (generally, \\ for OSX/Linux, ^ for Windows cmd and ` for Powershell)"
86
- },
87
- {
88
- "name": "Quote Type",
89
- "id": "quoteType",
90
- "availableOptions": ["single", "double"],
91
- "type": "enum",
92
- "default": "single",
93
- "description": "String denoting the quote type to use (single or double) for URL (Use double quotes when running curl in cmd.exe and single quotes for the rest)"
94
- },
95
- {
96
- "name": "Set request timeout (in seconds)",
97
- "id": "requestTimeoutInSeconds",
98
- "type": "positiveInteger",
99
- "default": 0,
100
- "description": "Set number of seconds the request should wait for a response before timing out (use 0 for infinity)"
101
- },
102
- {
103
- "name": "Follow redirects",
104
- "id": "followRedirect",
105
- "type": "boolean",
106
- "default": true,
107
- "description": "Automatically follow HTTP redirects"
108
- },
109
- {
110
- "name": "Trim request body fields",
111
- "id": "trimRequestBody",
112
- "type": "boolean",
113
- "default": false,
114
- "description": "Remove white space and additional lines that may affect the server's response"
115
- },
116
- {
117
- "name": "Use Silent Mode",
118
- "id": "silent",
119
- "type": "boolean",
120
- "default": false,
121
- "description": "Display the requested data without showing the cURL progress meter or error messages"
122
- }
123
- ]
124
- }
125
- ]
126
- },
127
- {
128
- "key": "dart",
129
- "label": "Dart",
130
- "syntax_mode": "dart",
131
- "variants": [
132
- {
133
- "key": "http",
134
- "options": [
135
- {
136
- "name": "Set indentation count",
137
- "id": "indentCount",
138
- "type": "positiveInteger",
139
- "default": 2,
140
- "description": "Set the number of indentation characters to add per code level"
141
- },
142
- {
143
- "name": "Set indentation type",
144
- "id": "indentType",
145
- "type": "enum",
146
- "availableOptions": ["Tab", "Space"],
147
- "default": "Space",
148
- "description": "Select the character used to indent lines of code"
149
- },
150
- {
151
- "name": "Set request timeout",
152
- "id": "requestTimeout",
153
- "type": "positiveInteger",
154
- "default": 0,
155
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
156
- },
157
- {
158
- "name": "Trim request body fields",
159
- "id": "trimRequestBody",
160
- "type": "boolean",
161
- "default": false,
162
- "description": "Remove white space and additional lines that may affect the server's response"
163
- },
164
- {
165
- "name": "Include boilerplate",
166
- "id": "includeBoilerplate",
167
- "type": "boolean",
168
- "default": false,
169
- "description": "Include class definition and import statements in snippet"
170
- },
171
- {
172
- "name": "Follow redirects",
173
- "id": "followRedirect",
174
- "type": "boolean",
175
- "default": true,
176
- "description": "Automatically follow HTTP redirects"
177
- }
178
- ]
179
- }
180
- ]
181
- },
182
- {
183
- "key": "go",
184
- "label": "Go",
185
- "syntax_mode": "golang",
186
- "variants": [
187
- {
188
- "key": "Native",
189
- "options": [
190
- {
191
- "name": "Set indentation count",
192
- "id": "indentCount",
193
- "type": "positiveInteger",
194
- "default": 2,
195
- "description": "Set the number of indentation characters to add per code level"
196
- },
197
- {
198
- "name": "Set indentation type",
199
- "id": "indentType",
200
- "type": "enum",
201
- "availableOptions": ["Tab", "Space"],
202
- "default": "Space",
203
- "description": "Select the character used to indent lines of code"
204
- },
205
- {
206
- "name": "Set request timeout",
207
- "id": "requestTimeout",
208
- "type": "positiveInteger",
209
- "default": 0,
210
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
211
- },
212
- {
213
- "name": "Follow redirects",
214
- "id": "followRedirect",
215
- "type": "boolean",
216
- "default": true,
217
- "description": "Automatically follow HTTP redirects"
218
- },
219
- {
220
- "name": "Trim request body fields",
221
- "id": "trimRequestBody",
222
- "type": "boolean",
223
- "default": false,
224
- "description": "Remove white space and additional lines that may affect the server's response"
225
- }
226
- ]
227
- }
228
- ]
229
- },
230
- {
231
- "key": "http",
232
- "label": "HTTP",
233
- "syntax_mode": "text",
234
- "variants": [
235
- {
236
- "key": "HTTP",
237
- "options": [
238
- {
239
- "name": "Trim request body fields",
240
- "id": "trimRequestBody",
241
- "type": "boolean",
242
- "default": false,
243
- "description": "Remove white space and additional lines that may affect the server's response"
244
- }
245
- ]
246
- }
247
- ]
248
- },
249
- {
250
- "key": "java",
251
- "label": "Java",
252
- "syntax_mode": "java",
253
- "variants": [
254
- {
255
- "key": "OkHttp",
256
- "options": [
257
- {
258
- "name": "Include boilerplate",
259
- "id": "includeBoilerplate",
260
- "type": "boolean",
261
- "default": false,
262
- "description": "Include class definition and import statements in snippet"
263
- },
264
- {
265
- "name": "Set indentation count",
266
- "id": "indentCount",
267
- "type": "positiveInteger",
268
- "default": 2,
269
- "description": "Set the number of indentation characters to add per code level"
270
- },
271
- {
272
- "name": "Set indentation type",
273
- "id": "indentType",
274
- "type": "enum",
275
- "availableOptions": ["Tab", "Space"],
276
- "default": "Space",
277
- "description": "Select the character used to indent lines of code"
278
- },
279
- {
280
- "name": "Set request timeout",
281
- "id": "requestTimeout",
282
- "type": "positiveInteger",
283
- "default": 0,
284
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
285
- },
286
- {
287
- "name": "Follow redirects",
288
- "id": "followRedirect",
289
- "type": "boolean",
290
- "default": true,
291
- "description": "Automatically follow HTTP redirects"
292
- },
293
- {
294
- "name": "Trim request body fields",
295
- "id": "trimRequestBody",
296
- "type": "boolean",
297
- "default": false,
298
- "description": "Remove white space and additional lines that may affect the server's response"
299
- }
300
- ]
301
- },
302
- {
303
- "key": "Unirest",
304
- "options": [
305
- {
306
- "name": "Include boilerplate",
307
- "id": "includeBoilerplate",
308
- "type": "boolean",
309
- "default": false,
310
- "description": "Include class definition and import statements in snippet"
311
- },
312
- {
313
- "name": "Set indentation count",
314
- "id": "indentCount",
315
- "type": "positiveInteger",
316
- "default": 2,
317
- "description": "Set the number of indentation characters to add per code level"
318
- },
319
- {
320
- "name": "Set indentation type",
321
- "id": "indentType",
322
- "type": "enum",
323
- "availableOptions": ["Tab", "Space"],
324
- "default": "Space",
325
- "description": "Select the character used to indent lines of code"
326
- },
327
- {
328
- "name": "Set request timeout",
329
- "id": "requestTimeout",
330
- "type": "positiveInteger",
331
- "default": 0,
332
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
333
- },
334
- {
335
- "name": "Follow redirects",
336
- "id": "followRedirect",
337
- "type": "boolean",
338
- "default": true,
339
- "description": "Automatically follow HTTP redirects"
340
- },
341
- {
342
- "name": "Trim request body fields",
343
- "id": "trimRequestBody",
344
- "type": "boolean",
345
- "default": false,
346
- "description": "Remove white space and additional lines that may affect the server's response"
347
- }
348
- ]
349
- }
350
- ]
351
- },
352
- {
353
- "key": "javascript",
354
- "label": "JavaScript",
355
- "syntax_mode": "javascript",
356
- "variants": [
357
- {
358
- "key": "Fetch",
359
- "options": [
360
- {
361
- "name": "Set indentation count",
362
- "id": "indentCount",
363
- "type": "positiveInteger",
364
- "default": 2,
365
- "description": "Set the number of indentation characters to add per code level"
366
- },
367
- {
368
- "name": "Set indentation type",
369
- "id": "indentType",
370
- "type": "enum",
371
- "availableOptions": ["Tab", "Space"],
372
- "default": "Space",
373
- "description": "Select the character used to indent lines of code"
374
- },
375
- {
376
- "name": "Set request timeout",
377
- "id": "requestTimeout",
378
- "type": "positiveInteger",
379
- "default": 0,
380
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
381
- },
382
- {
383
- "name": "Follow redirects",
384
- "id": "followRedirect",
385
- "type": "boolean",
386
- "default": true,
387
- "description": "Automatically follow HTTP redirects"
388
- },
389
- {
390
- "name": "Trim request body fields",
391
- "id": "trimRequestBody",
392
- "type": "boolean",
393
- "default": false,
394
- "description": "Remove white space and additional lines that may affect the server's response"
395
- }
396
- ]
397
- },
398
- {
399
- "key": "jQuery",
400
- "options": [
401
- {
402
- "name": "Set indentation count",
403
- "id": "indentCount",
404
- "type": "positiveInteger",
405
- "default": 2,
406
- "description": "Set the number of indentation characters to add per code level"
407
- },
408
- {
409
- "name": "Set indentation type",
410
- "id": "indentType",
411
- "type": "enum",
412
- "availableOptions": ["Tab", "Space"],
413
- "default": "Space",
414
- "description": "Select the character used to indent lines of code"
415
- },
416
- {
417
- "name": "Set request timeout",
418
- "id": "requestTimeout",
419
- "type": "positiveInteger",
420
- "default": 0,
421
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
422
- },
423
- {
424
- "name": "Trim request body fields",
425
- "id": "trimRequestBody",
426
- "type": "boolean",
427
- "default": false,
428
- "description": "Remove white space and additional lines that may affect the server's response"
429
- }
430
- ]
431
- },
432
- {
433
- "key": "XHR",
434
- "options": [
435
- {
436
- "name": "Set indentation count",
437
- "id": "indentCount",
438
- "type": "positiveInteger",
439
- "default": 2,
440
- "description": "Set the number of indentation characters to add per code level"
441
- },
442
- {
443
- "name": "Set indentation type",
444
- "id": "indentType",
445
- "type": "enum",
446
- "availableOptions": ["Tab", "Space"],
447
- "default": "Space",
448
- "description": "Select the character used to indent lines of code"
449
- },
450
- {
451
- "name": "Set request timeout",
452
- "id": "requestTimeout",
453
- "type": "positiveInteger",
454
- "default": 0,
455
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
456
- },
457
- {
458
- "name": "Trim request body fields",
459
- "id": "trimRequestBody",
460
- "type": "boolean",
461
- "default": false,
462
- "description": "Remove white space and additional lines that may affect the server's response"
463
- }
464
- ]
465
- }
466
- ]
467
- },
468
- {
469
- "key": "c",
470
- "label": "C",
471
- "syntax_mode": "c_cpp",
472
- "variants": [
473
- {
474
- "key": "libcurl",
475
- "options": [
476
- {
477
- "name": "Include boilerplate",
478
- "id": "includeBoilerplate",
479
- "type": "boolean",
480
- "default": false,
481
- "description": "Include class definition and import statements in snippet"
482
- },
483
- {
484
- "name": "Protocol",
485
- "id": "protocol",
486
- "type": "enum",
487
- "availableOptions": ["http", "https"],
488
- "default": "https",
489
- "description": "The protocol to be used to make the request"
490
- },
491
- {
492
- "name": "Set indentation count",
493
- "id": "indentCount",
494
- "type": "positiveInteger",
495
- "default": 2,
496
- "description": "Set the number of indentation characters to add per code level"
497
- },
498
- {
499
- "name": "Set indentation type",
500
- "id": "indentType",
501
- "type": "enum",
502
- "availableOptions": ["Tab", "Space"],
503
- "default": "Space",
504
- "description": "Select the character used to indent lines of code"
505
- },
506
- {
507
- "name": "Follow redirects",
508
- "id": "followRedirect",
509
- "type": "boolean",
510
- "default": true,
511
- "description": "Automatically follow HTTP redirects"
512
- },
513
- {
514
- "name": "Trim request body fields",
515
- "id": "trimRequestBody",
516
- "type": "boolean",
517
- "default": false,
518
- "description": "Remove white space and additional lines that may affect the server's response"
519
- },
520
- {
521
- "name": "Use curl_mime",
522
- "id": "useMimeType",
523
- "type": "boolean",
524
- "default": true,
525
- "description": "Use curl_mime to send multipart/form-data requests"
526
- },
527
- {
528
- "name": "Set request timeout",
529
- "id": "requestTimeout",
530
- "type": "positiveInteger",
531
- "default": 0,
532
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
533
- }
534
- ]
535
- }
536
- ]
537
- },
538
- {
539
- "key": "nodejs",
540
- "label": "NodeJs",
541
- "syntax_mode": "javascript",
542
- "variants": [
543
- {
544
- "key": "Axios",
545
- "options": [
546
- {
547
- "name": "Set indentation count",
548
- "id": "indentCount",
549
- "type": "positiveInteger",
550
- "default": 2,
551
- "description": "Set the number of indentation characters to add per code level"
552
- },
553
- {
554
- "name": "Set indentation type",
555
- "id": "indentType",
556
- "type": "enum",
557
- "availableOptions": ["Tab", "Space"],
558
- "default": "Space",
559
- "description": "Select the character used to indent lines of code"
560
- },
561
- {
562
- "name": "Set request timeout",
563
- "id": "requestTimeout",
564
- "type": "positiveInteger",
565
- "default": 0,
566
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
567
- },
568
- {
569
- "name": "Follow redirects",
570
- "id": "followRedirect",
571
- "type": "boolean",
572
- "default": true,
573
- "description": "Automatically follow HTTP redirects"
574
- },
575
- {
576
- "name": "Trim request body fields",
577
- "id": "trimRequestBody",
578
- "type": "boolean",
579
- "default": false,
580
- "description": "Remove white space and additional lines that may affect the server's response"
581
- },
582
- {
583
- "name": "Enable ES6 features",
584
- "id": "ES6_enabled",
585
- "type": "boolean",
586
- "default": false,
587
- "description": "Modifies code snippet to incorporate ES6 (EcmaScript) features"
588
- }
589
- ]
590
- },
591
- {
592
- "key": "Native",
593
- "options": [
594
- {
595
- "name": "Set indentation count",
596
- "id": "indentCount",
597
- "type": "positiveInteger",
598
- "default": 2,
599
- "description": "Set the number of indentation characters to add per code level"
600
- },
601
- {
602
- "name": "Set indentation type",
603
- "id": "indentType",
604
- "type": "enum",
605
- "availableOptions": ["Tab", "Space"],
606
- "default": "Space",
607
- "description": "Select the character used to indent lines of code"
608
- },
609
- {
610
- "name": "Set request timeout",
611
- "id": "requestTimeout",
612
- "type": "positiveInteger",
613
- "default": 0,
614
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
615
- },
616
- {
617
- "name": "Follow redirects",
618
- "id": "followRedirect",
619
- "type": "boolean",
620
- "default": true,
621
- "description": "Automatically follow HTTP redirects"
622
- },
623
- {
624
- "name": "Trim request body fields",
625
- "id": "trimRequestBody",
626
- "type": "boolean",
627
- "default": false,
628
- "description": "Remove white space and additional lines that may affect the server's response"
629
- },
630
- {
631
- "name": "Enable ES6 features",
632
- "id": "ES6_enabled",
633
- "type": "boolean",
634
- "default": false,
635
- "description": "Modifies code snippet to incorporate ES6 (EcmaScript) features"
636
- }
637
- ]
638
- },
639
- {
640
- "key": "Request",
641
- "options": [
642
- {
643
- "name": "Set indentation count",
644
- "id": "indentCount",
645
- "type": "positiveInteger",
646
- "default": 2,
647
- "description": "Set the number of indentation characters to add per code level"
648
- },
649
- {
650
- "name": "Set indentation type",
651
- "id": "indentType",
652
- "type": "enum",
653
- "availableOptions": ["Tab", "Space"],
654
- "default": "Space",
655
- "description": "Select the character used to indent lines of code"
656
- },
657
- {
658
- "name": "Set request timeout",
659
- "id": "requestTimeout",
660
- "type": "positiveInteger",
661
- "default": 0,
662
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
663
- },
664
- {
665
- "name": "Follow redirects",
666
- "id": "followRedirect",
667
- "type": "boolean",
668
- "default": true,
669
- "description": "Automatically follow HTTP redirects"
670
- },
671
- {
672
- "name": "Trim request body fields",
673
- "id": "trimRequestBody",
674
- "type": "boolean",
675
- "default": false,
676
- "description": "Remove white space and additional lines that may affect the server's response"
677
- },
678
- {
679
- "name": "Enable ES6 features",
680
- "id": "ES6_enabled",
681
- "type": "boolean",
682
- "default": false,
683
- "description": "Modifies code snippet to incorporate ES6 (EcmaScript) features"
684
- }
685
- ]
686
- },
687
- {
688
- "key": "Unirest",
689
- "options": [
690
- {
691
- "name": "Set indentation count",
692
- "id": "indentCount",
693
- "type": "positiveInteger",
694
- "default": 2,
695
- "description": "Set the number of indentation characters to add per code level"
696
- },
697
- {
698
- "name": "Set indentation type",
699
- "id": "indentType",
700
- "type": "enum",
701
- "availableOptions": ["Tab", "Space"],
702
- "default": "Space",
703
- "description": "Select the character used to indent lines of code"
704
- },
705
- {
706
- "name": "Set request timeout",
707
- "id": "requestTimeout",
708
- "type": "positiveInteger",
709
- "default": 0,
710
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
711
- },
712
- {
713
- "name": "Follow redirects",
714
- "id": "followRedirect",
715
- "type": "boolean",
716
- "default": true,
717
- "description": "Automatically follow HTTP redirects"
718
- },
719
- {
720
- "name": "Trim request body fields",
721
- "id": "trimRequestBody",
722
- "type": "boolean",
723
- "default": false,
724
- "description": "Remove white space and additional lines that may affect the server's response"
725
- },
726
- {
727
- "name": "Enable ES6 features",
728
- "id": "ES6_enabled",
729
- "type": "boolean",
730
- "default": false,
731
- "description": "Modifies code snippet to incorporate ES6 (EcmaScript) features"
732
- }
733
- ]
734
- }
735
- ]
736
- },
737
- {
738
- "key": "objective-c",
739
- "label": "Objective-C",
740
- "syntax_mode": "objectivec",
741
- "variants": [
742
- {
743
- "key": "NSURLSession",
744
- "options": [
745
- {
746
- "name": "Set indentation count",
747
- "id": "indentCount",
748
- "type": "positiveInteger",
749
- "default": 2,
750
- "description": "Set the number of indentation characters to add per code level"
751
- },
752
- {
753
- "name": "Set indentation type",
754
- "id": "indentType",
755
- "type": "enum",
756
- "availableOptions": ["Tab", "Space"],
757
- "default": "Space",
758
- "description": "Select the character used to indent lines of code"
759
- },
760
- {
761
- "name": "Set request timeout",
762
- "id": "requestTimeout",
763
- "type": "positiveInteger",
764
- "default": 10000,
765
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
766
- },
767
- {
768
- "name": "Trim request body fields",
769
- "id": "trimRequestBody",
770
- "type": "boolean",
771
- "default": false,
772
- "description": "Remove white space and additional lines that may affect the server's response"
773
- },
774
- {
775
- "name": "Include boilerplate",
776
- "id": "includeBoilerplate",
777
- "type": "boolean",
778
- "default": false,
779
- "description": "Include class definition and import statements in snippet"
780
- }
781
- ]
782
- }
783
- ]
784
- },
785
- {
786
- "key": "ocaml",
787
- "label": "OCaml",
788
- "syntax_mode": "ocaml",
789
- "variants": [
790
- {
791
- "key": "Cohttp",
792
- "options": [
793
- {
794
- "name": "Set indentation count",
795
- "id": "indentCount",
796
- "type": "positiveInteger",
797
- "default": 2,
798
- "description": "Set the number of indentation characters to add per code level"
799
- },
800
- {
801
- "name": "Set indentation type",
802
- "id": "indentType",
803
- "type": "enum",
804
- "availableOptions": ["Tab", "Space"],
805
- "default": "Space",
806
- "description": "Select the character used to indent lines of code"
807
- },
808
- {
809
- "name": "Trim request body fields",
810
- "id": "trimRequestBody",
811
- "type": "boolean",
812
- "default": false,
813
- "description": "Remove white space and additional lines that may affect the server's response"
814
- },
815
- {
816
- "name": "Set request timeout",
817
- "id": "requestTimeout",
818
- "type": "positiveInteger",
819
- "default": 0,
820
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
821
- },
822
- {
823
- "name": "Follow redirects",
824
- "id": "followRedirect",
825
- "type": "boolean",
826
- "default": true,
827
- "description": "Automatically follow HTTP redirects"
828
- }
829
- ]
830
- }
831
- ]
832
- },
833
- {
834
- "key": "php",
835
- "label": "PHP",
836
- "syntax_mode": "php",
837
- "variants": [
838
- {
839
- "key": "cURL",
840
- "options": [
841
- {
842
- "name": "Set indentation count",
843
- "id": "indentCount",
844
- "type": "positiveInteger",
845
- "default": 2,
846
- "description": "Set the number of indentation characters to add per code level"
847
- },
848
- {
849
- "name": "Set indentation type",
850
- "id": "indentType",
851
- "type": "enum",
852
- "availableOptions": ["Tab", "Space"],
853
- "default": "Space",
854
- "description": "Select the character used to indent lines of code"
855
- },
856
- {
857
- "name": "Set request timeout",
858
- "id": "requestTimeout",
859
- "type": "positiveInteger",
860
- "default": 0,
861
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
862
- },
863
- {
864
- "name": "Follow redirects",
865
- "id": "followRedirect",
866
- "type": "boolean",
867
- "default": true,
868
- "description": "Automatically follow HTTP redirects"
869
- },
870
- {
871
- "name": "Trim request body fields",
872
- "id": "trimRequestBody",
873
- "type": "boolean",
874
- "default": false,
875
- "description": "Remove white space and additional lines that may affect the server's response"
876
- }
877
- ]
878
- },
879
- {
880
- "key": "Guzzle",
881
- "options": [
882
- {
883
- "name": "Set indentation count",
884
- "id": "indentCount",
885
- "type": "positiveInteger",
886
- "default": 2,
887
- "description": "Set the number of indentation characters to add per code level"
888
- },
889
- {
890
- "name": "Set indentation type",
891
- "id": "indentType",
892
- "type": "enum",
893
- "availableOptions": ["Tab", "Space"],
894
- "default": "Space",
895
- "description": "Select the character used to indent lines of code"
896
- },
897
- {
898
- "name": "Trim request body fields",
899
- "id": "trimRequestBody",
900
- "type": "boolean",
901
- "default": false,
902
- "description": "Remove white space and additional lines that may affect the server's response"
903
- },
904
- {
905
- "name": "Set request timeout",
906
- "id": "requestTimeout",
907
- "type": "positiveInteger",
908
- "default": 0,
909
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
910
- },
911
- {
912
- "name": "Follow redirects",
913
- "id": "followRedirect",
914
- "type": "boolean",
915
- "default": true,
916
- "description": "Automatically follow HTTP redirects"
917
- },
918
- {
919
- "name": "Set communication type",
920
- "id": "asyncType",
921
- "type": "enum",
922
- "availableOptions": ["async", "sync"],
923
- "default": "async",
924
- "description": "Set if the requests will be asynchronous or synchronous"
925
- },
926
- {
927
- "name": "Include boilerplate",
928
- "id": "includeBoilerplate",
929
- "type": "boolean",
930
- "default": false,
931
- "description": "Include class definition and import statements in snippet"
932
- }
933
- ]
934
- },
935
- {
936
- "key": "HTTP_Request2",
937
- "options": [
938
- {
939
- "name": "Set indentation count",
940
- "id": "indentCount",
941
- "type": "positiveInteger",
942
- "default": 2,
943
- "description": "Set the number of indentation characters to add per code level"
944
- },
945
- {
946
- "name": "Set indentation type",
947
- "id": "indentType",
948
- "type": "enum",
949
- "default": "Space",
950
- "availableOptions": ["Tab", "Space"],
951
- "description": "Select the character used to indent lines of code"
952
- },
953
- {
954
- "name": "Set request timeout",
955
- "id": "requestTimeout",
956
- "type": "positiveInteger",
957
- "default": 0,
958
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
959
- },
960
- {
961
- "name": "Trim request body fields",
962
- "id": "trimRequestBody",
963
- "type": "boolean",
964
- "default": false,
965
- "description": "Remove white space and additional lines that may affect the server's response"
966
- },
967
- {
968
- "name": "Follow redirects",
969
- "id": "followRedirect",
970
- "type": "boolean",
971
- "default": true,
972
- "description": "Automatically follow HTTP redirects"
973
- }
974
- ]
975
- },
976
- {
977
- "key": "pecl_http",
978
- "options": [
979
- {
980
- "name": "Set indentation count",
981
- "id": "indentCount",
982
- "type": "positiveInteger",
983
- "default": 2,
984
- "description": "Set the number of indentation characters to add per code level"
985
- },
986
- {
987
- "name": "Set indentation type",
988
- "id": "indentType",
989
- "type": "enum",
990
- "default": "Space",
991
- "availableOptions": ["Tab", "Space"],
992
- "description": "Select the character used to indent lines of code"
993
- },
994
- {
995
- "name": "Set request timeout",
996
- "id": "requestTimeout",
997
- "type": "positiveInteger",
998
- "default": 0,
999
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
1000
- },
1001
- {
1002
- "name": "Trim request body fields",
1003
- "id": "trimRequestBody",
1004
- "type": "boolean",
1005
- "default": false,
1006
- "description": "Remove white space and additional lines that may affect the server's response"
1007
- },
1008
- {
1009
- "name": "Follow redirects",
1010
- "id": "followRedirect",
1011
- "type": "boolean",
1012
- "default": true,
1013
- "description": "Automatically follow HTTP redirects"
1014
- }
1015
- ]
1016
- }
1017
- ]
1018
- },
1019
- {
1020
- "key": "powershell",
1021
- "label": "PowerShell",
1022
- "syntax_mode": "powershell",
1023
- "variants": [
1024
- {
1025
- "key": "RestMethod",
1026
- "options": [
1027
- {
1028
- "name": "Set request timeout",
1029
- "id": "requestTimeout",
1030
- "type": "positiveInteger",
1031
- "default": 0,
1032
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
1033
- },
1034
- {
1035
- "name": "Follow redirects",
1036
- "id": "followRedirect",
1037
- "type": "boolean",
1038
- "default": true,
1039
- "description": "Automatically follow HTTP redirects"
1040
- },
1041
- {
1042
- "name": "Trim request body fields",
1043
- "id": "trimRequestBody",
1044
- "type": "boolean",
1045
- "default": false,
1046
- "description": "Remove white space and additional lines that may affect the server's response"
1047
- }
1048
- ]
1049
- }
1050
- ]
1051
- },
1052
- {
1053
- "key": "python",
1054
- "label": "Python",
1055
- "syntax_mode": "python",
1056
- "variants": [
1057
- {
1058
- "key": "http.client",
1059
- "options": [
1060
- {
1061
- "name": "Set indentation count",
1062
- "id": "indentCount",
1063
- "type": "positiveInteger",
1064
- "default": 2,
1065
- "description": "Set the number of indentation characters to add per code level"
1066
- },
1067
- {
1068
- "name": "Set indentation type",
1069
- "id": "indentType",
1070
- "type": "enum",
1071
- "default": "Space",
1072
- "availableOptions": ["Tab", "Space"],
1073
- "description": "Select the character used to indent lines of code"
1074
- },
1075
- {
1076
- "name": "Set request timeout",
1077
- "id": "requestTimeout",
1078
- "type": "positiveInteger",
1079
- "default": 0,
1080
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
1081
- },
1082
- {
1083
- "name": "Trim request body fields",
1084
- "id": "trimRequestBody",
1085
- "type": "boolean",
1086
- "default": false,
1087
- "description": "Remove white space and additional lines that may affect the server's response"
1088
- }
1089
- ]
1090
- },
1091
- {
1092
- "key": "Requests",
1093
- "options": [
1094
- {
1095
- "name": "Set indentation count",
1096
- "id": "indentCount",
1097
- "type": "positiveInteger",
1098
- "default": 2,
1099
- "description": "Set the number of indentation characters to add per code level"
1100
- },
1101
- {
1102
- "name": "Set indentation type",
1103
- "id": "indentType",
1104
- "type": "enum",
1105
- "availableOptions": ["Tab", "Space"],
1106
- "default": "Space",
1107
- "description": "Select the character used to indent lines of code"
1108
- },
1109
- {
1110
- "name": "Set request timeout",
1111
- "id": "requestTimeout",
1112
- "type": "positiveInteger",
1113
- "default": 0,
1114
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
1115
- },
1116
- {
1117
- "name": "Follow redirects",
1118
- "id": "followRedirect",
1119
- "type": "boolean",
1120
- "default": true,
1121
- "description": "Automatically follow HTTP redirects"
1122
- },
1123
- {
1124
- "name": "Trim request body fields",
1125
- "id": "trimRequestBody",
1126
- "type": "boolean",
1127
- "default": false,
1128
- "description": "Remove white space and additional lines that may affect the server's response"
1129
- }
1130
- ]
1131
- }
1132
- ]
1133
- },
1134
- {
1135
- "key": "r",
1136
- "label": "R",
1137
- "syntax_mode": "r",
1138
- "variants": [
1139
- {
1140
- "key": "httr",
1141
- "options": [
1142
- {
1143
- "name": "Set indentation count",
1144
- "id": "indentCount",
1145
- "type": "positiveInteger",
1146
- "default": 2,
1147
- "description": "Set the number of indentation characters to add per code level"
1148
- },
1149
- {
1150
- "name": "Set indentation type",
1151
- "id": "indentType",
1152
- "type": "enum",
1153
- "availableOptions": ["Tab", "Space"],
1154
- "default": "Space",
1155
- "description": "Select the character used to indent lines of code"
1156
- },
1157
- {
1158
- "name": "Trim request body fields",
1159
- "id": "trimRequestBody",
1160
- "type": "boolean",
1161
- "default": false,
1162
- "description": "Remove white space and additional lines that may affect the server's response"
1163
- },
1164
- {
1165
- "name": "Set request timeout",
1166
- "id": "requestTimeout",
1167
- "type": "positiveInteger",
1168
- "default": 0,
1169
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
1170
- }
1171
- ]
1172
- },
1173
- {
1174
- "key": "RCurl",
1175
- "options": [
1176
- {
1177
- "name": "Set indentation count",
1178
- "id": "indentCount",
1179
- "type": "positiveInteger",
1180
- "default": 2,
1181
- "description": "Set the number of indentation characters to add per code level"
1182
- },
1183
- {
1184
- "name": "Set indentation type",
1185
- "id": "indentType",
1186
- "type": "enum",
1187
- "availableOptions": ["Tab", "Space"],
1188
- "default": "Space",
1189
- "description": "Select the character used to indent lines of code"
1190
- },
1191
- {
1192
- "name": "Trim request body fields",
1193
- "id": "trimRequestBody",
1194
- "type": "boolean",
1195
- "default": false,
1196
- "description": "Remove white space and additional lines that may affect the server's response"
1197
- },
1198
- {
1199
- "name": "Set request timeout",
1200
- "id": "requestTimeout",
1201
- "type": "positiveInteger",
1202
- "default": 0,
1203
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
1204
- },
1205
- {
1206
- "name": "Follow redirects",
1207
- "id": "followRedirect",
1208
- "type": "boolean",
1209
- "default": true,
1210
- "description": "Automatically follow HTTP redirects"
1211
- },
1212
- {
1213
- "name": "Ignore warnings",
1214
- "id": "ignoreWarnings",
1215
- "type": "boolean",
1216
- "default": false,
1217
- "description": "Ignore warnings from R"
1218
- }
1219
- ]
1220
- }
1221
- ]
1222
- },
1223
- {
1224
- "key": "ruby",
1225
- "label": "Ruby",
1226
- "syntax_mode": "ruby",
1227
- "variants": [
1228
- {
1229
- "key": "Net::HTTP",
1230
- "options": [
1231
- {
1232
- "name": "Set indentation count",
1233
- "id": "indentCount",
1234
- "type": "positiveInteger",
1235
- "default": 2,
1236
- "description": "Set the number of indentation characters to add per code level"
1237
- },
1238
- {
1239
- "name": "Set indentation type",
1240
- "id": "indentType",
1241
- "type": "enum",
1242
- "availableOptions": ["Tab", "Space"],
1243
- "default": "Space",
1244
- "description": "Select the character used to indent lines of code"
1245
- },
1246
- {
1247
- "name": "Set request timeout",
1248
- "id": "requestTimeout",
1249
- "type": "positiveInteger",
1250
- "default": 0,
1251
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
1252
- },
1253
- {
1254
- "name": "Follow redirects",
1255
- "id": "followRedirect",
1256
- "type": "boolean",
1257
- "default": true,
1258
- "description": "Automatically follow HTTP redirects"
1259
- },
1260
- {
1261
- "name": "Trim request body fields",
1262
- "id": "trimRequestBody",
1263
- "type": "boolean",
1264
- "default": false,
1265
- "description": "Remove white space and additional lines that may affect the server's response"
1266
- }
1267
- ]
1268
- }
1269
- ]
1270
- },
1271
- {
1272
- "key": "shell",
1273
- "label": "Shell",
1274
- "syntax_mode": "powershell",
1275
- "variants": [
1276
- {
1277
- "key": "Httpie",
1278
- "options": [
1279
- {
1280
- "name": "Set request timeout",
1281
- "id": "requestTimeout",
1282
- "type": "positiveInteger",
1283
- "default": 0,
1284
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
1285
- },
1286
- {
1287
- "name": "Follow redirects",
1288
- "id": "followRedirect",
1289
- "type": "boolean",
1290
- "default": true,
1291
- "description": "Automatically follow HTTP redirects"
1292
- }
1293
- ]
1294
- },
1295
- {
1296
- "key": "wget",
1297
- "options": [
1298
- {
1299
- "name": "Set indentation count",
1300
- "id": "indentCount",
1301
- "type": "positiveInteger",
1302
- "default": 2,
1303
- "description": "Set the number of indentation characters to add per code level"
1304
- },
1305
- {
1306
- "name": "Set indentation type",
1307
- "id": "indentType",
1308
- "type": "enum",
1309
- "availableOptions": ["Tab", "Space"],
1310
- "default": "Space",
1311
- "description": "Select the character used to indent lines of code"
1312
- },
1313
- {
1314
- "name": "Set request timeout",
1315
- "id": "requestTimeout",
1316
- "type": "positiveInteger",
1317
- "default": 0,
1318
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
1319
- },
1320
- {
1321
- "name": "Follow redirects",
1322
- "id": "followRedirect",
1323
- "type": "boolean",
1324
- "default": true,
1325
- "description": "Automatically follow HTTP redirects"
1326
- },
1327
- {
1328
- "name": "Trim request body fields",
1329
- "id": "trimRequestBody",
1330
- "type": "boolean",
1331
- "default": false,
1332
- "description": "Remove white space and additional lines that may affect the server's response"
1333
- }
1334
- ]
1335
- }
1336
- ]
1337
- },
1338
- {
1339
- "key": "swift",
1340
- "label": "Swift",
1341
- "syntax_mode": "swift",
1342
- "variants": [
1343
- {
1344
- "key": "URLSession",
1345
- "options": [
1346
- {
1347
- "name": "Set indentation count",
1348
- "id": "indentCount",
1349
- "type": "positiveInteger",
1350
- "default": 2,
1351
- "description": "Set the number of indentation characters to add per code level"
1352
- },
1353
- {
1354
- "name": "Set indentation type",
1355
- "id": "indentType",
1356
- "type": "enum",
1357
- "availableOptions": ["Tab", "Space"],
1358
- "default": "Space",
1359
- "description": "Select the character used to indent lines of code"
1360
- },
1361
- {
1362
- "name": "Set request timeout",
1363
- "id": "requestTimeout",
1364
- "type": "positiveInteger",
1365
- "default": 0,
1366
- "description": "Set number of milliseconds the request should wait for a response before timing out (use 0 for infinity)"
1367
- },
1368
- {
1369
- "name": "Trim request body fields",
1370
- "id": "trimRequestBody",
1371
- "type": "boolean",
1372
- "default": false,
1373
- "description": "Remove white space and additional lines that may affect the server's response"
1374
- },
1375
- {
1376
- "name": "Follow redirects",
1377
- "id": "followRedirect",
1378
- "type": "boolean",
1379
- "default": true,
1380
- "description": "Automatically follow HTTP redirects"
1381
- }
1382
- ]
1383
- }
1384
- ]
1385
- }
1386
- ]