MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / GetNodeVersion

Method GetNodeVersion

drip/api.gen.go:1188–1209  ·  view source on GitHub ↗

GetNodeVersion converts echo context to params.

(ctx echo.Context)

Source from the content-addressed store, hash-verified

1186
1187// GetNodeVersion converts echo context to params.
1188func (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.
1212func (w *ServerInterfaceWrapper) CreateComfyNodes(ctx echo.Context) error {

Callers

nothing calls this directly

Calls 1

GetNodeVersionMethod · 0.65

Tested by

no test coverage detected