github.com/GoogleContainerTools/skaffold/v2@v2.13.2/docs-v1/content/en/docs/references/api-v2/swagger.md (about) 1 --- 2 title: "HTTP API" 3 linkTitle: "HTTP API" 4 weight: 40 5 --- 6 7 This is a generated reference for the [Skaffold API]({{<relref "/docs/design/api">}}) HTTP layer. 8 9 We also generate the [reference doc for the gRPC layer]({{<relref "/docs/references/api/grpc">}}). 10 11 12 <div id="swagger-ui"></div> 13 14 <script src="/swagger/swagger-ui-bundle.js"></script> 15 <script src="/swagger/swagger-ui-standalone-preset.js"></script> 16 <script> 17 const DisableTryItOutPlugin = function () { 18 return { 19 statePlugins: { 20 spec: { 21 wrapSelectors: { 22 allowTryItOutFor: () => () => false 23 } 24 } 25 } 26 } 27 } 28 29 window.onload = function () { 30 // Begin Swagger UI call region 31 const ui = SwaggerUIBundle({ 32 url: "/api-v2/skaffold.swagger.json", 33 dom_id: '#swagger-ui', 34 deepLinking: true, 35 presets: [ 36 SwaggerUIBundle.presets.apis, 37 // SwaggerUIStandalonePreset 38 ], 39 plugins: [ 40 SwaggerUIBundle.plugins.DownloadUrl, 41 DisableTryItOutPlugin 42 ], 43 // layout: "StandaloneLayout" 44 }) 45 // End Swagger UI call region 46 47 window.ui = ui 48 } 49 </script> 50