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

Method CreateNode

drip/api.gen.go:1401–1416  ·  view source on GitHub ↗

CreateNode converts echo context to params.

(ctx echo.Context)

Source from the content-addressed store, hash-verified

1399
1400// CreateNode converts echo context to params.
1401func (w *ServerInterfaceWrapper) CreateNode(ctx echo.Context) error {
1402 var err error
1403 // ------------- Path parameter "publisherId" -------------
1404 var publisherId string
1405
1406 err = runtime.BindStyledParameterWithOptions("simple", "publisherId", ctx.Param("publisherId"), &publisherId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
1407 if err != nil {
1408 return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter publisherId: %s", err))
1409 }
1410
1411 ctx.Set(BearerAuthScopes, []string{})
1412
1413 // Invoke the callback with all the unmarshaled arguments
1414 err = w.Handler.CreateNode(ctx, publisherId)
1415 return err
1416}
1417
1418// DeleteNode converts echo context to params.
1419func (w *ServerInterfaceWrapper) DeleteNode(ctx echo.Context) error {

Callers

nothing calls this directly

Calls 1

CreateNodeMethod · 0.65

Tested by

no test coverage detected