GetNodeVersion converts echo context to params.
(ctx echo.Context)
| 1186 | |
| 1187 | // GetNodeVersion converts echo context to params. |
| 1188 | func (w *ServerInterfaceWrapper) GetNodeVersion(ctx echo.Context) error { |
| 1189 | var err error |
| 1190 | // ------------- Path parameter "nodeId" ------------- |
| 1191 | var nodeId string |
| 1192 | |
| 1193 | err = runtime.BindStyledParameterWithOptions("simple", "nodeId", ctx.Param("nodeId"), &nodeId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) |
| 1194 | if err != nil { |
| 1195 | return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter nodeId: %s", err)) |
| 1196 | } |
| 1197 | |
| 1198 | // ------------- Path parameter "versionId" ------------- |
| 1199 | var versionId string |
| 1200 | |
| 1201 | err = runtime.BindStyledParameterWithOptions("simple", "versionId", ctx.Param("versionId"), &versionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) |
| 1202 | if err != nil { |
| 1203 | return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter versionId: %s", err)) |
| 1204 | } |
| 1205 | |
| 1206 | // Invoke the callback with all the unmarshaled arguments |
| 1207 | err = w.Handler.GetNodeVersion(ctx, nodeId, versionId) |
| 1208 | return err |
| 1209 | } |
| 1210 | |
| 1211 | // CreateComfyNodes converts echo context to params. |
| 1212 | func (w *ServerInterfaceWrapper) CreateComfyNodes(ctx echo.Context) error { |
nothing calls this directly
no test coverage detected